Mailinglist Archive: opensuse-packaging (165 mails)

< Previous Next >
Re: [opensuse-packaging] Why package builds for Factory but fails for 12.2?
On Fri, 2012-07-06 at 14:00 +0200, Dimstar / Dominique Leuenberger
wrote:

Even more surprisingly is the fact that dar in openSUSE:Factory has the
same broken config.h :)

Ok: that one is explainable: you build against Factory/snapshot... just
wait until snapshot is being updated to the latest bits and it will fail
for Factory as well.. patience is a virtue :) (if you're waiting for it
to fail that is).

For reference: this is a hacky patch that would likely fix the
installation of DAR:

Index: dar-2.3.10/src/libdar/Makefile.am
===================================================================
--- dar-2.3.10.orig/src/libdar/Makefile.am
+++ dar-2.3.10/src/libdar/Makefile.am
@@ -54,7 +54,7 @@ install-data-local:
for file in $(dist_noinst_DATA) gettext.h my_config.h ; do sed -e 's%
#include \"../my_config.h\"%INC_MY_CONFIG_FILE_H%g' "$$file" | sed -e "s
%#include \"%#include \"$(pkgincludedir)/%g" | sed -e "s%
INC_MY_CONFIG_FILE_H%#include \"$(pkgincludedir)/my_config.h\"%g" >
$(DESTDIR)$(pkgincludedir)/"$$file" ; done
rm my_config.h gettext.h
for file in $(DESTDIR)$(pkgincludedir)/* ; do sed -e 's%HAVE_%
LIBDAR_HAS_%g' "$$file" | sed -e 's%PACKAGE%DAR_PACKAGE%g' | sed -e 's%
SIZEOF_%LIBDAR_SIZEOF_%g' | sed -e 's%LSTAT_FOLLOWS_SLASHED_SYMLINK%
LIBDAR_LSTAT_FOLLOWS_SLASHED_SYMLINK%g' | sed -e 's%VERSION%
LIBDAR_VERSION%g' | sed -e 's%MUTEX_WORKS%LIBDAR_MUTEX_WORKS%g' | sed -e
's%OS_BITS%LIBDAR_OS_BITS%g' | sed -e 's%_AVAILABLE%
_AVAILABLE_FOR_LIBDAR%g' | sed -e 's%STDC_HEADERS%LIBDAR_STDC_HEADERS%g'
| sed -e 's%ENABLE_NLS%DAR_ENABLE_NLS%g' | sed -e 's%HAVE_GETTEXT%
DAR_HAS_GETTEXT%g' > "$$file.tmp" && mv "$$file.tmp" "$$file" ; done
- grep DAR $(DESTDIR)$(pkgincludedir)/config.h | grep -v "#undef" >
$(DESTDIR)$(pkgincludedir)/config.h.tmp
+ grep DAR $(DESTDIR)$(pkgincludedir)/config.h | grep -v -e "#undef" -e
"DARWIN" > $(DESTDIR)$(pkgincludedir)/config.h.tmp
mv $(DESTDIR)$(pkgincludedir)/config.h.tmp
$(DESTDIR)$(pkgincludedir)/config.h
chmod 0644 $(DESTDIR)$(pkgincludedir)/*
$(INSTALL) -d $(DESTDIR)$(libdir)/pkgconfig


=> it simply strips the DARWIN stuff out as well.. really hacky :) but
I'm too lazy to fix it...

Ilya: A bug report with reference to this thread is likely the best way
to get this fixed.

Dominique

--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >