[opensuse-packaging] $RPM_BUILD_ROOT empty, %{buildroot} not expanded?
Hi, I have a strange problem in project home:seife:openstack, packgage rubygem-ohai It looks like $RPM_BUILD_ROOT is empty and %{buildroot} does not get expanded but is '%{buildroot}'. But only in the SLES11_SP1 repository. I added this to the specfile: %prep %setup -q -c -T echo $RPM_BUILD_ROOT echo %{buildroot} false and got: + echo + echo '%{buildroot}' %{buildroot} + false Can anybody explain this? This looks seriously broken to me, but I don't think I did anything wrong. -- Stefan Seyfried "Any ideas, John?" "Well, surrounding them's out." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On 2010-11-24 16:10:40 +0100, Stefan Seyfried wrote:
I have a strange problem in project home:seife:openstack, packgage rubygem-ohai
It looks like $RPM_BUILD_ROOT is empty and %{buildroot} does not get expanded but is '%{buildroot}'. But only in the SLES11_SP1 repository.
I added this to the specfile:
%prep %setup -q -c -T echo $RPM_BUILD_ROOT echo %{buildroot} false
and got:
+ echo
+ echo '%{buildroot}' %{buildroot} + false
Can anybody explain this? This looks seriously broken to me, but I don't think I did anything wrong.
1. you didnt define buildroot in the preamble. so nothing can be expanded. only 11.3 or newer set buildroot automatically 2. use gem2rpm-opensuse to create your spec files. (package rubygem-gem2rpm) 3. once you are done SR the packages to devel:languages:ruby:extensions. (there you also find the gem2rpm package) darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Wed, 24 Nov 2010 16:18:19 +0100
Marcus Rueckert
Can anybody explain this? This looks seriously broken to me, but I don't think I did anything wrong.
1. you didnt define buildroot in the preamble. so nothing can be
Argh. Yes. Now that you mention it... :-)
expanded. only 11.3 or newer set buildroot automatically
2. use gem2rpm-opensuse to create your spec files. (package rubygem-gem2rpm)
Ok, that's what I was missing and why I started importing fedora specfiles.
3. once you are done SR the packages to devel:languages:ruby:extensions. (there you also find the gem2rpm package)
yeah, once it is ready and working. -- Stefan Seyfried "Any ideas, John?" "Well, surrounding them's out." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (2)
-
Marcus Rueckert
-
Stefan Seyfried