RPM Community Forums

Mailing List Message of <rpm-devel>

Re: [CVS] RPM: rpm/ CHANGES rpm/build/ parseSpec.c

From: Jeff Johnson <n3npq@mac.com>
Date: Thu 20 Jan 2011 - 12:22:05 CET
Message-id: <7FBEA980-2A08-4F29-9B4E-47D147F59F24@mac.com>
I don't see how anyone is going to be able to do
	manipulation/data extraction in the build
because %_specfile contains the name of the file that
is already and actively being parsed.

I wish SuSE luck in their foolishness. I certainly don't know
and haven't heard their usage case for %_specfile.

73 de Jeff

On Jan 20, 2011, at 5:51 AM, Pinto Elia wrote:

>  RPM Package Manager, CVS Repository
>  http://rpm5.org/cvs/
>  ____________________________________________________________________________
> 
>  Server: rpm5.org                         Name:   Pinto Elia
>  Root:   /v/rpm/cvs                       Email:  devzero2000@rpm5.org
>  Module: rpm                              Date:   20-Jan-2011 11:51:49
>  Branch: HEAD                             Handle: 2011012010514701
> 
>  Modified files:
>    rpm                     CHANGES
>    rpm/build               parseSpec.c
> 
>  Log:
>    merge Suse patch.
> 
>    Set "%_specfile" macro in the build so that people can
>    do specfile manipulation/data extraction in the build.
> 
>  Summary:
>    Revision    Changes     Path
>    1.3552      +2  -0      rpm/CHANGES
>    2.145       +1  -0      rpm/build/parseSpec.c
>  ____________________________________________________________________________
> 
>  patch -p0 <<'@@ .'
>  Index: rpm/CHANGES
>  ============================================================================
>  $ cvs diff -u -r1.3551 -r1.3552 CHANGES
>  --- rpm/CHANGES	13 Jan 2011 06:39:03 -0000	1.3551
>  +++ rpm/CHANGES	20 Jan 2011 10:51:47 -0000	1.3552
>  @@ -1,4 +1,6 @@
>   5.4.0 -> 5.4.1:
>  +    - devzero2000: merge Suse patch. Set "%_specfile" macro in the build so that people can 
>  +      do specfile manipulation/data extraction in the build.
>       - proyvind: rpmdb: set and create default log directory so that it doesn't
>   	get changed ie. when installing to a fresh chroot and no DB_CONFIG
>   	exists, with transaction logs ending up in a path that changes later.
>  @@ .
>  patch -p0 <<'@@ .'
>  Index: rpm/build/parseSpec.c
>  ============================================================================
>  $ cvs diff -u -r2.144 -r2.145 parseSpec.c
>  --- rpm/build/parseSpec.c	8 Jan 2011 23:07:11 -0000	2.144
>  +++ rpm/build/parseSpec.c	20 Jan 2011 10:51:48 -0000	2.145
>  @@ -541,6 +541,7 @@
>        *          /.././../usr/../bin//./sh (XXX FIXME: dots not handled yet)
>        */
>       spec->specFile = rpmGetPath(specFile, NULL);
>  +    addMacro(spec->macros, "_specfile", NULL, spec->specFile, RMIL_SPEC);
>       spec->fileStack = newOpenFileInfo();
>       spec->fileStack->fileName = xstrdup(spec->specFile);
> 
>  @@ .
> ______________________________________________________________________
> RPM Package Manager                                    http://rpm5.org
> CVS Sources Repository                                rpm-cvs@rpm5.org



  • application/pkcs7-signature attachment: smime.p7s
Received on Thu Jan 20 12:23:33 2011
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.