Note that there's literally no frigging reason known
to the human race why RPM needs to supply absolute paths
to every bleeping uglix executable on all possible
platfomrs "protably" in spite of FHS and linux vendor
induced rearrangements.

The proper (and entirely consistent with uglix tool box paradigms)
is to use PATH and write build recipes assuming that PATH is set
correctly.

Its also not too hard to generate the macro settings dynamically,
using which and some simple echo's. Its just *INSANE* to
track all these paths into @rpm5.org CVS with vendor peculier
"Have it your own way!" configuration delivered as drop-in
through One Size Fits All Uglixes (with a whopping amount
of AutoFu pain).

There's only a handful of toolchain related (I'm talking
        CPU-VENDOR-OS-GNU-gcc
here) that are usefully configured in macros.

grep == grep *shrug*

But you might want to noodle up the script using
which/echo that dynamically generates a list
of absolute paths to executables that you deem
important instead.

hth

73 de Jeff

On Feb 22, 2011, at 11:47 AM, 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:   22-Feb-2011 17:47:51
>  Branch: HEAD                             Handle: 2011022216475000
> 
>  Modified files:
>    rpm/macros              mandriva.in
> 
>  Log:
>    fix correct paths for some tool macros on mandriva mdvbz#62322
> 
>  Summary:
>    Revision    Changes     Path
>    1.8         +7  -0      rpm/macros/mandriva.in
>  ____________________________________________________________________________
> 
>  patch -p0 <<'@@ .'
>  Index: rpm/macros/mandriva.in
>  ============================================================================
>  $ cvs diff -u -r1.7 -r1.8 mandriva.in
>  --- rpm/macros/mandriva.in   6 Dec 2010 00:04:32 -0000       1.7
>  +++ rpm/macros/mandriva.in   22 Feb 2011 16:47:50 -0000      1.8
>  @@ -63,6 +63,13 @@
>   %make                       %{__make} %{_smp_mflags}
>   %makeinstall_std    make DESTDIR=%{?buildroot:%{buildroot}} install
> 
>  +# mdvbz#62322
>  +%__grep                     /bin/grep
>  +%__gzip                     /bin/gzip
>  +%__lua                      %{_bindir}/lua
>  +%__rc                       %{_bindir}/rc
>  +%__xar                      %{_bindir}/xar
>  +
>   # mdvbz#61851
>   %__tar_wildcards   --wildcards
> 
>  @@ .
> ______________________________________________________________________
> RPM Package Manager                                    http://rpm5.org
> CVS Sources Repository                                rpm-...@rpm5.org

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to