Fwd: svn commit: r216916 - in user/dougb/portmaster: . files

Doug Barton dougb at FreeBSD.org
Mon Jan 3 07:30:41 UTC 2011


As discussed on the ports list I purposely picked a variable for this 
knob that is not specific to portmaster in case anyone else wants to add 
support for it as well.

FYI,

Doug

-------- Original Message --------
Subject: svn commit: r216916 - in user/dougb/portmaster: . files
Date: Mon, 3 Jan 2011 06:56:43 +0000 (UTC)
From: Doug Barton <dougb at FreeBSD.org>
To: src-committers at freebsd.org, svn-src-user at freebsd.org

Author: dougb
Date: Mon Jan  3 06:56:43 2011
New Revision: 216916
URL: http://svn.freebsd.org/changeset/base/216916

Log:
   Add support and documentation for the PT_NO_INSTALL_PACKAGE make
   variable which will cause a port to always be compiled, instead
   of being installed from a package. It cannot be used in combination
   with the --packages-only option.

Modified:
   user/dougb/portmaster/files/portmaster.8
   user/dougb/portmaster/portmaster

Modified: user/dougb/portmaster/files/portmaster.8
==============================================================================
--- user/dougb/portmaster/files/portmaster.8	Mon Jan  3 06:40:39 2011 
(r216915)
+++ user/dougb/portmaster/files/portmaster.8	Mon Jan  3 06:56:43 2011 
(r216916)
@@ -589,7 +589,7 @@ file so that the dependencies match.
  .Pp
  If you wish to customize your build environment on a per-port
  basis you might want to take a look at
-.Pa ports/ports-mgmt/portconf
+.Pa /usr/ports/ports-mgmt/portconf
  .Pp
  To log actions taken by
  .Nm
@@ -618,6 +618,21 @@ In situations where the user is ABSOLUTE
  that lack of a backup package should not be a fatal error
  .Ev PM_IGNORE_FAILED_BACKUP_PACKAGE
  can be defined to any value in the rc file.
+.Pp
+For those who wish to be sure that specific ports are always
+compiled instead of being installed from packages the
+.Ev PT_NO_INSTALL_PACKAGE
+variable can be defined in the
+.Xr make 1
+environment, perhaps in
+.Pa /usr/local/etc/ports.conf
+if using
+.Pa /usr/ports/ports-mgmt/portconf ,
+or in
+.Pa /etc/make.conf .
+This setting is not compatible with the
+.Fl PP/--packages-only
+option.
  .Sh FILES
  .Bl -tag -width "1234" -compact
  .It Pa /usr/local/etc/portmaster.rc

Modified: user/dougb/portmaster/portmaster
==============================================================================
--- user/dougb/portmaster/portmaster	Mon Jan  3 06:40:39 2011	(r216915)
+++ user/dougb/portmaster/portmaster	Mon Jan  3 06:56:43 2011	(r216916)
@@ -3239,6 +3239,21 @@ fi
  [ -n "$PM_REQ_BY_SKIP_PARENT" ] && urb_final

  if [ -n "$PM_PACKAGES" -o "$PM_PACKAGES_BUILD" = doing_build_only_dep 
]; then
+	case `pm_make_b -V PT_NO_INSTALL_PACKAGE` in
+	'')	pm_package_time=yes ;;
+	*)	if [ "$PM_PACKAGES" = 'only' ]; then
+			echo "===>>> The -PP/--packages-only option was specified, but"
+			echo "       PT_NO_INSTALL_PACKAGE is defined for $portdir"
+			fail These 2 options are mutually exclusive
+		fi
+		echo "===>>> PT_NO_INSTALL_PACKAGE is set, building port"
+		echo '' ;;
+	esac
+fi
+
+if [ -n "$pm_package_time" ]; then
+	unset pm_package_time
+
  fetch_package () {
  	local do_fetch

@@ -3430,7 +3445,7 @@ notnewer () {
  			echo ''
  		fi
  	fi
-fi	# [ -n "$PM_PACKAGES" -o "$PM_PACKAGES_BUILD" = doing_build_only_dep ]
+fi	# [ -n "$pm_package_time" ]

  if [ -z "$use_package" ]; then
  	if [ -n "$PM_PACKAGES" ]; then



More information about the freebsd-ruby mailing list