openpkg/zlib.patch

Wed, 01 Aug 2012 23:49:03 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 01 Aug 2012 23:49:03 +0200
changeset 436
f26e9329b115
permissions
-rw-r--r--

Hack rpmconstant header file to allow targets to build, because...
Solaris studio cc(1) fails to build targets in rpmconstant with errors:
'undefined symbol first referenced in file constant.o' regarding symbols:
rpmdsInit, rpmdsNext, rpmdsTagN, rpmHeaderFormats, hdrVec, rpmTagTable,
rpmdsSearch, rpmdsResult, rpmTags, rpmdsIx, rpmdsDNEVR, rpmdsSetResult.
It seems that these symbols are not used by RPM in any way, and thus
the build configuration can succeed without including the nasty headers.

     1 Index: Makefile.in
     2 --- Makefile.in.orig	2012-04-23 07:58:06.000000000 +0200
     3 +++ Makefile.in	2012-05-03 20:26:07.000000000 +0200
     4 @@ -193,16 +193,6 @@
     5  	cp $(STATICLIB) $(DESTDIR)$(libdir)
     6  	chmod 644 $(DESTDIR)$(libdir)/$(STATICLIB)
     7  	-@($(RANLIB) $(DESTDIR)$(libdir)/libz.a || true) >/dev/null 2>&1
     8 -	-@if test -n "$(SHAREDLIBV)"; then \
     9 -	  cp $(SHAREDLIBV) $(DESTDIR)$(sharedlibdir); \
    10 -	  echo "cp $(SHAREDLIBV) $(DESTDIR)$(sharedlibdir)"; \
    11 -	  chmod 755 $(DESTDIR)$(sharedlibdir)/$(SHAREDLIBV); \
    12 -	  echo "chmod 755 $(DESTDIR)$(sharedlibdir)/$(SHAREDLIBV)"; \
    13 -	  rm -f $(DESTDIR)$(sharedlibdir)/$(SHAREDLIB) $(DESTDIR)$(sharedlibdir)/$(SHAREDLIBM); \
    14 -	  ln -s $(SHAREDLIBV) $(DESTDIR)$(sharedlibdir)/$(SHAREDLIB); \
    15 -	  ln -s $(SHAREDLIBV) $(DESTDIR)$(sharedlibdir)/$(SHAREDLIBM); \
    16 -	  ($(LDCONFIG) || true)  >/dev/null 2>&1; \
    17 -	fi
    18  	cp zlib.3 $(DESTDIR)$(man3dir)
    19  	chmod 644 $(DESTDIR)$(man3dir)/zlib.3
    20  	cp zlib.pc $(DESTDIR)$(pkgconfigdir)

mercurial