[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RPM build error on FreeBSD (+ fix)



hi,

I tried to build various instances of RPM 4.2 on FreeBSD, but it failed
with the following error:

...
config.status: creating db_config.h
"/tmp/rpm-4.2/db3/Makefile", line 408: Need an operator
make: fatal errors encountered -- cannot continue
configure: error: /usr/local/bin/bash './configure' failed for db3

That particular line in the Makefile reads:

.PHONY: listobjs
listobjs:
@echo $(OBJS) $(C_OBJS)

As you can see a tab character is missing. On Linux this doesn't happen.
I think the sed expression in the configure script in the db3 directory
returns a different result on FreeBSD than it does on Linux.

The attached patch makes the configure work on FreeBSD. I tested it on
Linux (Red Hat 9) as well, but it never hurts if someone could verify
it. The Red Hat bugzilla system was a bit unclear of where I should file
this bug so I'm using the mailinglist instead...

I need some of the RPM functionality (Python bindings) on my FreeBSD
system, so it would be great if this patch could be applied...

thanks in advance,

armijn

-- 
 ---------------------------------------------------------------------------
  armijn@uulug.nl | http://www.uulug.nl/ | UULug: Utrecht Linux Users Group
 ---------------------------------------------------------------------------
diff -ruN rpm-4.2.1.old/db3/configure rpm-4.2.1/db3/configure
--- rpm-4.2.1.old/db3/configure	2002-12-20 15:36:49.000000000 +0100
+++ rpm-4.2.1/db3/configure	2003-09-22 15:40:30.000000000 +0200
@@ -15,7 +15,7 @@
 cat Makefile.orig | sed -e '/^install[:-]/c\
 .PHONY: listobjs\
 listobjs:\
-	@echo $(OBJS) $(C_OBJS) \
+\	@echo $(OBJS) $(C_OBJS) \
 \
 distdir install check:\
 \

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]