rawhide report: 20070912 changes

Ralf Corsepius rc040203 at freenet.de
Thu Sep 13 16:33:55 UTC 2007


On Thu, 2007-09-13 at 08:31 -0700, Christopher Stone wrote:
> I did not see Ralf's announcement on the mailing list where he asked
> who uses OSG-devel.  Ralf, I would suggest you use repoquery to find
> the answer to this question in the future.
> 
> Ralf, we appreciate your offer to help, but the fact is that you
> completely misunderstand the problem.  The problem does not lie with
> osgcal/osgal, the problem is with osg.  osg needs to re-add their
> pkgconfig file (the one provided by debian).  If you truly wish to
> help out, then please just re-add the pkgconfig file, 

Here you are aiming at my head with your gun, again.

You effectively are saying: "I am leaving you no choice but to add these
*.pcs", and leaving no choice.


> and then send it
> to the osg folks for them to include.
> 
> I have tried to explain this to you several times now, but you keep on
> insisting that osgal/osgcal are "trashy" and "crappy" applications

There configure scripts as in CVS are - they violating autoconf
principles all over the place.


Will you finally send me links to your sources such I can point you to
the bugs?

Below is the diff to get osgalpp working w/o pkg-config.

Index: openalpp.spec
===================================================================
RCS file: /cvs/pkgs/rpms/openalpp/devel/openalpp.spec,v
retrieving revision 1.14
diff -u -r1.14 openalpp.spec
--- openalpp.spec       8 Jul 2007 12:20:50 -0000       1.14
+++ openalpp.spec       11 Sep 2007 23:03:22 -0000
@@ -1,6 +1,6 @@
 Name:           openalpp
 Version:        20060714
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        Object Oriented version of OpenAL

 Group:          System Environment/Libraries
@@ -22,6 +22,7 @@
 Group:          Development/Libraries
 Requires:       %{name} = %{version}-%{release}
 Requires:       openal-devel freealut-devel libvorbis-devel
OpenThreads-devel
+Requires:       pkgconfig

 %description devel
 This package contains headers and libraries required to build
applications that
@@ -33,9 +34,14 @@
 sed -i -e 's/^\(CXXFLAGS="[^"]*\)/\1 $CXXFLAGS/' configure
^[  IW   diff
Row 67   Col 1    6:29  Ctrl-K H for help
 Version:        20060714
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        Object Oriented version of OpenAL
 
 Group:          System Environment/Libraries
@@ -22,6 +22,7 @@
 Group:          Development/Libraries
 Requires:       %{name} = %{version}-%{release}
 Requires:       openal-devel freealut-devel libvorbis-devel
OpenThreads-devel
+Requires:       pkgconfig
 
 %description devel
 This package contains headers and libraries required to build
applications that
@@ -33,9 +34,14 @@
 sed -i -e 's/^\(CXXFLAGS="[^"]*\)/\1 $CXXFLAGS/' configure
 find -name "*.cpp" -o -name "*.h" | xargs chmod -c -x

+# OSG-2 has abanded openthreads.pc, hard-code minimal requirements.
+sed -i -e 's;^\(Requires:.*\) openthreads,;\1;' \
+  -e 's;\(^Libs:.*\) @ALUT_LIB@;\1 -lOpenThreads @ALUT_LIB@;' \
+  openalpp.pc.in

 %build
-%configure --disable-static --disable-dependency-tracking
+%configure --disable-static --disable-dependency-tracking \
+OPENTHREADS_CFLAGS=' ' OPENTHREADS_LIBS="-lOpenThreads"
 make %{?_smp_mflags}


@@ -65,12 +71,18 @@
 %{_libdir}/*.so.*

 %files devel
+%defattr(-,root,root,-)
 %{_includedir}/openalpp
 %{_libdir}/pkgconfig/%{name}.pc
 %{_libdir}/*.so
 

 %changelog
+* Sun Jul 29 2007 Ralf Corsépius <rc040203 at freenet.de> 20060714-5
+- Work-around OSG-2 having dropped openthreads.pc.
+- Add missing R: pkgconfig to *-devel.
+- Add missing %defattr to *-devel.
+
 * Sun Jul 08 2007 Christopher Stone <chris.stone at gmail.com> 20060714-4
 - Rebuild for OSG 2.0



As you can see the work-around to pkgconfig is close to being trivial.
configure OPENTHREADS_CFLAGS=' ' ...
is one half

The other half is massaging the openalpp.pc.

Ralf






More information about the fedora-devel-list mailing list