Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 936292 - gnome-base/gnome-control-center-46.2 has new kerberos dependency
Summary: gnome-base/gnome-control-center-46.2 has new kerberos dependency
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2024-07-19 08:42 UTC by Andy Pettinger
Modified: 2024-10-05 15:42 UTC (History)
5 users (show)

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


Attachments
Emerge --info (emerge --info.txt,5.93 KB, text/plain)
2024-07-19 08:43 UTC, Andy Pettinger
Details
Build.log (build.log,16.87 KB, text/x-log)
2024-07-19 09:31 UTC, Andy Pettinger
Details
build.log (build.log,13.18 KB, text/plain)
2024-07-19 09:33 UTC, Albert W. Hopkins
Details
meson-log.txt (meson-log.txt,108.84 KB, text/plain)
2024-07-19 09:34 UTC, Albert W. Hopkins
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andy Pettinger 2024-07-19 08:42:35 UTC
gnome-base/gnome-control-center-46.2 fails to build with -kerberos flag 


Reproducible: Always




[ebuild   R    ] gnome-base/gnome-control-center-46.2:2::gentoo  USE="bluetooth geolocation gnome-online-accounts ibus networkmanager systemd wayland -cups -debug (-elogind) -kerberos -test" INPUT_DEVICES="-wacom" 0 KiB


fails with the following error...

Found CMake: /usr/bin/cmake (3.30.0)
Run-time dependency krb5 found: NO (tried pkgconfig and cmake)

panels/system/meson.build:107:0: ERROR: Assert failed: kerberos libraries not found in your path

After emerging app-crypt/mit-krb5 gnome-base/gnome-control-center-46.2 builds correctly with -kerberos flag
Comment 1 Andy Pettinger 2024-07-19 08:43:44 UTC
Created attachment 897985 [details]
Emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-07-19 09:16:35 UTC
Please include the full build.log and meson-log.txt.
Comment 3 Andy Pettinger 2024-07-19 09:31:38 UTC
Created attachment 897986 [details]
Build.log
Comment 4 Albert W. Hopkins 2024-07-19 09:33:11 UTC
Created attachment 897987 [details]
build.log

My build.log
Comment 5 Albert W. Hopkins 2024-07-19 09:34:08 UTC
Created attachment 897988 [details]
meson-log.txt

My meson-log.txt
Comment 6 Andy Pettinger 2024-07-19 09:35:20 UTC
(In reply to Albert W. Hopkins from comment #5)
> Created attachment 897988 [details]
> meson-log.txt
> 
> My meson-log.txt

Thanks where did you find the meson-log.txt ?
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-07-19 09:37:33 UTC
```
 [32m*[0m   0002-build-Make-kerberos-optional.patch ...
patching file meson.build
Hunk #1 succeeded at 329 with fuzz 1.
patching file meson_options.txt
Hunk #1 succeeded at 3 with fuzz 2.
patching file panels/system/users/cc-realm-manager.c
patching file panels/system/users/meson.build
[A[72C [34;01m[ [32;01mok[34;01m ][0m
```

I suppose that patch needs rebasing and fixing.
Comment 8 Albert W. Hopkins 2024-07-19 09:39:29 UTC
(In reply to Andy Pettinger from comment #6)
> (In reply to Albert W. Hopkins from comment #5)
[...]
> Thanks where did you find the meson-log.txt ?

$PORTAGE_TMPDIR/gnome-base/gnome-control-center-46.2/work/gnome-control-center-46.2-build/meson-logs/meson-log.txt
Comment 9 Pacho Ramos gentoo-dev 2024-07-22 09:21:24 UTC
I think we also need to append:
--- a/panels/system/meson.build~	2024-05-27 10:43:32.000000000 +0200
+++ b/panels/system/meson.build	2024-07-22 11:18:10.579401369 +0200
@@ -102,10 +102,6 @@
 libgtop2 = dependency('libgtop-2.0')
 udisks2 = dependency('udisks2', version: '>= 2.8.2')
 
-# Kerberos support
-krb_dep = dependency('krb5', required: false)
-assert(krb_dep.found(), 'kerberos libraries not found in your path')
-
 deps = common_deps + [
   accounts_dep,
   gcr_dep,
Comment 10 Mark Locascio 2024-08-26 02:24:45 UTC
I just ran into the same issue with 46.2. I do not have kerberos installed, and I set the -kerberos use flag.

The patch in comment #9 worked for me, although there is a use of krb_dep a few lines farther down that I also removed. This patch is what I used:

--- a/panels/system/meson.build 2024-05-27 03:43:32.000000000 -0500
+++ b/panels/system/meson.build 2024-08-25 20:55:26.243245267 -0500
@@ -102,10 +102,6 @@
 libgtop2 = dependency('libgtop-2.0')
 udisks2 = dependency('udisks2', version: '>= 2.8.2')
 
-# Kerberos support
-krb_dep = dependency('krb5', required: false)
-assert(krb_dep.found(), 'kerberos libraries not found in your path')
-
 deps = common_deps + [
   accounts_dep,
   gcr_dep,
@@ -116,7 +112,6 @@
   libgtop2,
   liblanguage_dep,
   libsecret_dep,
-  krb_dep,
   polkit_gobject_dep,
   pwquality_dep,
   udisks2,
Comment 11 Larry the Git Cow gentoo-dev 2024-10-03 08:54:44 UTC
The bug has been closed via the following commit(s):

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

commit 793bc3c3de14b7554cae8bee85713601c3e18177
Author:     Guillermo Joandet <gjoandet@gmail.com>
AuthorDate: 2024-08-10 23:43:18 +0000
Commit:     Pacho Ramos <pacho@gentoo.org>
CommitDate: 2024-10-03 08:52:09 +0000

    gnome-base/gnome-control-center: Bump to 46.4
    
    Closes: https://bugs.gentoo.org/936292
    Thanks-to: Mark Locascio
    Thanks-to: Andy Pettinger
    Signed-off-by: Guillermo Joandet <gjoandet@gmail.com>
    Signed-off-by: Pacho Ramos <pacho@gentoo.org>

 gnome-base/gnome-control-center/Manifest           |   2 +
 .../gnome-control-center-46.4.ebuild               | 215 +++++++++++++++++++++
 2 files changed, 217 insertions(+)