Date: Mon, 22 Sep 2003 17:58:32 +0200 From: Armijn Hemel <armijn.uu.nl> Reply-To: rpm-list 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. he 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... ============================================================== 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:\ \ escription of problem: Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Added in CVS, should be in rpm-4.2.2-0.8 and later.