Skip to contentSkip to conversation

package/procps-ng: install libprocps.pc in staging/usr/lib/pkgconfig/

PATCH New Romain Naour 2 participants 2 messages Mar 26, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/procps-ng: install libprocps.pc in staging/usr/lib/pkgconfig/

Since 834893a965a993e8a73e30b448426f626419f3c8, pkg-config --libs libprocps doesn't work anymore because libprocps.pc is installed in STAGING_DIR/lib/pkgconfig/ instead of STAGING_DIR/usr/lib/pkgconfig/.

Add --libdir=/usr/lib in PROCPS_NG_CONF_OPTS to fixes the issue. Note that libprocps.so is now installed in /usr/lib/ instead of /lib/.

Fixes:
http://autobuild.buildroot.net/results/2e5/2e5100ccf1ed336c26b83930e7149941c97fc4d2/

---
 package/procps-ng/procps-ng.mk | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
package/procps-ng/procps-ng.mk +5 -1
index fb1b236..51a70a5 100644
@@ -35,7 +35,11 @@ endif
 
 # Make sure binaries get installed in /bin, so that they overwrite
 # their busybox counterparts.
-PROCPS_NG_CONF_OPTS += --exec-prefix=/
+# Make sure libprocps.pc is installed in STAGING_DIR/usr/lib/pkgconfig/
+# otherwise it's installed in STAGING_DIR/lib/pkgconfig/ breaking
+# pkg-config --libs libprocps.
+PROCPS_NG_CONF_OPTS += --exec-prefix=/ \
+	--libdir=/usr/lib
 
 # Allows unicode characters to show in 'watch'
 ifeq ($(BR2_PACKAGE_NCURSES_WCHAR),y)
Signature · 1 line
2.5.5
#1 lore raw

PATCH 1/1 package/procps-ng: install libprocps.pc in staging/usr/lib/pkgconfig/

Hello,

Quoted 7 lines · Romain Naour

Since 834893a965a993e8a73e30b448426f626419f3c8, pkg-config --libs libprocps doesn't work anymore because libprocps.pc is installed in STAGING_DIR/lib/pkgconfig/ instead of STAGING_DIR/usr/lib/pkgconfig/.

Add --libdir=/usr/lib in PROCPS_NG_CONF_OPTS to fixes the issue. Note that libprocps.so is now installed in /usr/lib/ instead of /lib/.

Quoted 7 lines

Fixes:
http://autobuild.buildroot.net/results/2e5/2e5100ccf1ed336c26b83930e7149941c97fc4d2/

---
 package/procps-ng/procps-ng.mk | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com