Overview

Request 827810 accepted

- Fixes for %_libexecdir changing to /usr/libexec (bsc#1174075)

Loading...

Michal Suchanek's avatar

Still fails to build


Callum Farmer's avatar

@michals Yes, I know just the changes need to be in devel in case anyone gets round to fixing it. I will add a note on the libexecdir changes page that this won't reach Factory until fixed.


Dominique Leuenberger's avatar

note that the build failure must be due to something else in the hardware repo - building the exact source against openSUSE:Factory builds just fine


Dominique Leuenberger's avatar

I'd argue it's these lines in prjconf breaking it:

# For apcupsd:
Prefer: sles-release
Prefer: dummy-release

paired with the fact that it fails to properly parse the 'ID_LIKE field; ID_LIKE is (or can be) a list of IDs (unlike ID) and in Tumbleweed this is 'opensuse suse' - this makes the build system stumble


Dominique Leuenberger's avatar

Putting it down to the spec file, the issue is in:

--with-distname=$(grep ID_LIKE %{_sysconfdir}/os-release | cut -d = -f 2 | tr -d '"')

Unless you really care for this to be buildable on non-SUSE distros, you could just as well

  • drop the distribution-release BuildRequires
  • pass --with-distname=suse to configure. We know who we are.
  • If you want to be nicer to 3rd party distros, you can wrap that in a %if 0%{?suse_version}
Request History
Callum Farmer's avatar

gmbr3 created request

- Fixes for %_libexecdir changing to /usr/libexec (bsc#1174075)


Michal Suchanek's avatar

michals accepted request

openSUSE Build Service is sponsored by