Changes between Initial Version and Version 1 of Ticket #1384, comment 2
- Timestamp:
- Mar 24, 2016, 11:18:22 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #1384, comment 2
initial v1 2 2 infrastructure to get this fix. 3 3 4 {{{ 4 5 Index: portrpmpackage.tcl 5 ============================================================ 6 ======= 6 =================================================================== 7 7 RCS file: /Volumes/src/cvs/od/proj/darwinports/base/src/port1.0/portrpmpackage.tcl,v 8 8 retrieving revision 1.6 … … 11 11 +++ portrpmpackage.tcl 7 Jan 2004 18:05:59 -0000 12 12 @@ -103,7 +103,7 @@ proc rpmpackage_pkg {portname portversio 13 system "cd '${destpath}' && find . ! -type d | grep -v /etc/ | sed -e 's/\"/\\\"/g' -e 's/^./\"/' -e 14 's/$/\"/' >> '${workpath}/${portname}.filelist'" 15 system "cd '${destpath}' && find . ! -type d | grep /etc/ | sed -e 's/\"/\\\"/g' -e 's/^./%config 16 \"/' -e 's/$/\"/' >> '${workpath}/${portname}.filelist'" 17 write_spec ${specpath} $portname $portversion $portrevision $pkg_description 18 $pkg_long_description $category $maintainer $destpath $dependencies $epoch 13 system "cd '${destpath}' && find . ! -type d | grep -v /etc/ | sed -e 's/\"/\\\"/g' -e 's/^./\"/' -e 's/$/\"/' >> '${workpath}/${portname}.filelist'" 14 system "cd '${destpath}' && find . ! -type d | grep /etc/ | sed -e 's/\"/\\\"/g' -e 's/^./%config \"/' -e 's/$/\"/' >> '${workpath}/${portname}.filelist'" 15 write_spec ${specpath} $portname $portversion $portrevision $pkg_description $pkg_long_description $category $maintainer $destpath $dependencies $epoch 19 16 - system "DP_USERECEIPTS='${portdbpath}/receipts' rpm -bb -v ${rpmdestpath} ${specpath}" 20 + system "DP_USERECEIPTS='${portdbpath}/receipts' rpmbuild -bb -v ${rpmdestpath} 21 ${specpath}" 17 + system "DP_USERECEIPTS='${portdbpath}/receipts' rpmbuild -bb -v ${rpmdestpath} ${specpath}" 22 18 23 19 return 0 24 20 } 21 }}} 25 22 26 23 I tested this with RPM 4.0.x and RPM 4.1.x (both from Darwinports)