Bug#591011: libprojectm-dev: Incorrect .pc files

2010-07-31 Thread Matthias Klumpp
I updated the patch which already fixes the broken CMakeLists.txt of
libprojectM.
It seems like upstream has forgotten to set the required cmake variable...
Done  submitted upstream.




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#591011: libprojectm-dev: Incorrect .pc files

2010-07-30 Thread Christophe Mutricy
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  libprojectm22.0.1+dfsg-2 Advanced Milkdrop-compatible music

libprojectm-dev recommends no packages.

libprojectm-dev suggests no packages.

-- no debconf information
From a139eb3d81e45ee88609d14adbc99b5f0ae62282 Mon Sep 17 00:00:00 2001
From: Christophe Mutricy xto...@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 000..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 @@
+ pref...@cmake_install_prefix@
+ exec_pref...@cmake_install_prefix@
+-libd...@lib_install_dir@
++libdir=${exec_prefix}/lib
+ included...@cmake_install_prefix@/include
+ pkgdatad...@cmake_install_prefix@/@RESOURCE_PREFIX@
+ sysconfd...@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 @@
+ pref...@cmake_install_prefix@
+ exec_pref...@cmake_install_prefix@
+-libd...@lib_install_dir@
++libdir=${exec_prefix}/lib
+ included...@cmake_install_prefix@/include
+ pkgdatad...@cmake_install_prefix@/share/projectM-qt
+ sysconfd...@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



Bug#591011: libprojectm-dev: Incorrect .pc files

2010-07-30 Thread Matthias Klumpp
Hi!
Thanks for your report!
I'll look at this tomorrow and fix the cmake script, if possible.
Otherwise I will apply your patch (which indeed fixes the problem, but does
not follow the usual cmake-way)
Regards
 Matthias




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org