On Apr 27, 2009, at 5:28 PM, Shawn Protsman wrote:
After getting a fresh install of 11.1 I'm unable to build any RPMs. It bombs in the %prep stage. I checked the differences between 'rpm' files between my 11.0 and 11.1 box and noticed that I have devel_rpm_build on 11.0 but not 11.1. Search for it and tried to install it:
@ariel ~/rpm/SPECS] zypper se -s devel_rpm_build Loading repository data... Reading installed packages...
S | Name | Type | Version | Arch | Repository --+-----------------------+---------+-----------+-------- +------------------ | devel_rpm_build | pattern | 11.1-71.1 | x86_64 | openSUSE 11.1-0 | devel_rpm_build | pattern | 11.1-71.1 | x86_64 | openSUSE-11.1-Oss | devel_rpm_build | pattern | 11.1-71.1 | i586 | openSUSE-11.1-Oss | devel_rpm_build-32bit | pattern | 11.1-71.1 | x86_64 | openSUSE-11.1-Oss
@ariel ~/rpm/SPECS] sudo zypper in devel_rpm_build Loading repository data... Reading installed packages... 'devel_rpm_build' not found. Resolving package dependencies... Nothing to do. @ariel ~/rpm/SPECS]
Tried adding the type:
@ariel ~/rpm/SPECS] sudo zypper in -t pattern devel_rpm_build Loading repository data... Reading installed packages... Resolving package dependencies...
The following NEW packages are going to be installed: autoconf automake libtool texinfo
The following NEW patterns are going to be installed: apparmor apparmor_opt base devel_rpm_build sw_management yast2_install_wf
Overall download size: 2.6 M. After the operation, additional 9.2 M will be used. Continue? [YES/no]: Retrieving package texinfo-4.12-1.172.x86_64 (1/10), 1002.0 K (3.5 M unpacked) Installing: texinfo-4.12-1.172 [done] Retrieving package libtool-2.2.6-1.35.x86_64 (2/10), 514.0 K (2.3 M unpacked) Installing: libtool-2.2.6-1.35 [done] Retrieving package autoconf-2.63-1.136.x86_64 (3/10), 642.0 K (1.9 M unpacked) Installing: autoconf-2.63-1.136 [done] Retrieving package automake-1.10.1-4.284.x86_64 (4/10), 525.0 K (1.4 M unpacked) Installing: automake-1.10.1-4.284 [done]
I am still unable to build rpm spec files:
@ariel ~/rpm/SPECS] rpmbuild -ba htop.spec Executing(%prep): /bin/sh -e /home/sprotsman/rpm/tmp/rpm-tmp.5692 <snip> /home/sprotsman/rpm/tmp/rpm-tmp.5692: line 29: cd: htop-0.8.1: No such file or directory error: Bad exit status from /home/sprotsman/rpm/tmp/rpm-tmp.5692 (%prep)
RPM build errors: Bad exit status from /home/sprotsman/rpm/tmp/rpm-tmp.5692 (%prep)
======
Any ideas would be most helpful.
I found the solution. I didn't have CDPATH set in my .bashrc on 11.0 but did add it to 11.1. This is causing rpmbuild to fail. You can either not have CDPATH set or edit /usr/lib/rpm/macros. Find the %___build_pre macro and add: unset CDPATH || : \ Hope this helps someone out. --Shawn -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org