#50342 Issue #50067 - Fix krb5 dependency in a specfile
Closed 2 years ago by spichugi. Opened 3 years ago by spichugi.
spichugi/389-ds-base krb5_dep  into  master

file modified
+1
@@ -107,6 +107,7 @@ 

  %endif

  BuildRequires:    pkgconfig

  BuildRequires:    pkgconfig(systemd)

+ BuildRequires:    pkgconfig(krb5)

  # Needed to support regeneration of the autotool artifacts.

  BuildRequires:    autoconf

  BuildRequires:    automake

Bug Description: The build fails because the krb5 dependencies
are not installed while using specfile.

Fix Description: Add pkgconfig(krb5) to the BuildRequires section.

https://pagure.io/389-ds-base/issue/50067

Reviewed by: ?

ack, but what is the build failure exactly?

I try to build using Mock and generate srpm from the specfile.

checking for KERBEROS... no
BUILDSTDERR: configure: error: Package requirements (krb5) were not met:
BUILDSTDERR: Package 'krb5', required by 'virtual:world', not found
BUILDSTDERR: Consider adjusting the PKG_CONFIG_PATH environment variable if you
BUILDSTDERR: installed software in a non-standard prefix.
BUILDSTDERR: Alternatively, you may set the environment variables KERBEROS_CFLAGS
BUILDSTDERR: and KERBEROS_LIBS to avoid the need to call pkg-config.
BUILDSTDERR: See the pkg-config man page for more details.
BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.SOWsaE (%build)
RPM build errors:
BUILDSTDERR:     Bad exit status from /var/tmp/rpm-tmp.SOWsaE (%build)
Child return code was: 1
EXCEPTION: [Error()]
Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace
    result = func(*args, **kw)
  File "/usr/lib/python3.7/site-packages/mockbuild/util.py", line 700, in do
    raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode)
mockbuild.exception.Error: Command failed:
 # /usr/bin/systemd-nspawn -q -M 494009a919aa4398ad1a6192337979c4 -D /var/lib/mock/fedora-29-x86_64/root -a --capability=cap_ipc_lock --bind=/tmp/mock-resolv._cv7kzts:/etc/resolv.conf --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin --setenv=PROMPT_COMMAND=printf "\033]0;<mock-chroot>\007" --setenv=PS1=<mock-chroot> \s-\v\$  --setenv=LANG=en_US.UTF-8 -u mockbuild bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/389-ds-base.spec

Thanks I think I've seen this recently too... Anyway you still have my ack

FTR, doing sth like...

make -f rpm.mk srpms
dnf -y builddep --srpm dist/srpms/*
rpmbuild --nocheck --rebuild dist/srpms/*

... will fail without this patch. I.e. the dependencies installed based on BuildRequires from the SPEC file are not sufficient for the PKGCONFIG macro within the Makefile for the configure to be happy.

rebased onto 6a6b8d9

3 years ago

Pull-Request has been merged by spichugi

3 years ago

389-ds-base is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in 389-ds-base's github repository.

This pull request has been cloned to Github as issue and is available here:
- https://github.com/389ds/389-ds-base/issues/3401

If you want to continue to work on the PR, please navigate to the github issue,
download the patch from the attachments and file a new pull request.

Thank you for understanding. We apologize for all inconvenience.

Pull-Request has been closed by spichugi

2 years ago
Metadata