Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Oct 2003 17:00:01 -0700
From:      Greg Lewis <glewis@eyesbeyond.com>
To:        Forrest Aldrich <forrie@forrie.com>
Cc:        ports@freebsd.org
Subject:   Re: RPM port
Message-ID:  <20031029000001.GA6374@misty.eyesbeyond.com>
In-Reply-To: <6.0.0.22.2.20031028170625.01cb9af0@192.168.1.1>
References:  <6.0.0.22.2.20031028170625.01cb9af0@192.168.1.1>

next in thread | previous in thread | raw e-mail | index | archive | help

--ReaqsoxgOBHFXBhH
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Tue, Oct 28, 2003 at 05:06:42PM -0500, Forrest Aldrich wrote:
> RPM is up to version 4.x -- will the port be brought up-to-date?

I haven't quite got an updated port (yet) but attached are some patches
if you want to compile RPM 4.0.4 (haven't tried 4.1 or 4.2 yet).

You need to have the gsed port installed and build with gmake.

-- 
Greg Lewis                          Email   : glewis@eyesbeyond.com
Eyes Beyond                         Web     : http://www.eyesbeyond.com
Information Technology              FreeBSD : glewis@FreeBSD.org


--ReaqsoxgOBHFXBhH
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="rpm.diff"

diff -uraN rpm-4.0.4/Makefile.in Makefile.in
--- Makefile.in	Thu Feb 14 16:58:07 2002
+++ Makefile.in	Wed Mar 27 10:23:21 2002
@@ -208,7 +208,7 @@
 	@INCPATH@
 
 
-LIBS = -lrt -lpthread
+LIBS = 
 
 myLDFLAGS = @LDFLAGS_STATIC@
 
diff -uraN rpm-4.0.4/db3/configure db3/configure
--- db3/configure	Fri Jul 27 10:20:43 2001
+++ db3/configure	Wed Mar 27 10:04:21 2002
@@ -15,7 +15,7 @@
 rm -f $db_dist/../db/dist $db_dist/dist
 
 mv Makefile Makefile.orig
-cat Makefile.orig | sed -e 's/ -g$/ -g -O2/' -e '/^install:/c\
+cat Makefile.orig | gsed -e 's/ -g$/ -g -O2/' -e '/^install:/c\
 .PHONY: listobjs\
 listobjs:\
 	@echo $(OBJS) $(C_OBJS) \
diff -uraN rpm-4.0.4/lib/signature.c lib/signature.c
--- lib/signature.c	Sat Feb  2 13:55:49 2002
+++ lib/signature.c	Wed Mar 27 10:21:31 2002
@@ -11,6 +11,10 @@
  * size key you like).  We also honor PGPPATH finally.
  */
 
+#ifdef __FreeBSD__
+extern char **environ;
+#endif
+
 #include "system.h"
 
 #include "rpmio_internal.h"
diff -uraN rpm-4.0.4/python/rpmmodule.c python/rpmmodule.c
--- python/rpmmodule.c	Sun Feb  3 16:59:57 2002
+++ python/rpmmodule.c	Wed Mar 27 10:25:35 2002
@@ -2,7 +2,6 @@
  * \file python/rpmmodule.c
  */
 
-#include <alloca.h>
 #include <errno.h>
 #include <fcntl.h>
 #include <time.h>
diff -uraN rpm-4.0.4/rpmio/Makefile.in rpmio/Makefile.in
--- rpmio/Makefile.in	Thu Feb 14 16:58:37 2002
+++ rpmio/Makefile.in	Wed Mar 27 10:16:38 2002
@@ -209,7 +209,7 @@
 
 noinst_HEADERS = rpmio_internal.h rpmpgp.h
 
-LIBS = @LIBS@ @WITH_ZLIB_LIB@ -lrt -lpthread
+LIBS = @LIBS@ @WITH_ZLIB_LIB@
 
 BEECRYPTLOBJS = $(shell cat $(top_builddir)/beecrypt/listobjs)
 
@@ -535,7 +535,7 @@
 	mv .librpmio.la librpmio.la
 
 $(top_builddir)/beecrypt/listobjs:
-	make -C $(top_builddir)/beecrypt listobjs
+	$(MAKE) -C $(top_builddir)/beecrypt listobjs
 
 .created: $(top_builddir)/beecrypt/listobjs
 	for lo in $(BEECRYPTLOBJS); do \

--ReaqsoxgOBHFXBhH--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031029000001.GA6374>