Opened 21 years ago

Closed 21 years ago

Last modified 9 years ago

#1384 closed defect (fixed)

BUG: rpm41 + port rpmpackage

Reported by: julien.touche@… Owned by: ssen@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port:

Description

port rpmpackage rpm41

---> Creating RPM package for rpm41-4.1.1 Error: Target com.apple.rpmpackage returned: shell command "DP_USERECEIPTS='/opt/local/var/db/dports/receipts' rpm -bb -v /Users/touche/tmp/darwinports/dports/sysutils/rpm41/work/rpm41.spec" returned error 1 Command output: -bb: unknown option

is it not -ba ?

Change History (2)

comment:1 Changed 21 years ago by ssen@…

No, not -ba, since we don't want to create source packages. Source packages are meaningless since we are not using RPM to start with source and build an end result.

RPM 4.1 seems to have removed support for rpm -bb. Instead, we should use rpmbuild -bb (I think, I looked at this a bit ago but didn't think about people using 4.1 to build new packages)

We probably need to change base/ to use this, which should work with 4.0.x and 4.1.

comment:2 Changed 21 years ago by ssen@…

Resolution: fixed
Status: newclosed

Fixed in darwinports base. You will need to update and reinstall your base darwinports infrastructure to get this fix.

Index: portrpmpackage.tcl
===================================================================
RCS file: /Volumes/src/cvs/od/proj/darwinports/base/src/port1.0/portrpmpackage.tcl,v
retrieving revision 1.6
diff -p -u -u -r1.6 portrpmpackage.tcl
--- portrpmpackage.tcl  5 Jan 2004 02:45:21 -0000       1.6
+++ portrpmpackage.tcl  7 Jan 2004 18:05:59 -0000
@@ -103,7 +103,7 @@ proc rpmpackage_pkg {portname portversio
     system "cd '${destpath}' && find . ! -type d | grep -v /etc/ | sed -e 's/\"/\\\"/g' -e 's/^./\"/' -e 's/$/\"/' >> '${workpath}/${portname}.filelist'"
     system "cd '${destpath}' && find . ! -type d | grep /etc/ | sed -e 's/\"/\\\"/g' -e 's/^./%config \"/' -e 's/$/\"/' >> '${workpath}/${portname}.filelist'"
     write_spec ${specpath} $portname $portversion $portrevision $pkg_description $pkg_long_description $category $maintainer $destpath $dependencies $epoch
-    system "DP_USERECEIPTS='${portdbpath}/receipts' rpm -bb -v ${rpmdestpath} ${specpath}"
+    system "DP_USERECEIPTS='${portdbpath}/receipts' rpmbuild -bb -v ${rpmdestpath} ${specpath}"
     
     return 0
 }

I tested this with RPM 4.0.x and RPM 4.1.x (both from Darwinports)

Last edited 9 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)
Note: See TracTickets for help on using tickets.