-
-
Notifications
You must be signed in to change notification settings - Fork 11.4k
ossp-uuid patch pkg-config to use configured dirs #43889
Conversation
@@ -32,4 +32,20 @@ def install | |||
system "make" | |||
system "make", "install" | |||
end | |||
|
|||
patch :DATA |
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.
This line should go above the install block, and the explanatory comments should go above it.
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.
Fixed, thanks.
6876148
to
c698c19
Compare
# patch: upstream ticket: http://cvs.ossp.org/tktview?tn=200 | ||
# pkg-config --cflags uuid returns the wrong directory since we override the | ||
# default, but uuid.pc.in does not use it | ||
patch :DATA |
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 use an inreplace
here rather than a patch. It's a bit neater.
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.
Done, thanks.
0e03960
to
982433c
Compare
Testing locally via LinuxBrew, looks like failure to build RPM is unrelated to this diff. The error happens when building the internal version of BeeCrypt, and it's due to the march=core2 being set by default. Adding:
to rpm.rb fixes the build issue. Any suggestions? |
@BrewTestBot test this please |
uuid is being built passing include/ossp as the headers target install directory, but uuid.pc.in is not picking it up and as a result pkg-config returns the wrong directory, breaking build systems that rely on it.
982433c
to
f6f8232
Compare
Merged in Homebrew/homebrew-core@8cf1f47. Thank you for your contribution to Homebrew @bluca; we appreciate it! 😺 |
Thanks for merging! |
@DomT4 - mmh I now see this error in Travis:
I see no issues with linuxbrew:
Was this a mistake on my part? The commit did update the revision from 1 to 2. Any idea what's the issue? |
Ah, I see, it will error out if the previous revision was already installed. Was it a mistake to update the revision? |
Not particularly, in this case. As you highlighted yourself upstream is pretty much 💀 and we'd have been waiting a long time, if ever, to roll this out to users if we'd waited for that. It's expected that if you run |
Makes sense. Thanks! |
Patch ossp-uuid/uuid.pc.in to use the configure directories for includes. Also bump revision from 1 to 2.
Unfortunately from the look of upstream's CVS repository it seems it has been inactive for years, so I'm afraid the chances of a new release are quite low.
Tested on Debian via LinuxBrew:
pkg-config now returns correctly <...>include/ossp instead of <...>/include.
Fixes issue #43843, upstream ticket: http://cvs.ossp.org/tktview?tn=200