Bug#528229: libopenscenegraph-dev: openscenegraph.pc references missing -losgIntrospection

2009-05-22 Thread Alberto Luaces
Hello,

this is finally the patch that came through upstream's SVN:

1 - openscenegraph.pc left untouched for backward compatibility reasons.
2 - Renaming of all the new .pc files from openscenegraph-lib.pc to 
openscenegraph-osgLib.pc (being osgLib the real name of the library).
3 - Creation of a new file, openscenegraph-osg.pc that only adds the libosg.so 
base library.

Unfortunately for timing reasons it couldn't be included in 2.8.1, so we 
should apply this until the next upstream stable version.

Regards,

Alberto

Index: CMakeLists.txt
===
--- CMakeLists.txt	(revisión: 10261)
+++ CMakeLists.txt	(revisión: 10262)
@@ -795,14 +795,36 @@
 ENDIF()
 ENDIF()
 
-# Generate pkg-config configuration file
+# Generate pkg-config configuration files
 
-CONFIGURE_FILE(${PROJECT_SOURCE_DIR}/packaging/pkgconfig/openscenegraph.pc.in
-${PROJECT_BINARY_DIR}/packaging/pkgconfig/openscenegraph.pc
+SET(PKGCONFIG_FILES
+  openscenegraph
+  openscenegraph-osg
+  openscenegraph-osgDB
+  openscenegraph-osgFX
+  openscenegraph-osgGA
+  openscenegraph-osgParticle
+  openscenegraph-osgSim
+  openscenegraph-osgText
+  openscenegraph-osgUtil
+  openscenegraph-osgTerrain
+  openscenegraph-osgManipulator
+  openscenegraph-osgViewer
+  openscenegraph-osgWidget
+  openscenegraph-osgShadow
+  openscenegraph-osgAnimation
+  openscenegraph-osgVolume
+  openscenegraph-osgIntrospection
+)
+
+FOREACH(PKGCONFIG_FILE ${PKGCONFIG_FILES})
+  CONFIGURE_FILE(${PROJECT_SOURCE_DIR}/packaging/pkgconfig/${PKGCONFIG_FILE}.pc.in
+${PROJECT_BINARY_DIR}/packaging/pkgconfig/${PKGCONFIG_FILE}.pc
 @ONLY
 )
+  INSTALL(FILES ${PROJECT_BINARY_DIR}/packaging/pkgconfig/${PKGCONFIG_FILE}.pc DESTINATION lib${LIB_POSTFIX}/pkgconfig COMPONENT libopenscenegraph-dev)
+ENDFOREACH(PKGCONFIG_FILE)
 
-INSTALL(FILES ${PROJECT_BINARY_DIR}/packaging/pkgconfig/openscenegraph.pc DESTINATION lib${LIB_POSTFIX}/pkgconfig COMPONENT libopenscenegraph-dev)
 
 # Run this as late as possible so users can easier spot the message
 IF (NOT DEFINED REQUIRES_LIBPATH_MESSAGE AND ${CMAKE_INSTALL_PREFIX} STREQUAL /usr/local)


NewPcInFilesForDebian.tar.gz
Description: application/tgz


Bug#528229: libopenscenegraph-dev: openscenegraph.pc references missing -losgIntrospection

2009-05-22 Thread Loic Dachary
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Alberto Luaces wrote:
 Hello,

 this is finally the patch that came through upstream's SVN:

 1 - openscenegraph.pc left untouched for backward compatibility
 reasons. 2 - Renaming of all the new .pc files from
 openscenegraph-lib.pc to openscenegraph-osgLib.pc (being osgLib the
 real name of the library). 3 - Creation of a new file,
 openscenegraph-osg.pc that only adds the libosg.so base library.

 Unfortunately for timing reasons it couldn't be included in 2.8.1,
 so we should apply this until the next upstream stable version.

 Regards,

 Alberto

Great work ! I'll integrate this with the 2.8.1 release that has
recently been published.

Cheers

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkoWgH0ACgkQ8dLMyEl6F22WBwCfblaKQdJfy2IIm2XWntEEuxAU
+voAoIeoiwn86KsgLOvhf0Y5awWqwdOo
=rWNH
-END PGP SIGNATURE-

begin:vcard
fn:Loic Dachary
n:Dachary;Loic
org:pokersource
adr:;;12 bd Magenta;Paris;;75010;France
email;internet:l...@dachary.org
title:Senior Developer
tel;work:+33 9 51 18 43 38
tel;cell:+33 6 64 03 29 07
x-mozilla-html:FALSE
url:http://dachary.org/
version:2.1
end:vcard



Bug#528229: libopenscenegraph-dev: openscenegraph.pc references missing -losgIntrospection

2009-05-12 Thread Alberto Luaces
I think I have this done. Please find attached a patch for the root 
CMakeLists.txt and a tarball with all the .pc.in files to be deployed in the 
OpenSceneGraph/packaging/pkgconfig directory.

Regards,

Alberto
--- CMakeLists.txt~	2009-02-12 11:17:41.0 +0100
+++ CMakeLists.txt	2009-05-12 17:35:50.0 +0200
@@ -770,14 +770,35 @@
 ENDIF(BUILD_OSG_PACKAGES)
 ENDIF(CMAKE_CPACK_COMMAND)
 
-# Generate pkg-config configuration file
+# Generate pkg-config configuration files
 
-CONFIGURE_FILE(${PROJECT_SOURCE_DIR}/packaging/pkgconfig/openscenegraph.pc.in
-${PROJECT_BINARY_DIR}/packaging/pkgconfig/openscenegraph.pc
+SET(PKGCONFIG_FILES
+  openscenegraph
+  openscenegraph-db
+  openscenegraph-fx
+  openscenegraph-ga
+  openscenegraph-particle
+  openscenegraph-sim
+  openscenegraph-text
+  openscenegraph-util
+  openscenegraph-terrain
+  openscenegraph-manipulator
+  openscenegraph-viewer
+  openscenegraph-widget
+  openscenegraph-shadow
+  openscenegraph-animation
+  openscenegraph-volume
+  openscenegraph-introspection
+)
+
+FOREACH(PKGCONFIG_FILE ${PKGCONFIG_FILES})
+  CONFIGURE_FILE(${PROJECT_SOURCE_DIR}/packaging/pkgconfig/${PKGCONFIG_FILE}.pc.in
+${PROJECT_BINARY_DIR}/packaging/pkgconfig/${PKGCONFIG_FILE}.pc
 @ONLY
 )
+  INSTALL(FILES ${PROJECT_BINARY_DIR}/packaging/pkgconfig/${PKGCONFIG_FILE}.pc DESTINATION lib${LIB_POSTFIX}/pkgconfig COMPONENT libopenscenegraph-dev)
+ENDFOREACH(PKGCONFIG_FILE)
 
-INSTALL(FILES ${PROJECT_BINARY_DIR}/packaging/pkgconfig/openscenegraph.pc DESTINATION lib${LIB_POSTFIX}/pkgconfig COMPONENT libopenscenegraph-dev)
 
 # Run this as late as possible so users can easier spot the message
 IF (${CMAKE_INSTALL_PREFIX} STREQUAL /usr/local)


pkgconfig_templates.tar.gz
Description: application/tgz


Bug#528229: libopenscenegraph-dev: openscenegraph.pc references missing -losgIntrospection

2009-05-12 Thread Loic Dachary
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Alberto Luaces wrote:
 I think I have this done. Please find attached a patch for the root
  CMakeLists.txt and a tarball with all the .pc.in files to be
 deployed in the OpenSceneGraph/packaging/pkgconfig directory.

Thanks. I'll include this in the next package. Did you send the patch
to Robert Osfield ?

Cheers

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkoJoMMACgkQ8dLMyEl6F200jACgwOnsPrrBLj1pDP+/dQNrF5o9
p0AAnikiiTTiQ2DZnQOHBNpwV8ZzDjZc
=I7wV
-END PGP SIGNATURE-

begin:vcard
fn:Loic Dachary
n:Dachary;Loic
org:pokersource
adr:;;12 bd Magenta;Paris;;75010;France
email;internet:l...@dachary.org
title:Senior Developer
tel;work:+33 9 51 18 43 38
tel;cell:+33 6 64 03 29 07
x-mozilla-html:FALSE
url:http://dachary.org/
version:2.1
end:vcard



Bug#528229: libopenscenegraph-dev: openscenegraph.pc references missing -losgIntrospection

2009-05-12 Thread Alberto Luaces
El Martes 12 Mayo 2009ES 18:16:03 Loic Dachary escribió:
 Alberto Luaces wrote:
  I think I have this done. Please find attached a patch for the root
   CMakeLists.txt and a tarball with all the .pc.in files to be
  deployed in the OpenSceneGraph/packaging/pkgconfig directory.

 Thanks. I'll include this in the next package. Did you send the patch
 to Robert Osfield ?

Yes, I have just sent it as well to the submissions list, so it is now on the 
pending queue.

Regards,

Alberto




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



Bug#528229: libopenscenegraph-dev: openscenegraph.pc references missing -losgIntrospection

2009-05-11 Thread Cyril Brulebois
Package: libopenscenegraph-dev
Version: 2.8.0-4
Severity: serious
Justification: Unable to build anything on !i386

Hi.

It's no longer possible to build anything on amd64 with the new
libopenscenegraph-dev:
| $ gcc $(pkg-config --libs openscenegraph) *.cpp
| /usr/bin/ld: cannot find -losgIntrospection
| collect2: ld returned 1 exit status

Indeed, it references -losgIntrospection, which I guess only exists on
i386. It is at least missing on amd64, comparing [1,2].

 1. http://packages.debian.org/sid/i386/libopenscenegraph-dev/filelist
 2. http://packages.debian.org/sid/amd64/libopenscenegraph-dev/filelist

I guess it's due to the following in debian/rules:
| ifeq (i386,$(DEB_BUILD_ARCH))
| define INTROSPECTION
| …
| endif

Solutions I can think of: make libopenscenegraph-dev arch: any, so that
its contents can differ among architectures. Not sure it's a really
great idea (also, why does that introspection thingy only work on
i386?). A better option would be to drop it altogether from the .pc, and
leave people really needing this feature add it by themselves.

Cheers,
-- 
Cyril Brulebois

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.29-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libopenscenegraph-dev depends on:
ii  libgl1-mesa-dev [libgl-dev]   7.4.1-1A free implementation of the OpenG
ii  libglu1-mesa-dev [libglu-dev] 7.4.1-1The OpenGL utility library -- deve
ii  libopenscenegraph55   2.8.0-4low level graphics library for ope
ii  libopenthreads-dev2.8.0-4Object-Oriented (OO) thread interf

libopenscenegraph-dev recommends no packages.

libopenscenegraph-dev suggests no packages.

-- no debconf information



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



Bug#528229: libopenscenegraph-dev: openscenegraph.pc references missing -losgIntrospection

2009-05-11 Thread Alberto Luaces
HI,

another option would be to split the .pc file into smaller chunks, one per OSG 
library. This way, prograns linked to OSG won't have unneeded references as 
well.

In this week I'm submitting this to upstream and here as well as a patch.

Regards,

Alberto



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