Re: [opensuse-buildservice] Error satisfying "BuildRequires" for non SuSE distro's
Hi, try "%else" instead of "%elseif". Is the latter a valid tag ? Never seen it before. I just tried it within a normal spec-file and it seems to work like a normal "%else", for BuildRequires it fails however. My guess is that the parser for the BuildExpansion-stuff does not recognise "%elseif" HTH, Christof Am Sonntag, 25. Januar 2009 00:44:07 schrieb Joop Boonen:
|All,
I get a build error for all non SuSE distro's on "BuildRequires". I've checked the names in a test installation they are correct if I'm not mistaken.
This are the "BuildRequires" in the spec file:
<quote> %if 0%{?suse_version} BuildRequires: libusb-devel, pkg-config, subversion >= 1.5.0 %elseif BuildRequires: libusb-devel, pkgconfig, subversion >= 1.5.0 %endif </quote>
This is the build error I get:
<quote> I have the following modifications for dfu-util.spec: 17c17 < Release: 5.2 ---
Release: 5.1
----------------------------------------------------------------- ----- building dfu-util.spec (user abuild) ----------------------------------------------------------------- ----------------------------------------------------------------- + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --define 'disturl srcrep:1d4ecab9cbd0e3b0f54c29caf9af5778-dfu-util' /home/abuild/rpmbuild/SOURCES/dfu-util.spec error: Failed build dependencies: libusb-devel is needed by dfu-util-0.1+svn4900-5.1.src pkgconfig is needed by dfu-util-0.1+svn4900-5.1.src subversion >= 1.5.0 is needed by dfu-util-0.1+svn4900-5.1.src System halted. </quote>
Regards,
Joop. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Hi Christof, This was indeed the problem. Thanks. Regards, Joop. On Sun, January 25, 2009 7:18 am, Christof Hanke wrote:
Hi,
try "%else" instead of "%elseif".
Is the latter a valid tag ? Never seen it before. I just tried it within a normal spec-file and it seems to work like a normal "%else", for BuildRequires it fails however. My guess is that the parser for the BuildExpansion-stuff does not recognise "%elseif"
HTH,
Christof
Am Sonntag, 25. Januar 2009 00:44:07 schrieb Joop Boonen:
|All,
I get a build error for all non SuSE distro's on "BuildRequires". I've checked the names in a test installation they are correct if I'm not mistaken.
This are the "BuildRequires" in the spec file:
<quote> %if 0%{?suse_version} BuildRequires: libusb-devel, pkg-config, subversion >= 1.5.0 %elseif BuildRequires: libusb-devel, pkgconfig, subversion >= 1.5.0 %endif </quote>
This is the build error I get:
<quote> I have the following modifications for dfu-util.spec: 17c17 < Release: 5.2 ---
Release: 5.1
----------------------------------------------------------------- ----- building dfu-util.spec (user abuild) ----------------------------------------------------------------- ----------------------------------------------------------------- + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --define 'disturl srcrep:1d4ecab9cbd0e3b0f54c29caf9af5778-dfu-util' /home/abuild/rpmbuild/SOURCES/dfu-util.spec error: Failed build dependencies: libusb-devel is needed by dfu-util-0.1+svn4900-5.1.src pkgconfig is needed by dfu-util-0.1+svn4900-5.1.src subversion >= 1.5.0 is needed by dfu-util-0.1+svn4900-5.1.src System halted. </quote>
Regards,
Joop. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
-- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (2)
-
Christof Hanke
-
Joop Boonen