RPM Community Forums

Mailing List Message of <rpm-devel>

Re: [CVS] RPM: rpm/ CHANGES configure.ac

From: Jeff Johnson <n3npq@mac.com>
Date: Sat 01 Nov 2008 - 23:45:49 CET
Message-id: <FC67ECBC-9C62-4B00-8292-460962BF267D@mac.com>
What is wrong with
	CPPFLAGS="-DRPM_VENDOR_MANDRIVA"

Its insane to have Yet More Ways to configure "stuff" imho.

73 de Jeff

On Nov 1, 2008, at 6:41 PM, Per Øyvind Karlsen wrote:

>  RPM Package Manager, CVS Repository
>  http://rpm5.org/cvs/
>   
> ____________________________________________________________________________
>
>  Server: rpm5.org                         Name:   Per Øyvind Karlsen
>  Root:   /v/rpm/cvs                       Email:  pkarlsen@rpm5.org
>  Module: rpm                              Date:   01-Nov-2008 23:41:44
>  Branch: HEAD                             Handle: 2008110122414300
>
>  Modified files:
>    rpm                     CHANGES configure.ac
>
>  Log:
>    add --with-vendor configure option to define RPM_VENDOR_*.
>
>  Summary:
>    Revision    Changes     Path
>    1.2640      +1  -0      rpm/CHANGES
>    2.319       +28 -0      rpm/configure.ac
>   
> ____________________________________________________________________________
>
>  patch -p0 <<'@@ .'
>  Index: rpm/CHANGES
>   
> = 
> = 
> = 
> = 
> = 
> = 
> ======================================================================
>  $ cvs diff -u -r1.2639 -r1.2640 CHANGES
>  --- rpm/CHANGES	1 Nov 2008 19:32:04 -0000	1.2639
>  +++ rpm/CHANGES	1 Nov 2008 22:41:43 -0000	1.2640
>  @@ -1,5 +1,6 @@
>
>   5.2a2 -> 5.2a3:
>  +    - proyvind: add --with-vendor configure option to define  
> RPM_VENDOR_*.
>       - proyvind: Mandriva: make loglevel for dependency loop  
> detection
>   	overridable, debug-level by default. (loop-detection-optional- 
> loglevel)
>       - jbj: fix: __OpenBSD__ insque(3) needs rpmsq rock initialized.
>  @@ .
>  patch -p0 <<'@@ .'
>  Index: rpm/configure.ac
>   
> = 
> = 
> = 
> = 
> = 
> = 
> ======================================================================
>  $ cvs diff -u -r2.318 -r2.319 configure.ac
>  --- rpm/configure.ac	19 Oct 2008 07:46:48 -0000	2.318
>  +++ rpm/configure.ac	1 Nov 2008 22:41:43 -0000	2.319
>  @@ -1636,6 +1636,34 @@
>   AC_SUBST(RPMLUAFILES)
>   AC_MSG_RESULT([$RPMLUAFILES])
>
>  +dnl # determine whether to build using a specific vendor's changes  
> or not
>  +AC_MSG_CHECKING([if building for a specfic vendor])
>  +
>  +AC_ARG_WITH(
>  +    [vendor],
>  +    AS_HELP_STRING([--with-vendor=VENDOR], [build with a supported  
> vendor's specific set of changes: openpkg, rpm4darwin, fedora,  
> mandriva or windriver]),
>  +    if test ".$withval" != .no; then
>  +	    if test "$withval" == "openpkg"; then
>  +		    AC_DEFINE([RPM_VENDOR_OPENPKG], 1, Vendor is OpenPKG)
>  +	    fi
>  +	    if test "$withval" == "rpm4darwin"; then
>  +		    AC_DEFINE([RPM_VENDOR_RPM4DARWIN], 1, Vendor is RPM for  
> Darwin)
>  +	    fi
>  +	    if test "$withval" == "fedora"; then
>  +		    AC_DEFINE([RPM_VENDOR_FEDORA], 1, Vendor is Fedora)
>  +	    fi
>  +	    if test "$withval" == "mandriva"; then
>  +		    AC_DEFINE([RPM_VENDOR_MANDRIVA], 1, Vendor is Mandriva)
>  +	    fi
>  +	    if test "$withval" == "windriver"; then
>  +		    AC_DEFINE([RPM_VENDOR_WINDRIVER], 1, Vendor is Windriver)
>  +	    fi
>  +	    AC_MSG_RESULT([$withval])
>  +    else
>  +	    AC_MSG_RESULT(no)
>  +    fi
>  +)
>  +
>   testdir="`pwd`/tests"
>   AC_SUBST(testdir)
>
>  @@ .
> ______________________________________________________________________
> RPM Package Manager                                    http://rpm5.org
> CVS Sources Repository                                rpm-cvs@rpm5.org
Received on Sat Nov 1 23:45:53 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.