Hi all, has somebody already tried to compile the rpm of the newest samba package on a 64-bit CentOS. I tried to do it with the Fedora spec file and it quit with an error, that some files are not located in the lib64 directory. These required files are located in the lib directory. Any sugesstion how this problem could be fixed in a clean way? How is this problem solved during the CentOS internal package building for x64 packages? Thanks, Gernot
On Wed, 2006-01-11 at 09:53 +0100, Gernot Stocker wrote:
Hi all, has somebody already tried to compile the rpm of the newest samba package on a 64-bit CentOS. I tried to do it with the Fedora spec file and it quit with an error, that some files are not located in the lib64 directory. These required files are located in the lib directory. Any sugesstion how this problem could be fixed in a clean way? How is this problem solved during the CentOS internal package building for x64 packages? Thanks, Gernot _______________________________________________
Building for x86_64 requires a special set of packages for the machine setup. Here is the only way I have been able to build x86_64 packages.
1. Only have x86_64 and noarch packages installed ... plus 2 packages from the i386 distro only: glibc.i686 and glibc-devel.i386. Everything else must be x86_64 or noarch only.
The way to get there is to first make it so you can see the arch when using RPM ... by adding this to your .rpmmacros for your build user:
%_query_all_fmt %%{name}-%%{version}-%%{release}.%%{arch}
Then when you do commands, you can see the arch ...
Then a command like this will show all ix86 packages:
rpm -qa | grep i[3,5,6]86
and this will remove all i386 and i686 packages (if any other than glibc.i686 or glibc-devel.i386 show up):
rpm -e `rpm -qa | grep i[3,5,6]86`
Then reinstall the required glibc files:
yum install glibc.i686 glibc-devel.i386
------------------------ This will make the machine not really usable as a workstation (no OpenOffice or other i386 items) ... SO, you might want to setup a chroot to build in.
Once upon a time Wednesday 11 January 2006 6:58 am, Johnny Hughes wrote:
- Only have x86_64 and noarch packages installed ... plus 2 packages
from the i386 distro only: glibc.i686 and glibc-devel.i386. Everything else must be x86_64 or noarch only.
The way to get there is to first make it so you can see the arch when using RPM ... by adding this to your .rpmmacros for your build user:
%_query_all_fmt %%{name}-%%{version}-%%{release}.%%{arch}
Then when you do commands, you can see the arch ...
Then a command like this will show all ix86 packages:
rpm -qa | grep i[3,5,6]86
and this will remove all i386 and i686 packages (if any other than glibc.i686 or glibc-devel.i386 show up):
rpm -e `rpm -qa | grep i[3,5,6]86`
Then reinstall the required glibc files:
yum install glibc.i686 glibc-devel.i386
This will make the machine not really usable as a workstation (no OpenOffice or other i386 items) ... SO, you might want to setup a chroot to build in.
another way to remove all i386 packages is yum remove *.i386 this will also remove i686 glibc package also