source rpms

Badli Al Rashid badli at cfking.com
Fri Sep 17 16:46:33 UTC 2004


hai,

i did went to that site, http://www.rpm.org/RPM-HOWTO/multi-arch.html but
i couldnt find the file rpmrc in the etc dir. i could only find these
files in /etc/rpm macros.prelink, macros.specspo, macros.up2date and
platform.

i did locate rpmrc and found it in the /usr/lib/rpm/ dir. i modified the
rpmrc so that it only contains the following:-

# Values for RPM_OPT_FLAGS for various platforms
optflags: i686 -O2 -g -march=i686 -mcpu=i686
# Canonical arch names and numbers
arch_canon:     i686:   i686    1
# Canonical OS names and numbers
os_canon:       Linux:  Linux   1
# For a given uname().machine, the default build arch
buildarchtranslate: osfmach3_i686: i386
# Architecture compatibility
arch_compat: i686: i586
buildarch_compat: i686: i586
macrofiles:    
/usr/lib/rpm/macros:/usr/lib/rpm/%{_target}/macros:/etc/rpm/macros.*:/etc/rpm/macros:/etc/rpm/%{_target}/macros:~/.rpmmacros

then i retried the "rpmbuild -ba samba.spec". then i got a successfull rpm
in the i686 dir.

i remove the prev samba pakage using apt-get, then reinstall it manually.
using the "rpm -Uvh *samba*.rpm" command.

im kinda confuse here abit i have to put my original rpmrc back in order
to install the nautilus etc that were removed with the prev samba-i386
package.
error output shown below;

[root at xxxx rpm]# apt-get install nautilus
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
   nautilus-cd-burner (2.6.0-2)
The following NEW packages will be installed:
   nautilus (2.6.0-4)
   nautilus-cd-burner (2.6.0-2)
0 upgraded, 2 newly installed, 0 removed and 0 not upgraded.
Need to get 0B/4085kB of archives.
After unpacking 11.9MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Checking GPG signatures...
Committing changes...
Preparing...                ###########################################
[100%]
        package nautilus-cd-burner-2.6.0-2 is intended for a i386
architecture
        package nautilus-2.6.0-4 is intended for a i386 architecture
E: Error while running transaction

is there any other solution that i could use? so that i dont have to
recopy back the original rpmrc files. if i build with the original rpmrc
files, i could only make the rpm in the i386 folder. the reason i wanted
to recompile was to optimize the samba for my dual xeon procs :) and this
was my first try at recompiling using source RPM's.

ps! if someone suggest that im better off using gentoo distribution, sorry
i dont have all day to recompile the whole os from scratch for my specific
proc arch, i just need some of the packages to be optimize only:)






More information about the fedora-list mailing list