Bug 104821 - Reported Free BSD Makefile issue at rpm-4.2.1
Summary: Reported Free BSD Makefile issue at rpm-4.2.1
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: rpm
Version: 1.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-09-22 16:29 UTC by R P Herrold
Modified: 2007-04-18 16:57 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2003-12-27 15:59:38 UTC
Embargoed:


Attachments (Terms of Use)

Description R P Herrold 2003-09-22 16:29:48 UTC
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:

Comment 1 Jeff Johnson 2003-12-27 15:59:38 UTC
Added in CVS, should be in rpm-4.2.2-0.8 and later.


Note You need to log in before you can comment on or make changes to this bug.