On Apr 10, 2011, at 8:29 AM, "Jeff Johnson" <n3...@mac.com> wrote:

> 
> On Apr 10, 2011, at 10:30 AM, Hatle, Mark wrote:
> 
>> 
>> Do you have a pointer or any documentation on how to use these new macros 
>> and helpers?
>> 
> 
> The multiarch macros?
> 
> I can tell you what I see:
> 
> Instead of ensuring that /usr/include/*.h is independent of arch
> (this was what was done @redhat, took several months of churn-and-burn
> to get the packaging policy to the MANDATORY/ENFORCING level),
> Mandriva has chosen a VPATH-like approach in the build environment,
> where a %{_arch}-mumbo-jumbo is automagically added to rpmbuild
> CFLAGS and there's additional macro magic to rearrange %files.
> 

Right now (in poky) the plan is to work like the redhat way...  We intend to 
put in the checks, validation, etc to find and assist people in fixing multilib 
header issues..

> Since the whole scheme is based on consistent use of %{_arch}, the
> scheme can/will depend on build system setup in some excruciatingly
> painful ways.
> 
> This has just happened in Mandriva Cooker, where %{_arch}
> happened to end-up with "i586" not "i386" (the correct value afaik).
> 
> <sarcasm>
> And for extra speshul painfulness on my own aging box, libcpuinfo
> has decided to put "pentium4" into varous arch-related configgery
> in order to assist me with RPM configgery.
> </sarcasm>
> 
> You WILL got nutso if you attempt Mandriva multiarch packaging
> policy like this in Poky imho. Cleaner/easier is to patch out
> (or use) @redhat derived packaging instead.
> 

Heh.  Since we're still planning for poky/OE-core I figured it made sense to 
know how others have solved this issue so we can come up with an appropriate 
solution for our embedded needs...  But the more I look at the Mandriva 
approach the less I think it's applicable for what we're doing.

> But you are not using rpmbuild w Poky so it hardly matters.
> 
> hth
> 
> 73 de Jeff
>> Thanks!
>> 
>> 
>> On Apr 10, 2011, at 6:53 AM, "Per Øyvind Karlsen" <pkarl...@rpm5.org> 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:   10-Apr-2011 15:53:32
>>> Branch: rpm-5_4                          Handle: 2011041013533001
>>> 
>>> Added files:              (Branch: rpm-5_4)
>>>  rpm/scripts             check-multiarch-files mkmultiarch
>>>                          multiarch-dispatch multiarch-dispatch.h
>>>                          multiarch-platform
>>> Modified files:           (Branch: rpm-5_4)
>>>  rpm                     CHANGES
>>>  rpm/macros              macros.rpmbuild.in
>>>  rpm/scripts             Makefile.am
>>> 
>>> Log:
>>>  merge multiarch-utils from mandriva.
>>> 
>>> Summary:
>>>  Revision    Changes     Path
>>>  1.3501.2.109+1  -0      rpm/CHANGES
>>>  1.4.4.1     +20 -2      rpm/macros/macros.rpmbuild.in
>>>  1.75.2.6    +7  -1      rpm/scripts/Makefile.am
>>>  1.1.2.2     +92 -0      rpm/scripts/check-multiarch-files
>>>  1.1.2.2     +91 -0      rpm/scripts/mkmultiarch
>>>  1.1.2.2     +31 -0      rpm/scripts/multiarch-dispatch
>>>  1.1.2.2     +172 -0     rpm/scripts/multiarch-dispatch.h
>>>  1.1.2.2     +14 -0      rpm/scripts/multiarch-platform
>>> ____________________________________________________________________________
>>> 
>>> patch -p0 <<'@@ .'
>>> Index: rpm/CHANGES
>>> ============================================================================
>>> $ cvs diff -u -r1.3501.2.108 -r1.3501.2.109 CHANGES
>>> --- rpm/CHANGES    10 Apr 2011 11:20:10 -0000    1.3501.2.108
>>> +++ rpm/CHANGES    10 Apr 2011 13:53:31 -0000    1.3501.2.109
>>> @@ -1,4 +1,5 @@
>>> 5.4.0 -> 5.4.1:
>>> +    - proyvind: merge multiarch-utils from mandriva.
>>>     - proyvind: macros: sync with updated python macros from mandriva.
>>>     - proyvind: rpmfc: add internel dep generator helper for kernel modules.
>>>     - provyind: kmod-deps.sh: add dependency extractor from mandriva.
>>> ______________________________________________________________________
>> RPM Package Manager                                    http://rpm5.org
>> Developer Communication List                        rpm-devel@rpm5.org
>> 
> 
______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
Developer Communication List                        rpm-devel@rpm5.org

Reply via email to