Bug#591011: libprojectm-dev: Incorrect .pc files
Christophe Mutricy
xtophe at chewa.net
Fri Jul 30 22:01:53 UTC 2010
Package: libprojectm-dev
Version: 2.0.1+dfsg-2
Severity: important
Tags: patch
Hello,
The .pc.in of projectm use a variable which doesn't exist resulting in a empty libdir. That results in a buggy "-L" in LDFLAGS.
Attached patch forces libdir=${exec_prefix}/lib . It's not necessarly the best fix but I don't know CMake enough.
I can commit the patch myself if you like though I'll be away from Internet from Monday.
--
Xtophe
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-trunk-686 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages libprojectm-dev depends on:
ii libprojectm2 2.0.1+dfsg-2 Advanced Milkdrop-compatible music
libprojectm-dev recommends no packages.
libprojectm-dev suggests no packages.
-- no debconf information
-------------- next part --------------
>From a139eb3d81e45ee88609d14adbc99b5f0ae62282 Mon Sep 17 00:00:00 2001
From: Christophe Mutricy <xtophe at videolan.org>
Date: Fri, 30 Jul 2010 23:00:15 +0200
Subject: [PATCH] Fix .pc files
The substitution for libdir was not happening
---
debian/patches/10_pc-files.patch | 24 ++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 25 insertions(+), 0 deletions(-)
create mode 100644 debian/patches/10_pc-files.patch
diff --git a/debian/patches/10_pc-files.patch b/debian/patches/10_pc-files.patch
new file mode 100644
index 0000000..bffb6b2
--- /dev/null
+++ b/debian/patches/10_pc-files.patch
@@ -0,0 +1,24 @@
+diff --git a/src/libprojectM/libprojectM.pc.in b/src/libprojectM/libprojectM.pc.in
+index 9ba3418..2fce333 100644
+--- a/src/libprojectM/libprojectM.pc.in
++++ b/src/libprojectM/libprojectM.pc.in
+@@ -1,6 +1,6 @@
+ prefix=@CMAKE_INSTALL_PREFIX@
+ exec_prefix=@CMAKE_INSTALL_PREFIX@
+-libdir=@LIB_INSTALL_DIR@
++libdir=${exec_prefix}/lib
+ includedir=@CMAKE_INSTALL_PREFIX@/include
+ pkgdatadir=@CMAKE_INSTALL_PREFIX@/@RESOURCE_PREFIX@
+ sysconfdir=@CMAKE_INSTALL_PREFIX@/@RESOURCE_PREFIX@
+diff --git a/src/projectM-qt/libprojectM-qt.pc.in b/src/projectM-qt/libprojectM-qt.pc.in
+index 0677331..dd90552 100644
+--- a/src/projectM-qt/libprojectM-qt.pc.in
++++ b/src/projectM-qt/libprojectM-qt.pc.in
+@@ -1,6 +1,6 @@
+ prefix=@CMAKE_INSTALL_PREFIX@
+ exec_prefix=@CMAKE_INSTALL_PREFIX@
+-libdir=@LIB_INSTALL_DIR@
++libdir=${exec_prefix}/lib
+ includedir=@CMAKE_INSTALL_PREFIX@/include
+ pkgdatadir=@CMAKE_INSTALL_PREFIX@/share/projectM-qt
+ sysconfdir=@CMAKE_INSTALL_PREFIX@/share/projectM-qt
diff --git a/debian/patches/series b/debian/patches/series
index fc62544..1183cb9 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -7,3 +7,4 @@
07_cg-profile-setting.patch
08_qprojectm-openglcontext.patch
09_error-handling.patch
+10_pc-files.patch
--
1.7.1
More information about the pkg-multimedia-maintainers
mailing list