tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: multi-variant packages and bulk builds



 >> Patch in the attached file implements a proposed idea.

> I think the attachment's missing.
Oops. Pardon. It is below.

> Does what you propose work only for bulk builds, or will a simple
> "make package" start building multiple versions?
No. But this new variable can be used by, e.g., make all-packages.

> Also: If something says "i need <some python module", how many
> versions of that module (and how many versions of python, if) will
> be built?
No changes to 'make package', just new variable for
all python, php and apache.

Index: lang/php/phpversion.mk
===================================================================
RCS file: /cvsroot/pkgsrc/lang/php/phpversion.mk,v
retrieving revision 1.9
diff -u -r1.9 phpversion.mk
--- lang/php/phpversion.mk      11 Oct 2007 08:51:43 -0000      1.9
+++ lang/php/phpversion.mk      22 Jul 2008 15:22:50 -0000
@@ -72,6 +72,9 @@
 _PHP_VERSION_${pv}_OK= yes
 .endfor
 
+# for multi-variant packages and bulk build software
+VARIANTS+=             PHP_VERSION_DEFAULT=${PHP_VERSIONS_ACCEPTED:ts,}
+
 # check what is installed
 .if exists(${LOCALBASE}/lib/php/20020429)
 _PHP_VERSION_4_INSTALLED=      yes
Index: lang/python/pyversion.mk
===================================================================
RCS file: /cvsroot/pkgsrc/lang/python/pyversion.mk,v
retrieving revision 1.59
diff -u -r1.59 pyversion.mk
--- lang/python/pyversion.mk    25 Apr 2008 16:27:45 -0000      1.59
+++ lang/python/pyversion.mk    22 Jul 2008 15:22:51 -0000
@@ -83,6 +83,9 @@
 .endif
 .endfor
 
+# for multi-variant packages and bulk build software
+VARIANTS+=             PYTHON_VERSION_DEFAULT=${_PYTHON_VERSIONS_ACCEPTED:ts,}
+
 #
 # choose a python version where to add,
 # try to be intelligent
Index: mk/apache.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/apache.mk,v
retrieving revision 1.25
diff -u -r1.25 apache.mk
--- mk/apache.mk        17 Dec 2007 22:09:58 -0000      1.25
+++ mk/apache.mk        22 Jul 2008 15:23:07 -0000
@@ -70,6 +70,9 @@
 _APACHE_PKG_PREFIX.apache22=   ap22
 _APACHE_PKGSRCDIR.apache22=    ../../www/apache22
 
+# for multi-variant packages and bulk build software
+VARIANTS+=                     PKG_APACHE_DEFAULT=${PKG_APACHE_ACCEPTED:ts,}
+
 #
 # Sanity checks.
 #

-- 
Best regards, Aleksey Cheusov.


Home | Main Index | Thread Index | Old Index