-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
Conversation
@@ -3,15 +3,8 @@ | |||
class Sfml < Formula | |||
homepage "http://www.sfml-dev.org/" | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can kill the space here too :). homepage
, url
and sha
are all one solid block unless there's a need for stable do
, etc.
Aside the tiny spacing issue I highlighted, LGTM 👍 |
@jacknagel The bot seems to be failing all over the place. Have we broken it?
@eleweek The actual failure here, underneath the above errors is:
Perhaps the |
I fixed the unit test failure several hours ago. |
Ah, thanks! Apologies, I thought this PR was more recent than it was, Sent from OS X. If you wish to communicate more securely my PGP Public On 27/12/2014 05:46, Jack Nagel wrote:
|
Yup, we'll need to add/bump the |
This is easy to fix though, and it was fixed in CSFML master: SFML/CSFML@31ac05d I wonder, what is the proper solution here. Do I need to provide a patch in formula? |
@eleweek Yeh, updating the version seems like a good idea anyway. If you need to patch it on top of that it's probably worth doing too by using |
I've just spend an hour trying to debug a weird issue. It turns out the source(http://www.sfml-dev.org/files/CSFML-2.1-sources.zip) uses \r\n as line terminator(windows style). It turns out this is a big deal for
Interestingly, adding \r before \n in patch didn't help. The most easy solution is just strip out \r symbols from source before applying the patch, but can homebrew do this? Maybe I could simply craft a special patch that removes these symbols and then applies the necessary patch? |
@eleweek I guess in that case it's probably worth just creating our own patch and linking to the upstream commit. |
Ok! I crafted the necessary patch. What's the best place to put it? I tried gist.github.com, but it strips \r symbols(tried to copy and paste file as well as using python module simplegist). Looks like gist.github issue to me. |
Does that include on the |
How do I obtain this link? If I press the "raw" button, it gives me a plain text version, but it doesn't contain \r (I checked using hexdump). Anyway, I figured out a hack, if you upload a file with "\r\r\n" terminators, github automatically replaces "\r\n" with "\n" and you get proper "\r\n" terminators. The patch applied fine, but it turns out that csfml 2.1 can't be builded against sfml 2.2, so there is a need for at least one more patch. The fix appear to be less trivial: SFML/CSFML@d6849a3 I'm wondering, what is the proper way to fix this problem:
Personally I like the idea of fixating current HEAD. |
IIRC |
Do you imply that it properly deal with CRLF in original files? (Patch by default converts CRLF -> LF too, but it seems impossible to disable this behaviour). Is it possible to use |
No, unfortunately. |
Hi, I fixated the current HEAD in csfml formula, it now builds ok. I also created an issue in CSFML repository about making a new stable release of csfml. I like the current solution better than cherry picking multiple patches from master. What do you think? |
@eleweek I'd prefer we either cherry-picked patches or just wait for a new release. |
Hm, ok. I'll update the pull-request then. Would it be possible to use inreplace thing for fixing line terminators(CRLF -> LF)? I tried using it, but to me it looks like inreplace modifies files after normal patches are applied. I'm trying to find the simplest way to deal with CRLF issue(see above discussion). |
@eleweek In this case I'd just try and get this stuff fixed upstream and wait for a future release 😭 |
Well, I spent a few hours figuring out how to make a patch that applies to files with CRLF and put it on gist.github.com, so I can do it. Do you think it would be a bad idea if I cherry pick two patches, convert them, and then put them on gist? (And of course update the formula accordingly) |
That seems fine to me 👍 |
I love to see people using SFML and making it progress further! But please consider putting me in the loop. It can be useful for everybody I think, especially since the SFML formula is not that simple and probably wrong as I mentionned it long ago. Please also read the issue description on SFML tracker for more details: SFML/SFML#620. |
You can get in the loop by following these issues, everything here is happening in the open. If you have any specific, reproducible issues we're happy to try and resolve them but it's not really helpful to say it's "probably wrong" without giving any reproduction instructions or specifics (or a pull request). |
You cannot expect people to follow on everything going on everywhere... There's only 24h in a day and we all have much to do. Anyway, I've explain the issue with the current formula in the two links I gave. If you follow them you'll also find a link to a SO question that I strongly encourage people to read. |
@mantognini I read all the links. Nowhere have you given specific, reproducible errors with this formula. I don't expect people to follow everything everywhere but I do expect maintainers of software to be better at filing bug reports. |
@MikeMcQuaid Saying that is not really fair... What about
and in our issue description:
I think this describe well the issue, but if you have any further question I'd be happy to answer them. |
@mantognini Ok, to be more explicit:
|
Also:
|
If upstream feel particularly strongly than the Homebrew formula is "naive" and "probably wrong", we could blacklist the formula and enforce a requirement that people go upstream for it. Simply telling Homebrew it is screwing things up is a recipe for Homebrew to then go "Well, we don't want to provide users a crap experience, so if nobody with the required understanding of SFML is able/willing to help, we're just going to shove people towards upstream where that support does seemingly exist". "Here's how this could be fixed, here's what I can do to help, here's what upstream can do to help, here's what Homebrew can do to help" will get you a trillion times further than "You've broken it". Tons of people around here love to help, especially the maintainers, just try to make it a little easier for them to do so please 😉. I'll take a look at the formula later today, but it sounds like long-term there needs to be some work done by upstream as well. Perhaps some mutual ground can be reached. |
I hope so! I believe there are sadly some misunderstandings here. SFML team is willing to provide a good user experience with brew (that's why we have it on our TODO list in the first place). I'm not asking you to do so but if you were to follow SFML development closely you would know that we are a small, volunteer and unpaid team (especially when it comes to OS X support) and therefore we don't have the manpower to tackle every bugs or features quickly. I'm sorry that you interpreted my words as contemptuous; it was at no time my intention - probably that some words I used have different connotations in English and in my mother language. I just wanted to let you guys know that the current implementation is not perfect. Hopefully, someone with more free time than I could find the inspiration to fix things. Now, of course work has to be done on both sides. There's no question about that. But you have to understand that SFML is not targeted to OS X and specifically brew build system. As such, SFML cannot ensure that it will build nicely out of the box for every system out there. We try of course to make it convenient for the most standard build system. However, we have already improved the system a bit with SFML/SFML@ba1488e. Beside that, we're also planning to drop sndfile for licensing reason and that changes things for both of us. @MikeMcQuaid, I don't have a step by step procedure to give you – I don't have the luxury to have enough free time to work on that – but I'm pretty sure that installing SFML through homebrew, then building a very simple app and using lldb |
So is Homebrew, alas. Jack and Mike are the maintainers you see in most PRs, but I don't think Homebrew is paying anyone's bills, sadly, despite the time and dedication it requires. There's plenty of mutual empathy around having small teams working extremely hard for little financial return. Homebrew relies heavily on the wider community and people with interests in the formula involved to drive changes and new ideas and fix existing ideas, which is why it tries to get people who love x piece of software to help Brew love it as well.
This is perfectly reasonable. A lot of the more popular tools we ship from Brew are actually primarily Linux tools. CMake isn't my favourite build system in the world, but I think it's doable for you to still ship your normal package but perhaps write into the |
Ha! Here is the misunderstanding I guess because we already have that. 😉 The manually switch is a bit tedious, I agree, but should work fine as it's the standard cmake way of dealing with dependencies such as |
Apologies, I stealth edited my comment shortly after posting to specify a desire to move to a place where packagers can just flip one switch, i.e. |
This was already suggested but I feel it goes against cmake philosophy. Furthermore it adds a lot of stuff in the script that needs to be maintained in the future. This looks like a heavy burden only to make something we have to write once beautiful. |
Is there a way to stop it automatically setting the
Welp. I could change them manually, but that's a bit of a nightmare. If there's a better simple test I could be doing, feel free to point me towards one and I'll run with that instead. |
I don't know exactly what you've done and what should be done, but someone managed to do it just a few hours ago. Maybe you two should work together? :-) Here is the relevent discussion: http://en.sfml-dev.org/forums/index.php?topic=17136.msg123352#msg123352 |
BTW, the |
Hey ! I come from the discussion on the sfml forum. |
Patching it out and explicitly specifying flags was pretty much what I had in mind as well, as it happens. I fell asleep on this earlier because winter makes me feel like a 65 year old, but I've pushed now in #35479 😉. If someone from upstream can run through the changes and test to make sure the problem is actually solved, that'd be great. |
So, what the status of this pull-request? @DomT4 opened another pull request that fixed some other issues. Do I need to close this one? |
If you remove the |
@eleweek If you'd like to make this PR csfml-only and then rebase it against the master, we should be okay here providing the maintainers don't object to using a commit reference temporarily as a solution till new upstream release. |
@DomT4 I am going to wait for this to be closed: SFML/CSFML#50 Would this be ok? It looks like CSFML maintainers are going to release a new version, so my pull request is going to be a lot simpler |
Sure, If you're happy to wait, that sounds good. Feel free to close this in that case. |
Ok, so the new version of CSFML is released and I created a new pull-request with only CSFML-related changes: #38036 |
Resolves #35277
Basically: unlike 2.1, sfml 2.2 builds just fine on yosemite, so I created this pull-request. Thanks to @DomT4 for the help with this pull-request!