Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 864983 - net-fs/samba-4.15.7 [system-mitkrb5] fails to compile with app-crypt/mit-krb5-1.20
Summary: net-fs/samba-4.15.7 [system-mitkrb5] fails to compile with app-crypt/mit-krb5...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
: 878455 (view as bug list)
Depends on: 882897
Blocks:
  Show dependency tree
 
Reported: 2022-08-12 11:40 UTC by Marco Clocchiatti
Modified: 2022-11-25 06:29 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (build.log.xz,207.74 KB, application/x-xz)
2022-08-12 11:41 UTC, Marco Clocchiatti
Details
emerge --info (emerge-info.txt.xz,5.04 KB, application/x-xz)
2022-08-12 11:41 UTC, Marco Clocchiatti
Details
emerge --info app-crypt/mit-krb (emerge-mit-krb_info.txt.xz,5.23 KB, application/x-xz)
2022-08-17 19:05 UTC, Marco Clocchiatti
Details
build log for app-crypt/mit-krb (build-log_mit-krb.txt.xz,13.57 KB, application/x-xz)
2022-08-17 19:06 UTC, Marco Clocchiatti
Details
build log for emerge net-fs/samba with ABI_X86="64" (build.log.xz,130.31 KB, application/x-xz)
2022-09-02 09:23 UTC, Marco Clocchiatti
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Clocchiatti 2022-08-12 11:40:40 UTC
net-fs/samba-4.15.7 [system-mitkrb5] fails to compile with app-crypt/mit-krb5-1.20

Reproducible: Always

Steps to Reproduce:
1.emerge =net-fs/samba-4.15.7
2.
3.
Actual Results:  
build fails.
Comment 1 Marco Clocchiatti 2022-08-12 11:41:09 UTC
Created attachment 799383 [details]
build log
Comment 2 Marco Clocchiatti 2022-08-12 11:41:29 UTC
Created attachment 799385 [details]
emerge --info
Comment 3 Joakim Tjernlund 2022-08-17 15:44:27 UTC
ABI_X86="64 32" , I wonder if you are building samba for x86 too?
If so, perhaps that is a bug in there somewhere? Maybe in mit-krb-1.20?
Comment 4 Marco Clocchiatti 2022-08-17 19:04:58 UTC
(In reply to Joakim Tjernlund from comment #3)
> ABI_X86="64 32" , I wonder if you are building samba for x86 too?
> If so, perhaps that is a bug in there somewhere? Maybe in mit-krb-1.20?

I don't know.
did you need some more info?
Comment 5 Marco Clocchiatti 2022-08-17 19:05:52 UTC
Created attachment 799987 [details]
emerge --info app-crypt/mit-krb
Comment 6 Marco Clocchiatti 2022-08-17 19:06:30 UTC
Created attachment 799989 [details]
build log for app-crypt/mit-krb
Comment 7 Marco Clocchiatti 2022-08-17 21:32:47 UTC
one more remark.
this bug seems to disagree with comment 8 on closed bug 850082.
Comment 8 Joakim Tjernlund 2022-08-30 13:07:33 UTC
I too build mit-krb5 with ABI_X86="64 32" so I guess it is OK.

Try building samba with ABI_X86="64" only?
Comment 9 Marco Clocchiatti 2022-09-02 09:23:32 UTC
Created attachment 802660 [details]
build log for emerge net-fs/samba with ABI_X86="64"

same error as before.
Comment 10 Joakim Tjernlund 2022-10-11 15:20:06 UTC
(In reply to Marco Clocchiatti from comment #9)
> Created attachment 802660 [details]
> build log for emerge net-fs/samba with ABI_X86="64"
> 
> same error as before.

Works for me, I use samba 4.15.10 though
Comment 11 Marco Clocchiatti 2022-10-14 18:53:09 UTC
I have also net-fs/samba-4.15.9-r1 with no problems.
You can close this bug.

thank you.
Comment 12 Leonid Kopylov 2022-10-14 19:33:59 UTC
still an issue with net-fs/samba-4.16.5-r1
Comment 13 Larry the Git Cow gentoo-dev 2022-10-27 05:08:03 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16d822f449de1edd1a797b4b9f6af789811518d5

commit 16d822f449de1edd1a797b4b9f6af789811518d5
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-10-27 05:02:17 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-10-27 05:07:24 +0000

    net-fs/samba: add 4.16.6
    
    Bug: https://bugs.gentoo.org/864983
    Bug: https://bugs.gentoo.org/878273
    Signed-off-by: Sam James <sam@gentoo.org>

 net-fs/samba/Manifest            |   1 +
 net-fs/samba/samba-4.16.6.ebuild | 368 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 369 insertions(+)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a2eb5a5f9eff7a82f1865b7d1b42db3a3be3623

commit 6a2eb5a5f9eff7a82f1865b7d1b42db3a3be3623
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-10-27 04:55:51 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-10-27 05:07:24 +0000

    net-fs/samba: add 4.15.11
    
    Bug: https://bugs.gentoo.org/864983
    Bug: https://bugs.gentoo.org/878273
    Signed-off-by: Sam James <sam@gentoo.org>

 net-fs/samba/Manifest             |   1 +
 net-fs/samba/samba-4.15.11.ebuild | 333 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 334 insertions(+)
Comment 14 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-29 15:20:24 UTC
*** Bug 878455 has been marked as a duplicate of this bug. ***
Comment 15 Hunor Csordás 2022-11-04 16:28:46 UTC
app-crypt/mit-krb5-1.20 is now stabilized on multiple platforms including amd64.

I can confirm the error with both net-fs/samba-4.15.9-r1 and net-fs/samba-4.16.6. It only happens with USE=addc (and its dependencies). Removing USE=addc or reverting to app-crypt/mit-krb5-1.19.2-r4 fixes the build. So should upgrading to samba 4.17, although I haven't tested it myself.

DEPEND="addc? ( system-mitkrb5? ( !>=app-crypt/mit-krb5-1.20 ) )" or equivalent seems to be warranted for <net-fs/samba-4.17.0.

In addition, upgrading to app-crypt/mit-krb5-1.20 doesn't force a rebuild of samba despite the incompatible ABI change in the database abstraction layer. This leads to a successful emerge followed by samba crashing immediately after start if /etc/conf.d/samba contains daemon_list="samba4" with:

[2022/11/04 13:24:17.833703,  0] ../../source4/samba/server.c:626(binary_smbd_main)
  samba version 4.15.9 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2021
[2022/11/04 13:24:17.918647,  0] ../../source4/samba/server.c:907(binary_smbd_main)
  binary_smbd_main: samba: using 'prefork' process model
[2022/11/04 13:24:17.959212,  0] ../../source4/samba/service_task.c:36(task_server_terminate)
  task_server_terminate: task_server_terminate: [KDC: Initialize kadm5]
[2022/11/04 13:24:17.979706,  0] ../../source4/samba/server.c:392(samba_terminate)
  samba_terminate: samba_terminate of samba 2437: KDC: Initialize kadm5

This will also need to be addressed once an ebuild of samba 4.17+ hits the repository.
Comment 16 Larry the Git Cow gentoo-dev 2022-11-16 02:39:36 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0dbd7cff1334ebb85af0a5caea1bd58fee01ae89

commit 0dbd7cff1334ebb85af0a5caea1bd58fee01ae89
Author:     John Helmert III <ajak@gentoo.org>
AuthorDate: 2022-11-16 01:40:37 +0000
Commit:     John Helmert III <ajak@gentoo.org>
CommitDate: 2022-11-16 02:39:01 +0000

    net-fs/samba: add 4.16.7
    
    Add addc? ( !system-mitkrb5 ) to REQUIRED_USE.
    
    Bug: https://bugs.gentoo.org/880437
    Closes: https://bugs.gentoo.org/864983
    Signed-off-by: John Helmert III <ajak@gentoo.org>

 net-fs/samba/Manifest            |   1 +
 net-fs/samba/samba-4.16.7.ebuild | 368 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 369 insertions(+)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d65168e4aaf4142844c19d1e4808e6c762456dbf

commit d65168e4aaf4142844c19d1e4808e6c762456dbf
Author:     John Helmert III <ajak@gentoo.org>
AuthorDate: 2022-11-16 01:10:04 +0000
Commit:     John Helmert III <ajak@gentoo.org>
CommitDate: 2022-11-16 02:39:00 +0000

    net-fs/samba: add 4.15.12
    
    Add addc? ( !system-mitkrb5 ) to REQUIRED_USE.
    
    Bug: https://bugs.gentoo.org/864983
    Bug: https://bugs.gentoo.org/880437
    Signed-off-by: John Helmert III <ajak@gentoo.org>

 net-fs/samba/Manifest             |   1 +
 net-fs/samba/samba-4.15.12.ebuild | 333 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 334 insertions(+)