pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/misc/rpm the included popt library is broken on some p...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/013434dc60dd
branches:  trunk
changeset: 478458:013434dc60dd
user:      grant <grant%pkgsrc.org@localhost>
date:      Sat Jul 24 04:43:10 2004 +0000

description:
the included popt library is broken on some platforms because it assumes
alloca is available without explicitly pulling it in. use the devel/popt
pkg instead and fix PKGLOCALEDIR handling while I'm here.

fixes install on Solaris.

diffstat:

 misc/rpm/Makefile         |   9 ++++++---
 misc/rpm/distinfo         |   8 ++++----
 misc/rpm/patches/patch-ac |  11 ++++++++++-
 misc/rpm/patches/patch-ba |  19 +++++++++++++++----
 misc/rpm/patches/patch-bc |  24 ------------------------
 misc/rpm/patches/patch-be |  14 ++++++++++++++
 6 files changed, 49 insertions(+), 36 deletions(-)

diffs (156 lines):

diff -r a0bb10069538 -r 013434dc60dd misc/rpm/Makefile
--- a/misc/rpm/Makefile Sat Jul 24 03:32:24 2004 +0000
+++ b/misc/rpm/Makefile Sat Jul 24 04:43:10 2004 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.47 2004/04/25 11:46:54 wiz Exp $
+# $NetBSD: Makefile,v 1.48 2004/07/24 04:43:10 grant Exp $
 
 DISTNAME=      rpm-2.5.4
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    misc
 MASTER_SITES=  ftp://ftp.rpm.org/pub/rpm/dist/rpm-2.5.x/
 
@@ -15,7 +15,6 @@
 
 USE_BUILDLINK3=                yes
 USE_DB185=             yes
-USE_PKGLOCALEDIR=      yes
 USE_GNU_TOOLS+=                make
 GNU_CONFIGURE=         yes
 
@@ -23,6 +22,9 @@
 DEINSTALL_EXTRA_TMPL+= ${.CURDIR}/DEINSTALL
 INSTALL_EXTRA_TMPL+=   ${.CURDIR}/INSTALL
 
+# this is needed instead of USE_PKGLOCALEDIR
+CONFIGURE_ARGS+=       --datadir=${PREFIX}/${PKGLOCALEDIR}
+
 # The rpm databases are kept under ${RPM_DB_PREFIX}/lib/rpm.
 CONFIGURE_ENV+=                varprefix="${RPM_DB_PREFIX}"
 
@@ -38,6 +40,7 @@
        ${INSTALL_DATA_DIR} ${PREFIX}/include/rpm
 
 .include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../devel/popt/buildlink3.mk"
 .include "../../devel/zlib/buildlink3.mk"
 
 .include "../../mk/bdb.buildlink3.mk"
diff -r a0bb10069538 -r 013434dc60dd misc/rpm/distinfo
--- a/misc/rpm/distinfo Sat Jul 24 03:32:24 2004 +0000
+++ b/misc/rpm/distinfo Sat Jul 24 04:43:10 2004 +0000
@@ -1,14 +1,14 @@
-$NetBSD: distinfo,v 1.6 2004/02/09 11:56:32 grant Exp $
+$NetBSD: distinfo,v 1.7 2004/07/24 04:43:10 grant Exp $
 
 SHA1 (rpm-2.5.4.tar.gz) = a7fcd67883aec8d5f17483d5efebe7e5f5453462
 Size (rpm-2.5.4.tar.gz) = 727849 bytes
 SHA1 (patch-aa) = 3ee3193cc8e9043017b1f507b606c72acab77ddb
 SHA1 (patch-ab) = 63635f4f7fd96b4e7a40bfbaffd5673b40db3a13
-SHA1 (patch-ac) = fb2e20b2342738eae701e4b75ac695eca810db41
-SHA1 (patch-ba) = edf6708fe7ef3b0e899473a13fe709d8c561e14b
+SHA1 (patch-ac) = ed4545088fc0cc56fd577fbc122a073f12d751aa
+SHA1 (patch-ba) = c6a062e733e09eb56144177444188dcaf0cfcb06
 SHA1 (patch-bb) = dc0ea2dd366b793003218858ca3d67bc285a2089
-SHA1 (patch-bc) = 95a27125f8e17a5433bab273958d49ec3e0f3376
 SHA1 (patch-bd) = 1c9cd4587314ee45bccdf08c6ecaabbe641aaa5d
+SHA1 (patch-be) = ed237b47e9f8033e8fdfc4258a1bdd5ebaff469e
 SHA1 (patch-ca) = 7f4b008eee3b9f1bd3abc49686f70a327376af55
 SHA1 (patch-cb) = 30f98037c6a5ba753bc19b20564e177ad1e8c1a9
 SHA1 (patch-cc) = d5955ec8b51950aadf930a62743601c2d4a0a127
diff -r a0bb10069538 -r 013434dc60dd misc/rpm/patches/patch-ac
--- a/misc/rpm/patches/patch-ac Sat Jul 24 03:32:24 2004 +0000
+++ b/misc/rpm/patches/patch-ac Sat Jul 24 04:43:10 2004 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-ac,v 1.9 2004/02/09 11:56:32 grant Exp $
+$NetBSD: patch-ac,v 1.10 2004/07/24 04:43:10 grant Exp $
 
 --- configure.orig     1998-09-29 06:50:23.000000000 +1000
 +++ configure
@@ -36,3 +36,12 @@
        echo "$ac_t""yes" 1>&6
  else
        echo "$ac_t""no" 1>&6
+@@ -4065,7 +4062,7 @@ else
+    NBMAKEFILE=
+ fi
+ 
+-subdirs="popt"
++#subdirs="popt"
+ 
+ trap '' 1 2 15
+ cat > confcache <<\EOF
diff -r a0bb10069538 -r 013434dc60dd misc/rpm/patches/patch-ba
--- a/misc/rpm/patches/patch-ba Sat Jul 24 03:32:24 2004 +0000
+++ b/misc/rpm/patches/patch-ba Sat Jul 24 04:43:10 2004 +0000
@@ -1,8 +1,19 @@
-$NetBSD: patch-ba,v 1.1 1998/11/05 01:34:02 mycroft Exp $
+$NetBSD: patch-ba,v 1.2 2004/07/24 04:43:10 grant Exp $
 
---- Makefile.in.orig   Sat Sep 12 09:16:32 1998
-+++ Makefile.in        Wed Nov  4 20:08:24 1998
-@@ -124,21 +124,19 @@
+--- Makefile.in.orig   1998-09-12 23:16:32.000000000 +1000
++++ Makefile.in
+@@ -30,8 +30,8 @@ ETCDIR=$(ROOT)/etc
+ 
+ # -----------------------------------------------------------------------
+ 
+-SUBDIRS = popt @MISCDIR@ lib build tools @PO@
+-ALLSUBDIRS = popt misc lib build tools po
++SUBDIRS = @MISCDIR@ lib build tools @PO@
++ALLSUBDIRS = misc lib build tools po
+ INSTSUBDIRS = lib scripts @PO@
+ OTHERSUBDIRS = docs autodeps
+ OBJS = rpm.o query.o install.o verify.o checksig.o ftp.o url.o build.o \
+@@ -124,21 +124,19 @@ install: all
        [ -d $(installprefix)/$(RPMCONFIGDIR) ] ||  \
                $(mkinstalldirs) $(installprefix)/$(RPMCONFIGDIR)
        if [ -x ./rpm ]; then \
diff -r a0bb10069538 -r 013434dc60dd misc/rpm/patches/patch-bc
--- a/misc/rpm/patches/patch-bc Sat Jul 24 03:32:24 2004 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,24 +0,0 @@
-$NetBSD: patch-bc,v 1.2 2001/07/15 22:38:15 jlam Exp $
-
---- popt/Makefile.in.orig      Sun Sep 27 10:57:03 1998
-+++ popt/Makefile.in
-@@ -16,7 +16,7 @@
- LIBS=$(prefix)/lib
- INCLUDE=$(prefix)/include
- CPP=@CPP@
--LDFLAGS=@LIBS@
-+LDFLAGS=@LDFLAGS@ @LIBS@
- TESTCASES=test1
- 
- VERSION=$(shell awk '/define version/ { print $$3 }' popt.spec)
-@@ -63,8 +63,8 @@
- install:
-       mkdir -p $(PREFIX)/$(INCLUDE)
-       mkdir -p $(PREFIX)/$(LIBS)
--      $(INSTALL_DATA) -m 644 popt.h $(PREFIX)/$(INCLUDE)/popt.h
--      $(INSTALL_DATA) -m 644 $(LIBPOPT) $(PREFIX)/$(LIBS)/$(LIBPOPT)
-+      $(BSD_INSTALL_DATA) popt.h $(PREFIX)/$(INCLUDE)/popt.h
-+      $(BSD_INSTALL_DATA) $(LIBPOPT) $(PREFIX)/$(LIBS)/$(LIBPOPT)
- 
- archive:
-       cvs tag -F $(CVSTAG) .
diff -r a0bb10069538 -r 013434dc60dd misc/rpm/patches/patch-be
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/rpm/patches/patch-be Sat Jul 24 04:43:10 2004 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-be,v 1.1 2004/07/24 04:43:10 grant Exp $
+
+--- Makefile.inc.in.orig       1998-09-01 21:22:34.000000000 +1000
++++ Makefile.inc.in
+@@ -17,8 +17,7 @@ RPMNLSDIR=@datadir@/locale
+ RPMNLSPACKAGE=rpm
+ CFLAGS = -I$(topdir) -I$(topsrcdir) @CFLAGS@ @INCPATH@ $(OPTS) \
+         -I$(topsrcdir)/lib -I$(topsrcdir)/misc
+-LDFLAGS = @LDFLAGS@ -L$(topdir)/lib -L$(topdir)/build -L$(topdir)/misc \
+-        -L$(topdir)/popt
++LDFLAGS = @LDFLAGS@ -L$(topdir)/lib -L$(topdir)/build -L$(topdir)/misc
+ VERSION = 2.5.4
+ CC = @CC@
+ 



Home | Main Index | Thread Index | Old Index