Thanks, I followed your suggestion. However, I don't understand why RPM
chokes on many "%ifarch". 

I am uploading a patched src.rpm.

Jean-Michel Dault
[EMAIL PROTECTED]

On Wed, 5 Jan 2000, Stefan van der Eijk wrote:

> Date: Wed, 05 Jan 2000 08:26:32 +0100
> From: Stefan van der Eijk <[EMAIL PROTECTED]>
> To: Jean-Michel Dault <[EMAIL PROTECTED]>
> Subject: Re: [CHRPM] NAME: mod_perl VER: 1.21 REL: 19mdk --> not done yet...
> 
> > What are you building it on? And for what processor?
> I've tried it on an intel (Oxygen installed) and an alpha 
> (redhat 6.0, halfway converted to oxygen) The intel machine 
> goes fine, but the alpha doesn't. The reason why it doesn't 
> work on the alpha (and any other architecture that isn't "i386" 
> is because the current .spec file _always_ gives "define buildarch i386" 
> to it.
> 
> The whole sequence with %ifarch i686
>                       %define buildarch i386
>                       %endif
>                       ...
>                       ..
>                       .
> isn't needed. And it's wrong... If you take away the last one ( %ifarch
> pentium)
> and then try to rebuild it on one of your intel systems you'll probably
> get this
> output:
> 
> + install -m 644 eg/README /var/tmp/mod_perl-root/home/httpd/perl
> + mkdir -p /var/tmp/mod_perl-root/etc/httpd/conf/addon-modules
> + install -m 644 /home/stefan/RPM/SOURCES/mod_perl.conf
> /var/tmp/mod_perl-root/etc/httpd/conf/addon-modules
> ++ uname
> + '[' Linux = Linux ']'
> +
> 
>PACKLIST=/var/tmp/mod_perl-root/usr/lib/perl5/site_perl/5.005/sparc-linux/auto/mod_perl/.packlist
> ++ uname
> + '[' Linux = SunOS ']'
> + mv
> 
>/var/tmp/mod_perl-root/usr/lib/perl5/site_perl/5.005/sparc-linux/auto/mod_perl/.packlist
> 
>/var/tmp/mod_perl-root/usr/lib/perl5/site_perl/5.005/sparc-linux/auto/mod_perl/.packlist.old
> mv:
> 
>/var/tmp/mod_perl-root/usr/lib/perl5/site_perl/5.005/sparc-linux/auto/mod_perl/.packlist:
> No such file or directory
> Bad exit status from /var/tmp/rpm-tmp.56815 (%install) 
> 
> My conclusion is: It will ALWAYS take the last " %define buildarch"
> and this is wrong. Now it _will_ build on intel systems, but it won't
> build on multi-platforms.
> 
> So, please loose the whole 
>                       %ifarch i686
>                       %define buildarch i386
>                       %endif
>                       ...
>                       ..
>                       .
> sequence, and just use %{_arch} instead. This method is being used on
> more perl packages...
> 
> Thanks,
> 
> Stefan van der Eijk
> [EMAIL PROTECTED]
> 
> > > I tried to build this package... and something is _very_ wrong.
> > >
> > > This is the output I'm getting:
> > >
> > > + [ Linux = Linux ]
> > > +
> > > 
>PACKLIST=/var/tmp/mod_perl-root/usr/lib/perl5/site_perl/5.005/i386-linux/auto/mod_perl/.packlist
> > > ++ uname
> > > + [ Linux = SunOS ]
> > > + mv
> > > 
>/var/tmp/mod_perl-root/usr/lib/perl5/site_perl/5.005/i386-linux/auto/mod_perl/.packlist
> > > 
>/var/tmp/mod_perl-root/usr/lib/perl5/site_perl/5.005/i386-linux/auto/mod_perl/.packlist.old
> > > mv:
> > > 
>/var/tmp/mod_perl-root/usr/lib/perl5/site_perl/5.005/i386-linux/auto/mod_perl/.packlist:
> > > No such file or directory
> > > Bad exit status from /var/tmp/rpm-tmp.54067 (%install)
> > >
> > > When I walk through the .spec file I encounter a few weird things... I'd
> > > like to suggest the following diff (it solves the build probs on my
> > > machine):
> > >
> > > [root@cgmd77035 SPECS]# diff mod_perl.spec mod_perl.spec.orig
> > > 53a54,74
> > > > %ifarch i686
> > > > %define buildarch i386
> > > > %endif
> > > > %ifarch i586
> > > > %define buildarch i386
> > > > %endif
> > > > %ifarch i386
> > > > %define buildarch i386
> > > > %endif
> > > > %ifarch alpha
> > > > %define buildarch alpha
> > > > %endif
> > > > %ifarch sparc
> > > > %define buildarch sparc
> > > > %endif
> > > > %ifarch pentium
> > > > %define buildarch i386
> > > > %endif
> > > >
> > > > #echo %{buildarch}
> > > > #sleep 30
> > > 86c107
> > > <
> > > 
>PACKLIST=$RPM_BUILD_ROOT/usr/lib/perl5/site_perl/5.005/%{_arch}-linux/auto/mod_perl/.packlist
> > > ---
> > > > 
>PACKLIST=$RPM_BUILD_ROOT/usr/lib/perl5/site_perl/5.005/%{buildarch}-linux/auto/mod_perl/.packlist
> > >
> > > Greetings,
> > >
> > > Stefan van der Eijk
> > > [EMAIL PROTECTED]
> > >
> 

Reply via email to