Mandrake Linux Archives: cooker@mandrivalinux.org
Mandrake Linux: cooker@mandrivalinux.org
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
- From: Guillaume Rousse
- Subject: Re: [Cooker] rpm and macros.* files
- Date: 9 May 2005 11:40:45 -0000
Olivier Thauvin wrote:
> rpm 4.4 is able to find macros file using a glob (* joker).
>
> By default rpm use '/etc/rpm/macros.*' and currently in rpm-mandriva-setup I
> keep this setting. But this method is bad because it will take into account
> *.rpm{new,save}, which we don't want. So I plan to remove this behaviour and
> only keep /etc/rpm/macros and /etc/rpm/macros.cdb.
>
> rpm-mandriva-setup is currently having '/etc/rpm/macros.d/*.macros'.
> I provide 2 macros to easilly produce macros filename:
>
> %_sys_macros_dir /etc/rpm/macros.d
> %build_sysmacrospath() %{_sys_macros_dir}/%{?1:%{1}}%{?!1:%{name}}.macros
>
> The first one is only the path, the second produce the full filename unsing
> %name if no argument is given.
>
> [olivier@andromede ~]$ rpm --eval "%build_sysmacrospath foo"
> /etc/rpm/macros.d/foo.macros
what's the point of this second one ? just to append a standard
extension and prepend another macro as path ? Seems overkill for me...
> Do you have comment about this ?
> Does /etc/rpm/*.macros prefered ?
> Do you have better name for these macros ?
>
> I plan to create another macros to dump a macros an its content, something
> like:
> %dump %%_bindir
> to produce:
> %_bindir /usr/bin
>
> This is intent to genrate macros file from spec.
So %dump %%macro would just correspond to %%macro %macro ? I'm not
convinced either...
--
In an otherwise vacant locker room, the only other person will have the
locker right next to yours
-- Murphy's Laws of Martial Arts n°9
- References:
- [Cooker] rpm and macros.* files
- From: Olivier Thauvin
- [Cooker] rpm and macros.* files
- Prev by Date: [Cooker] [Bug 15393] [kernel] RESOLVED: eth0 is down after login
- Next by Date: [Cooker] [Bug 5779] [acpi] NEW: ACPI and presario 2100 Mandrake 9.2 RC2
- Previous by thread: [Cooker] rpm and macros.* files
- Next by thread: [Cooker] [Bug 15684] [binutils] NEW: Binutils broken
- Index(es):
Search the archive:
To (un)subscribe from/to the lists:
Fund the Mandriva Linux project
