pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/49079: devel/gobject-introspection needs shoehorning of path to separate pkgsrc install



>Number:         49079
>Category:       pkg
>Synopsis:       devel/gobject-introspection needs shoehorning of path to 
>separate pkgsrc install
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 06 15:20:00 +0000 2014
>Originator:     Thomas Orgis
>Release:        pkgsrc-2014Q2
>Organization:
Universität Hamburg
>Environment:
Linux host 3.0.93-0.8-default #1 SMP Tue Aug 27 08:44:18 UTC 2013 (70ed288) 
x86_64 x86_64 x86_64 GNU/Linux

>Description:
I install pkgsrc in a separate location to freshen up the software environemnt 
in a SuSE Linux Enterprise Server 11.3 setup.

One package getting into an issue with old versions of things in /usr is 
devel/gobject-introspection. It finds 'gir' files p.ex. for old system pango in 
/usr, while it should use the fresh one installed into /some/prefix/pkgsrc/.

This leads to build failures of various software in the stack.
>How-To-Repeat:
Have a rusty base system with existing .gir files for gobject-introspection and 
install pkgsrc into a separate prefix. Any build that uses g-ir-scanner or 
g-ir-compiler possibly finds an outdated file and fails, although up-to-date 
files are installed in pkgsrc prefix. I'll include a crude patch that solves 
the problem for me.

PS: I have another hack in buildlink3 in plac that prevents system libs 
overriding pkgsrc ones (disabling BUILDLINK_LIBDIRS at a certain point). This 
should be independent from this issue though. All in all, the case with 
possibly present old versions in the base system is not the everyday one, I 
presume.
>Fix:
Index: devel/gobject-introspection/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/devel/gobject-introspection/Makefile,v
retrieving revision 1.40
diff -r1.40 Makefile
49a50,61
> # Enforce pkgsrc install of gir stuff to be first in search path.
> # I am assuming that we should not encode $DESTDIR in the installed
> # wrapper script. -- ThOr
> post-install:
>       ${MV} ${DESTDIR}${PREFIX}/bin/g-ir-scanner 
> ${DESTDIR}${PREFIX}/bin/g-ir-scanner.plain
>       printf "#!/bin/sh\nexec \$$0.plain 
> --add-include-path=${PREFIX}/share/gir-1.0 \"\$$@\"\n" > 
> ${DESTDIR}${PREFIX}/bin/g-ir-scanner
>       chmod +x ${DESTDIR}${PREFIX}/bin/g-ir-scanner
>       ${MV} ${DESTDIR}${PREFIX}/bin/g-ir-compiler 
> ${DESTDIR}${PREFIX}/bin/g-ir-compiler.plain
>       printf "#!/bin/sh\nexec \$$0.plain --includedir=${PREFIX}/share/gir-1.0 
> \"\$$@\"\n" > ${DESTDIR}${PREFIX}/bin/g-ir-compiler
>       chmod +x ${DESTDIR}${PREFIX}/bin/g-ir-compiler
> 
> 
Index: devel/gobject-introspection/PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/devel/gobject-introspection/PLIST,v
retrieving revision 1.6
diff -r1.6 PLIST
3a4
> bin/g-ir-compiler.plain
5a7
> bin/g-ir-scanner.plain



Home | Main Index | Thread Index | Old Index