Rename qt5 to qt#8334
Conversation
|
@MikeMcQuaid: As noted in this comment on #8306, even just having |
|
@MikeMcQuaid: As reported by GitHub's notification of #8342's existence and mention of this PR in said issue, said issue is now ready and we can continue discussion of my problem there. |
|
Most of the failures here are due to #8392 |
|
Note this is blocked on Homebrew/brew#1770. |
|
This looks to be working. Any objections, folks? I can fix up the minor audit fails when I pull. |
|
And @cartr for final thoughts (and to check you have a |
|
This seems to be incomplete. |
|
Not sure the extent to which this affects core's formulae, but one issue I've been running into while working on my side of the change is that lots of formulae hard-code Qt's formula name as part of their build process, and that changing the formula name breaks them because they can't find Qt any more. (You may need to bump the It would be worth checking that by installing a bunch of formulae that depend on |
|
@cartr that is odd. Formulae names are not really exposed to build systems, so the problems you're describing probably have some other cause. |
|
@ilovezfs In this case, I'm pretty sure the formula name is being exposed to the build system of other formulae. Here's my understanding of how it works, at least with Qt 4:
I haven't done super in-depth testing for Qt 5, but I suspect the same is true there, as |
|
@cartr that all sounds normal though, no? Going forward those paths will be |
|
@ilovezfs The issue is that those paths are changing, which will cause any already-built formula that hard-coded them to be wrong. |
|
@cartr right, which is why new bottles for the formulae in the PR will be pulled as well. Are there things missing from the PR that you think need new bottles too? |
|
@ilovezfs Maybe I'm misunderstanding how Homebrew works, but I didn't think |
Only if we also add or bump the In this case, there will also be an optlink created for the old name since we're adding an alias "qt5" pointing to the qt formula, so
Also only if there is a revision bump. So you will definitely want to revision bump everything in the qt4 tap after you change the formula name to qt@4 since you won't be able to have an alias "qt" for the formula without directly conflicting with the /usr/local/opt/qt link that points to qt5. |
Ah, I didn't know about that feature. Thanks! |
It was recently added. So ordinarily, this would be a less breaking change since you'd have both /usr/local/opt/qt and /usr/local/opt/qt@4 both pointing to the qt4 cellar. But since we're "reclaiming" the |
ilovezfs
left a comment
There was a problem hiding this comment.
I think it's safe to ship this as-is and we can do the rest in follow-up PR(s)
|
Would it be possible to wait a couple of days before merging this? Re-building the binary bottles for my tap will take considerable time on my end. |
|
@cartr you could do it asynchronously by initially pushing revision bumps with the bottle blocks removed, and then re-adding the bottle blocks as the bottles get built. |
|
@ilovezfs I'm aware, but several of the Qt4-related formulae I package have very long build times and I'd like to avoid breaking people's Travis CI builds if possible. After the most-used packages (PyQt, PySide, Qt, WebKit, and their dependencies) are built I'll merge the name change in and we'll be good to go. |
|
@cartr Pushing a new build now and will likely pull when it's working. Apologies that I won't wait; we can't really set a precedent of holding PRs for things in taps we intentionally don't support, sorry 😭. |
|
Thanks for review and help. |
And adjust formulae accordingly.
CC @cartr as I'll hold off on this until you're ready.