[77650] trunk/base/src/package1.0/portrpm.tcl
afb at macports.org
afb at macports.org
Thu Apr 7 15:15:18 PDT 2011
Revision: 77650
http://trac.macports.org/changeset/77650
Author: afb at macports.org
Date: 2011-04-07 15:15:18 -0700 (Thu, 07 Apr 2011)
Log Message:
-----------
building rpm packages needs root privs, for the default package.destpath
Modified Paths:
--------------
trunk/base/src/package1.0/portrpm.tcl
Modified: trunk/base/src/package1.0/portrpm.tcl
===================================================================
--- trunk/base/src/package1.0/portrpm.tcl 2011-04-07 20:45:50 UTC (rev 77649)
+++ trunk/base/src/package1.0/portrpm.tcl 2011-04-07 22:15:18 UTC (rev 77650)
@@ -41,8 +41,13 @@
namespace eval portrpm {
}
+# Options
+options rpm.asroot
options package.destpath
+# Set up defaults
+default rpm.asroot yes
+
set_ui_prefix
proc portrpm::rpm_main {args} {
@@ -54,11 +59,12 @@
}
proc portrpm::rpm_pkg {portname portversion portrevision} {
- global UI_PREFIX package.destpath portdbpath destpath workpath prefix categories maintainers description long_description homepage epoch portpath
+ global UI_PREFIX rpm.asroot package.destpath portdbpath destpath workpath prefix categories maintainers description long_description homepage epoch portpath
global os.platform os.arch os.version os.major supported_archs configure.build_arch license
set rpmdestpath ""
if {![string equal ${package.destpath} ${workpath}] && ![string equal ${package.destpath} ""]} {
+ set rpm.asroot no
set pkgpath ${package.destpath}
file mkdir ${pkgpath}/BUILD \
${pkgpath}/RPMS \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110407/6775fb32/attachment.html>
More information about the macports-changes
mailing list