Public bug reported:

$ lsb_release -rd
Description:    Ubuntu Resolute Raccoon (development branch)
Release:        26.04


$ apt policy libp8-platform-dev 
libp8-platform-dev:
  Installiert:           2.1.0.1+dfsg1-5
  Installationskandidat: 2.1.0.1+dfsg1-5
  Versionstabelle:
 *** 2.1.0.1+dfsg1-5 500
        500 http://de.archive.ubuntu.com/ubuntu resolute/universe amd64 Packages
        100 /var/lib/dpkg/status

Currently the p8-platform.pc contains an invalid libdir:

$ cat /usr/lib/x86_64-linux-gnu/pkgconfig/p8-platform.pc 
prefix=/usr
libdir=/usr//usr/lib/x86_64-linux-gnu
includedir=/usr/include
DEPENDENCIES=

Name: p8-platform
Description: Pulse-Eight platform support library 2.1
Version: 2.1.0
Libs: -L${libdir} -lp8-platform
Cflags: -I${includedir}

this also shows when information is retrieved using pkg-config:

$ pkg-config --libs p8-platform
-L/usr/usr/lib/x86_64-linux-gnu -lp8-platform

This causes programs relying on libcec-dev to fail during the build
stage, because this leads to a wrongly reported LIBDIR down the line,
e.g.:

$ pkg-config --libs libcec
-lcec -L/usr/usr/lib/x86_64-linux-gnu -lp8-platform -ludev

A patch to fix this could look like this:

Index: p8-platform-2.1.0.1+dfsg1/p8-platform.pc.in
===================================================================
--- p8-platform-2.1.0.1+dfsg1.orig/p8-platform.pc.in
+++ p8-platform-2.1.0.1+dfsg1/p8-platform.pc.in 
@@ -1,5 +1,5 @@
 prefix=@CMAKE_INSTALL_PREFIX@
-libdir=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@
+libdir=@CMAKE_INSTALL_LIBDIR@
 includedir=@CMAKE_INSTALL_PREFIX@/include
 DEPENDENCIES=@p8-platform_LIBRARIES@

** Affects: p8-platform (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2143350

Title:
  Invalid libdir in p8-platform.pc file on Ubuntu 26.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/p8-platform/+bug/2143350/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to