rep-gtk 0.18.6 on x86-64 doesn't create an RPM
- From: Allan Duncan <amd2345 fastmail com au>
- To: General discussion about sawfish wm <sawfish-list gnome org>
- Subject: rep-gtk 0.18.6 on x86-64 doesn't create an RPM
- Date: Mon, 04 May 2009 16:24:07 +1000
Firstly, there is a syntax error in the spec file that breaks on at least Fedora 10's
rpmbuild - two occurrences of the %files keyword. BTW, note the %{_libdir} for both
rep and pkgconfig.
A patch:
=============================================================================
--- rep-gtk.spec.in-orig Mon Apr 20 00:07:14 2009
+++ rep-gtk.spec.in Wed Apr 29 22:50:44 2009
@@ -36,18 +36,10 @@
%files
%defattr (-,root,root,-)
-%doc README* examples/ TODO NEWS HACKING AUTHORS BUGS
-%{_libdir}/rep/%{_host}/gui
+%doc README* examples/ TODO NEWS HACKING AUTHORS BUGS ChangeLog gtk.defs gdk.defs
+%{_libdir}/rep/%{_host}/gui/
%{_libdir}/pkgconfig/rep-gtk.pc
-%files
-%defattr(-,root,root)
-%doc README README.guile-gtk BUGS ChangeLog gtk.defs gdk.defs
-%{_libexecdir}/rep/%{_target_platform}/gui/gtk-2/gtk.so*
-%{_libexecdir}/rep/%{_target_platform}/gui/gtk-2/gtk.la
-%{_libexecdir}/rep/%{_target_platform}/gui/gtk-2/types.so*
-%{_libexecdir}/rep/%{_target_platform}/gui/gtk-2/types.la
-
%changelog
* Sun Jan 18 2009 Christopher Bratusek <zanghar freenet de>
- several updates
=============================================================================
As mentioned elsewhere, the pkgconfig build gets its libdir screwed up, viz:
/usr/lib64/rep/x86_64-unknown-linux-gnu/install-aliases -c .
/home/alland/rpmbuild/BUILDROOT/rep-gtk-0.18.6-1.x86_64/usr/lib64/rep/x86_64-unknown-linux-gnu
install -d /home/alland/rpmbuild/BUILDROOT/rep-gtk-0.18.6-1.x86_64/usr/lib/pkgconfig/
install -m644 rep-gtk.pc /home/alland/rpmbuild/BUILDROOT/rep-gtk-0.18.6-1.x86_64/usr/lib/pkgconfig/
+ /usr/lib/rpm/find-debuginfo.sh --strict-build-id /home/alland/rpmbuild/BUILD/rep-gtk-0.18.6
extracting debug info from
/home/alland/rpmbuild/BUILDROOT/rep-gtk-0.18.6-1.x86_64/usr/lib64/rep/x86_64-unknown-linux-gnu/gui/gtk-2/types.so
extracting debug info from
/home/alland/rpmbuild/BUILDROOT/rep-gtk-0.18.6-1.x86_64/usr/lib64/rep/x86_64-unknown-linux-gnu/gui/gtk-2/gtk.so
---
Processing files: rep-gtk-0.18.6-1
error: File not found:
/home/alland/rpmbuild/BUILDROOT/rep-gtk-0.18.6-1.x86_64/usr/lib64/pkgconfig/rep-gtk.pc
Some other snippets from the BUILD directory are attached to help those who understand
the runes decipher the error. I could use a brute force hard coded libdir, but that
is cheating.
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: rep-gtk
Description: GTK+ bindings to librep
Version: 0.18.6
Requires: librep gtk+-2.0 gdk-pixbuf-2.0
Name: rep-gtk
...
%build
./autogen.sh --prefix=/usr
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
version=0.18.6
host_type=x86_64-unknown-linux-gnu
SHELL=/bin/sh
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
datarootdir=${prefix}/share
repexecdir=/usr/lib64/rep/x86_64-unknown-linux-gnu
include $(repexecdir)/rules.mk
CC=gcc
CPPFLAGS=
CFLAGS=-g -O2
LDFLAGS=
override CPPFLAGS += -DHAVE_CONFIG_H -I.
override CFLAGS += -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/ -I/usr/lib64/rep/x86_64-unknown-linux-gnu/ -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
REP_SGTK_LIBS=-lglib-2.0
REP_GTK_LIBS=-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0
INSTALL=/usr/bin/install -c
INSTALL_DATA=${INSTALL} -m 644
INSTALL_PROGRAM=${INSTALL}
DESTDIR=
installdir=$(repexecdir)
top_srcdir=.
top_builddir=.
VPATH=.:.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]