Re: createrepo for x86_64 and i386 repositories

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Nov 29, 2007 8:13 PM, Michael Schwendt <mschwendt@xxxxxxxxx> wrote:
> On 29/11/2007, Paul Johnson wrote:
> >
> > OK, one follow up please.
> >
> > On the x86_64 system, I can build many programs for both architectures
> > by adding the option --target=x86_64,i386 in the rpmbuild.  However,
> > for some programs, such as firefox, the i386 rpm fails to build on the
> > x86_64 system.  So in that case, I go to a i386 and build firefox.
>
> How does it fail? Note that you may need to remove /etc/rpm/platform
> and run "setarch i386 rpmbuild --target=i386 ..." for cross-builds to
> work on x86_64.

Before I distract you with firefox detail, let me ask for a direct
answer to this.  If I build an i386 package on an i386 system, is that
package "the same as" or  "as good as" having an i386 package built on
the x86_64 system with --target=x86_64,i386?  Because I can build
firefox.i386 on i386.

Most i386 packages do build, but firefox does not.  I'm not the only
one to discover the same result.

http://forums.mozillazine.org/viewtopic.php?t=534368

The error I see from rpmbuid following this: (same happens whether or
not I remove /etc/rpm/platform)

setarch=i386 rpmbuild --rebuild firefox-2.0.0.10-1.fc8.src.rpm --target=i386

is

../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsISupportsPrimitives nsISupportsPrimitives.idl
/home/pauljohn/LinuxDownloads/redhat/BUILD/mozilla/config/nsinstall -R
-m 644 nsIAtom.idl nsIAtomService.idl nsICollection.idl
nsIEnumerator.idl n
sIPersistentProperties2.idl nsIProperty.idl nsIPropertyBag.idl
nsIPropertyBag2.idl nsIWritablePropertyBag.idl
nsIWritablePropertyBag2.idl nsIRecyc
lingAllocator.idl nsIVariant.idl nsISerializable.idl
nsIStringEnumerator.idl nsISupportsArray.idl nsISupportsIterators.idl
nsITimelineService.idl
nsIArray.idl ../../dist/idl
/home/pauljohn/LinuxDownloads/redhat/BUILD/mozilla/config/nsinstall -R
-m 644 _xpidlgen/nsIAtom.h _xpidlgen/nsIAtomService.h
_xpidlgen/nsICollecti
on.h _xpidlgen/nsIEnumerator.h _xpidlgen/nsIPersistentProperties2.h
_xpidlgen/nsIProperty.h _xpidlgen/nsIPropertyBag.h
_xpidlgen/nsIPropertyBag2.h
 _xpidlgen/nsIWritablePropertyBag.h
_xpidlgen/nsIWritablePropertyBag2.h _xpidlgen/nsIRecyclingAllocator.h
_xpidlgen/nsIVariant.h _xpidlgen/nsISeri
alizable.h _xpidlgen/nsIStringEnumerator.h
_xpidlgen/nsISupportsArray.h _xpidlgen/nsISupportsIterators.h
_xpidlgen/nsITimelineService.h _xpidlgen/
nsIArray.h ../../dist/include/xpcom
/home/pauljohn/LinuxDownloads/redhat/BUILD/mozilla/config/nsinstall -R
-m 644 nsIObserverService.idl nsIObserver.idl nsIProperties.idl
nsISimpleEn
umerator.idl nsISupportsPrimitives.idl ../../dist/idl
/home/pauljohn/LinuxDownloads/redhat/BUILD/mozilla/config/nsinstall -R
-m 644 nsIObserverService.idl nsIObserver.idl nsIProperties.idl
nsISimpleEn
umerator.idl nsISupportsPrimitives.idl ../../dist/sdk/idl
/home/pauljohn/LinuxDownloads/redhat/BUILD/mozilla/config/nsinstall -R
-m 644 _xpidlgen/nsIObserverService.h _xpidlgen/nsIObserver.h
_xpidlgen/nsI
Properties.h _xpidlgen/nsISimpleEnumerator.h
_xpidlgen/nsISupportsPrimitives.h ../../dist/include/xpcom
/home/pauljohn/LinuxDownloads/redhat/BUILD/mozilla/config/nsinstall -R
-m 644 _xpidlgen/nsIObserverService.h _xpidlgen/nsIObserver.h
_xpidlgen/nsI
Properties.h _xpidlgen/nsISimpleEnumerator.h
_xpidlgen/nsISupportsPrimitives.h ../../dist/sdk/include
gmake[4]: Leaving directory
`/home/pauljohn/LinuxDownloads/redhat/BUILD/mozilla/xpcom/ds'
gmake[4]: Entering directory
`/home/pauljohn/LinuxDownloads/redhat/BUILD/mozilla/xpcom/io'
Creating .deps
/home/pauljohn/LinuxDownloads/redhat/BUILD/mozilla/config/nsinstall -R
-m 644 nsAppDirectoryServiceDefs.h nsDirectoryService.h nsEscape.h
nsFastLo
adPtr.h nsFastLoadService.h nsLinebreakConverter.h nsLocalFile.h
nsMultiplexInputStream.h nsScriptableInputStream.h nsStorageStream.h
nsStringIO.h
 nsStringStream.h nsStreamUtils.h nsNativeCharsetUtils.h
nsLocalFileUnix.h ../../dist/include/xpcom
Creating _xpidlgen/.done
nsIBinaryInputStream.idl
nsIBinaryOutputStream.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIBinaryInputStream nsIBinaryInputStream.idl
nsIByteArrayInputStream.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIBinaryOutputStream nsIBinaryOutputStream.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIByteArrayInputStream nsIByteArrayInputStream.idl
nsIDirectoryEnumerator.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIDirectoryEnumerator nsIDirectoryEnumerator.idl
nsIFastLoadFileControl.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIFastLoadFileControl nsIFastLoadFileControl.idl
nsIFastLoadService.idl
nsIInputStreamTee.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIFastLoadService nsIFastLoadService.idl
nsILocalFileWin.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIInputStreamTee nsIInputStreamTee.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsILocalFileWin nsILocalFileWin.idl
nsILineInputStream.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsILineInputStream nsILineInputStream.idl
nsIUnicharLineInputStream.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIUnicharLineInputStream nsIUnicharLineInputStream.idl
nsIMultiplexInputStream.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIMultiplexInputStream nsIMultiplexInputStream.idl
nsIObjectInputStream.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIObjectInputStream nsIObjectInputStream.idl
nsIObjectOutputStream.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIObjectOutputStream nsIObjectOutputStream.idl
nsIPipe.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIPipe nsIPipe.idl
nsISeekableStream.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsISeekableStream nsISeekableStream.idl
nsIStorageStream.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIStorageStream nsIStorageStream.idl
nsIStringStream.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIStringStream nsIStringStream.idl
nsIStreamBufferAccess.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIStreamBufferAccess nsIStreamBufferAccess.idl
nsIAsyncInputStream.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIAsyncInputStream nsIAsyncInputStream.idl
nsIAsyncOutputStream.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIAsyncOutputStream nsIAsyncOutputStream.idl
nsIUnicharInputStream.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIUnicharInputStream nsIUnicharInputStream.idl
nsIUnicharOutputStream.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIUnicharOutputStream nsIUnicharOutputStream.idl
nsIConverterInputStream.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIConverterInputStream nsIConverterInputStream.idl
nsIConverterOutputStream.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIConverterOutputStream nsIConverterOutputStream.idl
nsIDirectoryService.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIDirectoryService nsIDirectoryService.idl
nsIFile.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIFile nsIFile.idl
nsILocalFile.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsILocalFile nsILocalFile.idl
nsIInputStream.idl
nsIOutputStream.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIInputStream nsIInputStream.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIOutputStream nsIOutputStream.idl
nsIScriptableInputStream.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIScriptableInputStream nsIScriptableInputStream.idl
/home/pauljohn/LinuxDownloads/redhat/BUILD/mozilla/config/nsinstall -R
-m 644 nsDirectoryServiceDefs.h nsDirectoryServiceUtils.h
../../dist/includ
e/xpcom
/home/pauljohn/LinuxDownloads/redhat/BUILD/mozilla/config/nsinstall -R
-m 644 nsDirectoryServiceDefs.h nsDirectoryServiceUtils.h
../../dist/sdk/in
clude
/home/pauljohn/LinuxDownloads/redhat/BUILD/mozilla/config/nsinstall -R
-m 644 nsIBinaryInputStream.idl nsIBinaryOutputStream.idl
nsIByteArrayInput
Stream.idl nsIDirectoryEnumerator.idl nsIFastLoadFileControl.idl
nsIFastLoadService.idl nsIInputStreamTee.idl nsILocalFileWin.idl
nsILineInputStre
am.idl nsIUnicharLineInputStream.idl nsIMultiplexInputStream.idl
nsIObjectInputStream.idl nsIObjectOutputStream.idl nsIPipe.idl
nsISeekableStream.
idl nsIStorageStream.idl nsIStringStream.idl nsIStreamBufferAccess.idl
nsIAsyncInputStream.idl nsIAsyncOutputStream.idl
nsIUnicharInputStream.idl
nsIUnicharOutputStream.idl nsIConverterInputStream.idl
nsIConverterOutputStream.idl ../../dist/idl
/home/pauljohn/LinuxDownloads/redhat/BUILD/mozilla/config/nsinstall -R
-m 644 _xpidlgen/nsIBinaryInputStream.h
_xpidlgen/nsIBinaryOutputStream.h _
xpidlgen/nsIByteArrayInputStream.h _xpidlgen/nsIDirectoryEnumerator.h
_xpidlgen/nsIFastLoadFileControl.h _xpidlgen/nsIFastLoadService.h
_xpidlgen/
nsIInputStreamTee.h _xpidlgen/nsILocalFileWin.h
_xpidlgen/nsILineInputStream.h _xpidlgen/nsIUnicharLineInputStream.h
_xpidlgen/nsIMultiplexInputSt
ream.h _xpidlgen/nsIObjectInputStream.h
_xpidlgen/nsIObjectOutputStream.h _xpidlgen/nsIPipe.h
_xpidlgen/nsISeekableStream.h _xpidlgen/nsIStorageSt
ream.h _xpidlgen/nsIStringStream.h _xpidlgen/nsIStreamBufferAccess.h
_xpidlgen/nsIAsyncInputStream.h _xpidlgen/nsIAsyncOutputStream.h
_xpidlgen/ns
IUnicharInputStream.h _xpidlgen/nsIUnicharOutputStream.h
_xpidlgen/nsIConverterInputStream.h
_xpidlgen/nsIConverterOutputStream.h ../../dist/inclu
de/xpcom
/home/pauljohn/LinuxDownloads/redhat/BUILD/mozilla/config/nsinstall -R
-m 644 nsIDirectoryService.idl nsIFile.idl nsILocalFile.idl
nsIInputStream.
idl nsIOutputStream.idl nsIScriptableInputStream.idl ../../dist/idl
/home/pauljohn/LinuxDownloads/redhat/BUILD/mozilla/config/nsinstall -R
-m 644 nsIDirectoryService.idl nsIFile.idl nsILocalFile.idl
nsIInputStream.
idl nsIOutputStream.idl nsIScriptableInputStream.idl ../../dist/sdk/idl
/home/pauljohn/LinuxDownloads/redhat/BUILD/mozilla/config/nsinstall -R
-m 644 _xpidlgen/nsIDirectoryService.h _xpidlgen/nsIFile.h
_xpidlgen/nsILoc
alFile.h _xpidlgen/nsIInputStream.h _xpidlgen/nsIOutputStream.h
_xpidlgen/nsIScriptableInputStream.h ../../dist/include/xpcom
/home/pauljohn/LinuxDownloads/redhat/BUILD/mozilla/config/nsinstall -R
-m 644 _xpidlgen/nsIDirectoryService.h _xpidlgen/nsIFile.h
_xpidlgen/nsILoc
alFile.h _xpidlgen/nsIInputStream.h _xpidlgen/nsIOutputStream.h
_xpidlgen/nsIScriptableInputStream.h ../../dist/sdk/include
gmake[4]: Leaving directory
`/home/pauljohn/LinuxDownloads/redhat/BUILD/mozilla/xpcom/io'
gmake[4]: Entering directory
`/home/pauljohn/LinuxDownloads/redhat/BUILD/mozilla/xpcom/components'
Creating .deps
Creating _xpidlgen/.done
/home/pauljohn/LinuxDownloads/redhat/BUILD/mozilla/config/nsinstall -R
-m 644 nsCategoryManagerUtils.h nsCategoryCache.h
nsIServiceManagerObsolete
.h nsModule.h nsNativeComponentLoader.h nsObsoleteModuleLoading.h
xcDll.h ../../dist/include/xpcom
nsIComponentLoader.idl
nsIComponentLoaderManager.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIComponentLoader nsIComponentLoader.idl
nsIComponentManagerObsolete.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIComponentLoaderManager nsIComponentLoaderManager.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIComponentManagerObsolete nsIComponentManagerObsolete.idl
nsIClassInfo.idl
../../dist/bin/xpidl -m header -w -I. -I../../dist/idl -o
_xpidlgen/nsIClassInfo nsIClassInfo.idl
gmake[4]: *** [_xpidlgen/nsIClassInfo.h] Error 1
gmake[4]: *** Waiting for unfinished jobs....
gmake[4]: Leaving directory
`/home/pauljohn/LinuxDownloads/redhat/BUILD/mozilla/xpcom/components'
gmake[3]: *** [export] Error 2
gmake[3]: Leaving directory
`/home/pauljohn/LinuxDownloads/redhat/BUILD/mozilla/xpcom'
gmake[2]: *** [tier_2] Error 2
gmake[2]: Leaving directory `/home/pauljohn/LinuxDownloads/redhat/BUILD/mozilla'
gmake[1]: *** [default] Error 2
gmake[1]: Leaving directory `/home/pauljohn/LinuxDownloads/redhat/BUILD/mozilla'
make: *** [build] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.63688 (%build)


RPM build errors:

>
> > Is there any reason why that firefox.i386 rpm cannot be put into the
> > x86_64 directory for the multilib purpose?
>
> That's how it is done in the Fedora repositories. All i386 pkgs that
> are made available for x86_64 for multilib compatibility are stored
> also in the x86_64 repository.

Just to be clear, I want to know if it is OK to build those on a i386
system and then install to x86_64 system.

>
>
> --
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>



-- 
Paul E. Johnson
Professor, Political Science
1541 Lilac Lane, Room 504
University of Kansas


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux