Ticket 200: uuid.pc.in does not use the right autoconf variables for paths
uuid.pc.in does not use the correct variables to define exec_prefix, includedir and libdir. As a result, if a build system overrides the default, the exported location hints are wrong. Eg: ¤https://github.com/Homebrew/homebrew/issues/43843 OSX's HomeBrew passes "--includedir=#{include}/ossp", but the generated uuid.pc does NOT use it, so the header location is wrong.
This simple patch fixes it:
--- uuid.pc.in 2015-09-12 04:03:34.921192349 +0100
+++ uuid.pc.in 2015-09-12 04:13:53.226386329 +0100
@@ -30,5 +30,5 @@
prefix=@prefix@
-exec_prefix=${prefix}
-includedir=${prefix}/include
-libdir=${exec_prefix}/lib
+exec_prefix=@exec_prefix@
+includedir=@includedir@
+libdir=@libdir@
Remarks:
Properties:
Type: |
code |
|
Version: |
1.6.2 |
Status: |
new |
|
Created: |
2015-Sep-13 23:25 |
Severity: |
3 |
|
Last Change: |
2015-Sep-13 23:25 |
Priority: |
3 |
|
Subsystem: |
uuid |
Assigned To: |
rse |
|
Derived From: |
|
Creator: |
anonymous |