Bug 231846

Summary: security/sssd does not build with samba due to conflict
Product: Ports & Packages Reporter: rainer
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed Overcome By Events    
Severity: Affects Some People CC: amendlik, beppo, jcfyecrayz, lukas.slebodnik, rene, vrwmiller
Priority: --- Flags: lukas.slebodnik: maintainer-feedback-
Version: Latest   
Hardware: amd64   
OS: Any   
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241347
Bug Depends on: 241347    
Bug Blocks: 240708    

Description rainer 2018-10-01 10:12:24 UTC
this is in the 2018Q4 cut:

===>   sssd-1.11.7_14 depends on shared library: libinotify.so - found (/usr/local/lib/libinotify.so)
===>   Returning to build of sssd-1.11.7_14
===>   sssd-1.11.7_14 depends on shared library: libplds4.so - found (/usr/local/lib/libplds4.so)
===>   sssd-1.11.7_14 depends on shared library: libintl.so - found (/usr/local/lib/libintl.so)
===>   sssd-1.11.7_14 depends on shared library: libsmbclient.so - not found
===>   Installing existing package /packages/All/samba47-4.7.10.txz
[11_2-amd64-2018Q4-unified-job-01] Installing samba47-4.7.10...
[11_2-amd64-2018Q4-unified-job-01] `-- Installing cmocka-1.1.1_1...
[11_2-amd64-2018Q4-unified-job-01] `-- Extracting cmocka-1.1.1_1: .......... done
[11_2-amd64-2018Q4-unified-job-01] `-- Installing gamin-0.1.10_9...
[11_2-amd64-2018Q4-unified-job-01] |   `-- Installing glib-2.56.1_1,1...
[11_2-amd64-2018Q4-unified-job-01] |   | `-- Installing libiconv-1.14_11...
[11_2-amd64-2018Q4-unified-job-01] |   | `-- Extracting libiconv-1.14_11: .......... done
[11_2-amd64-2018Q4-unified-job-01] |   `-- Extracting glib-2.56.1_1,1: .......... done
No schema files found: doing nothing.
[11_2-amd64-2018Q4-unified-job-01] `-- Extracting gamin-0.1.10_9: .......... done
[11_2-amd64-2018Q4-unified-job-01] `-- Installing gnutls-3.5.19...
[11_2-amd64-2018Q4-unified-job-01] |   `-- Installing ca_root_nss-3.39...
[11_2-amd64-2018Q4-unified-job-01] |   `-- Extracting ca_root_nss-3.39: ...... done
[11_2-amd64-2018Q4-unified-job-01] |   `-- Installing gmp-6.1.2...
[11_2-amd64-2018Q4-unified-job-01] |   `-- Extracting gmp-6.1.2: .......... done
[11_2-amd64-2018Q4-unified-job-01] |   `-- Installing libtasn1-4.13...
[11_2-amd64-2018Q4-unified-job-01] |   `-- Extracting libtasn1-4.13: .......... done
[11_2-amd64-2018Q4-unified-job-01] |   `-- Installing nettle-3.4...
[11_2-amd64-2018Q4-unified-job-01] |   `-- Extracting nettle-3.4: .......... done
[11_2-amd64-2018Q4-unified-job-01] |   `-- Installing p11-kit-0.23.14...
[11_2-amd64-2018Q4-unified-job-01] |   `-- Extracting p11-kit-0.23.14: .......... done
[11_2-amd64-2018Q4-unified-job-01] |   `-- Installing trousers-0.3.14_2...
[11_2-amd64-2018Q4-unified-job-01] |   | `-- Installing tpm-emulator-0.7.4_2...
===> Creating groups.
Creating group '_tss' with gid '601'.
===> Creating users
Creating user '_tss' with uid '601'.
[11_2-amd64-2018Q4-unified-job-01] |   | `-- Extracting tpm-emulator-0.7.4_2: ......... done
===> Creating groups.
Using existing group '_tss'.
===> Creating users
Using existing user '_tss'.
[11_2-amd64-2018Q4-unified-job-01] |   `-- Extracting trousers-0.3.14_2: .......... done
[11_2-amd64-2018Q4-unified-job-01] `-- Extracting gnutls-3.5.19: .......... done
[11_2-amd64-2018Q4-unified-job-01] `-- Installing jansson-2.11...
[11_2-amd64-2018Q4-unified-job-01] `-- Extracting jansson-2.11: .......... done
[11_2-amd64-2018Q4-unified-job-01] `-- Installing libarchive-3.3.2_1,1...
[11_2-amd64-2018Q4-unified-job-01] |   `-- Installing liblz4-1.8.3,1...
[11_2-amd64-2018Q4-unified-job-01] |   `-- Extracting liblz4-1.8.3,1: .......... done
[11_2-amd64-2018Q4-unified-job-01] |   `-- Installing lzo2-2.10_1...
[11_2-amd64-2018Q4-unified-job-01] |   `-- Extracting lzo2-2.10_1: .......... done
[11_2-amd64-2018Q4-unified-job-01] `-- Extracting libarchive-3.3.2_1,1: .......... done
[11_2-amd64-2018Q4-unified-job-01] `-- Installing libsunacl-1.0.1...
[11_2-amd64-2018Q4-unified-job-01] `-- Extracting libsunacl-1.0.1: ....... done
[11_2-amd64-2018Q4-unified-job-01] `-- Installing py27-dnspython-1.15.0...
[11_2-amd64-2018Q4-unified-job-01] |   `-- Installing py27-setuptools-40.0.0...
[11_2-amd64-2018Q4-unified-job-01] |   `-- Extracting py27-setuptools-40.0.0: .......... done
[11_2-amd64-2018Q4-unified-job-01] `-- Extracting py27-dnspython-1.15.0: .......... done
[11_2-amd64-2018Q4-unified-job-01] `-- Installing py27-iso8601-0.1.11...
[11_2-amd64-2018Q4-unified-job-01] `-- Extracting py27-iso8601-0.1.11: .......... done
pkg-static: samba47-4.7.10 conflicts with ldb-1.1.29_2 (installs files into the same place).  Problematic file: /usr/local/bin/ldbadd

Failed to install the following 1 package(s): /packages/All/samba47-4.7.10.txz
Message from cmocka-1.1.1_1:
Comment 1 amendlik 2018-10-04 16:53:58 UTC
This is related to #230705
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230705
Comment 2 amendlik 2018-10-11 15:00:29 UTC
One solution to this could be to eliminate the dependency on LDB when the SMB option is set for sssd. In other words, if Samba is included as a dependency, do not require the ldb* package (use the bundled LDB).

Thoughts?
Comment 3 John Hein 2019-06-21 16:44:02 UTC
See also sssd update:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238465

This will try to accomodate the various conflicts for tevent/talloc/tdb/ldb consumers.
Comment 4 lukas.slebodnik 2019-10-19 22:06:59 UTC
Will be solved by 1.16.4
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241347
Comment 5 Rene Ladan freebsd_committer freebsd_triage 2020-11-08 11:56:21 UTC
Is this still a problem? samba47 is long gone. I'm currently testing the latest patch in PR 241347.
Comment 6 Rene Ladan freebsd_committer freebsd_triage 2020-11-17 20:45:51 UTC
sssd builds fine with the defaults settings at least, which updates to 1.16.5 (see #c4) and was committed. So this PR can be safely closed.