Not in RPM code please. rpm*compat.h are headed out of RPM
code somewhen pretty soon.

RPMTAG_FILEPATHS is the header extension tag to be used in
@rpm5.org code going forward to avoid inadvertently seting
expectations with "This used to work!".

Aliases and retrofits and "compatibility" have a huge hidden support
cost. No way do I wish to continue carrying ancient hysteria
around forever in RPM, the "compatibility" issues cannot be meaningfully
solved.

(aside)
BTW, You can create and pass your own header tag extensions if you wish,
and rename all tags to be whatever you wish, and provide your
own compat layer that will never need porting.

A private header extension is in fact what used to be done in anaconda
to extend RPM.

73 de Jeff

On Dec 5, 2010, at 7:00 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:  pkarl...@rpm5.org
>  Module: rpm                              Date:   06-Dec-2010 01:00:39
>  Branch: HEAD                             Handle: 2010120600002610
> 
>  Modified files:
>    rpm                     CHANGES
>    rpm/lib                 rpm4compat.h
> 
>  Log:
>    add RPMTAG_FILENAMES
> 
>  Summary:
>    Revision    Changes     Path
>    1.3501      +1  -0      rpm/CHANGES
>    2.32        +3  -1      rpm/lib/rpm4compat.h
>  ____________________________________________________________________________
> 
>  patch -p0 <<'@@ .'
>  Index: rpm/CHANGES
>  ============================================================================
>  $ cvs diff -u -r1.3500 -r1.3501 CHANGES
>  --- rpm/CHANGES      3 Dec 2010 18:29:21 -0000       1.3500
>  +++ rpm/CHANGES      6 Dec 2010 00:00:26 -0000       1.3501
>  @@ -1,6 +1,7 @@
>   5.3.7 -> 5.4a1:
> 
>   5.3.6 -> 5.3.7:
>  +    - proyvind: rpm4compat: add RPMTAG_FILENAMES
>       - proyvind: rpmconstant: update constants.
>       - proyvind: rpmconstant: fix rpmh2tbl to error out for constants not 
> found.
> 
>  @@ .
>  patch -p0 <<'@@ .'
>  Index: rpm/lib/rpm4compat.h
>  ============================================================================
>  $ cvs diff -u -r2.31 -r2.32 rpm4compat.h
>  --- rpm/lib/rpm4compat.h     11 Aug 2010 06:53:33 -0000      2.31
>  +++ rpm/lib/rpm4compat.h     6 Dec 2010 00:00:36 -0000       2.32
>  @@ -1,7 +1,7 @@
>   /*
>    * Copyright © 2008 Per Øyvind Karlsen <peroyv...@mandriva.org>
>    *
>  - * $Id: rpm4compat.h,v 2.31 2010/08/11 06:53:33 pkarlsen Exp $
>  + * $Id: rpm4compat.h,v 2.32 2010/12/06 00:00:36 pkarlsen Exp $
>    */
> 
>   #ifndef     H_RPM4COMPAT
>  @@ -33,6 +33,8 @@
>   #define     RPMBUILD_ISICON         RPMFILE_ICON
>   #define     RPMBUILD_ISNO           RPMFILE_MISSINGOK
> 
>  +#define     RPMTAG_FILENAMES        RPMTAG_FILEPATHS
>  +
>   #define buildRestrictions       sourceHeader
> 
>   #include <fcntl.h>
>  @@ .
> ______________________________________________________________________
> RPM Package Manager                                    http://rpm5.org
> CVS Sources Repository                                rpm-...@rpm5.org

______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
Developer Communication List                        rpm-devel@rpm5.org

Reply via email to