Mailinglist Archive: opensuse-packaging (165 mails)

< Previous Next >
Re: [opensuse-packaging] Why package builds for Factory but fails for 12.2?
Hello,

On Fri, 06 Jul 2012, Dimstar / Dominique Leuenberger wrote:
Index: dar-2.3.10/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

Yuck. Untested:

for file in $(DESTDIR)$(pkgincludedir)/* ; do \
sed -e 's%HAVE_%LIBDAR_HAS_%g' \
-e 's%PACKAGE%DAR_PACKAGE%g' \
-e 's%SIZEOF_%LIBDAR_SIZEOF_%g' \
-e
's%LSTAT_FOLLOWS_SLASHED_SYMLINK%LIBDAR_LSTAT_FOLLOWS_SLASHED_SYMLINK%g' \
-e 's%VERSION%LIBDAR_VERSION%g' \
-e 's%MUTEX_WORKS%LIBDAR_MUTEX_WORKS%g' \
-e 's%OS_BITS%LIBDAR_OS_BITS%g' \
-e 's%_AVAILABLE%_AVAILABLE_FOR_LIBDAR%g' \
-e 's%STDC_HEADERS%LIBDAR_STDC_HEADERS%g' \
-e 's%ENABLE_NLS%DAR_ENABLE_NLS%g' \
-e 's%HAVE_GETTEXT%DAR_HAS_GETTEXT%g' \
"$$file" > "$$file.tmp" && mv "$$file.tmp" "$$file" ; \
done
grep '\<DAR\>\|\<LIBDAR\>' $(DESTDIR)$(pkgincludedir)/config.h | \
grep -v "#undef" -e > $(DESTDIR)$(pkgincludedir)/config.h.tmp
[..]

HTH,
-dnh

--
There are three stages to sex in a person's life: Tri Weekly, Try Weekly,
and Try Weakly
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >