Red Hat Bugzilla – Bug 47886
gal-0.8-4 only builds when a previous version is present
Last modified: 2013-04-02 00:15:28 EDT
Description of Problem:
gal-0.8-4 from rawhide fails to build when no previous version of gal is
installed. This comes from a patch in this version (libgal-borken.patch)
which resolves some dependency problems but introduces others.
The patch adds $(GAL_LIBS) to the link command for libgal.(a|so). When
doing a fresh, pristine build there is no libgal present in the system, so
the link will fail, but when there is a leftover libgal from a previous
install is present the new one is linked against the old code, which may
introduce some interesting effects.
Also, po/Makefile is broken (doesn't use $(DESTDIR)), so locale files
do not make it to $RPM_BUILD_ROOT, instead they end up und
/usr/share/locale on the build system (when built as root), or aren't
installed at all due to permission problems (non-root build).
[drdisk@junkyard rawhide]$ ls -l gal-0.8-4.src.rpm
-rw-rw-r-- 1 drdisk drdisk 985662 Jun 25 02:04 gal-0.8-4.src.rpm
[drdisk@junkyard rawhide]$ rpm -qip gal-0.8-4.src.rpm
Name : gal Relocations: (not relocateable)
Version : 0.8 Vendor: Red Hat, Inc.
Release : 4 Build Date: Mon 25 Jun 2001
Install date: (not installed) Build Host:
Group : System Environment/Libraries Source RPM: (none)
Size : 987862 License: GPL
Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL : http://www.helixcode.com/tech/
Summary : The GNOME Application Library
A collection of GNOME widgets and utility functions.
Steps to Reproduce:
1. rpm --force -e gal gal-devel libgal
2. rpm --rebuild rawhide/gal-0.8-4.src.rpm
Created attachment 23008 [details]
Fix for locale file install, possible fix for linking problem
Created attachment 23009 [details]
modified spec file
The current version of gal seems to work.