Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 234886

Summary: mit-krb5 depends on sys-libs/com_err and sys-libs/ss, blocked by e2fsprogs-libs+com_err.h error, when building with e2fsprogs-libs
Product: Gentoo Linux Reporter: Lars Strojny <lars>
Component: Current packagesAssignee: Gentoo Kerberos Maintainers <kerberos>
Status: RESOLVED FIXED    
Severity: normal CC: Adrian.Bassett, ansla80, breiteseite1337, denys.duchier, dkarasik, f5d8fd51ed1e804c9e8d0357e8614e0493b06e96, gentoo, gentooperson, gfl3162+gbugzilla, j0inty, jer, m.debruijne, neil, pchrist, rafallalik, ryan, seventhguardian, ulm, uzytkownik2, zeekec, zmedico
Priority: High Keywords: Bug, NeedPatch
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 234907    
Attachments: mit-krb5-1.6.3-r2.ebuild
Patch to fix dependecies problem with e2fsprogs-libs
patch for krb5-1.6.3-r1.ebuild, to create the -r2 ebuild
patch for e2fsprogs-libs compatibility

Description Lars Strojny 2008-08-16 07:36:44 UTC
e2fsprogs-libs provides the files of sys-libs/com_err and sys-libs/ss and therefore e2fsprogrs-libs blocks both packages. mit-krb5 should allow both and depend on either ss and com_err or on e2fsprogs-libs.
Comment 1 Steffen 'j0inty' Stollfuß 2008-08-16 16:18:06 UTC
Created attachment 163055 [details, diff]
mit-krb5-1.6.3-r2.ebuild

Hi,

Thats to fix gone raelly easiely, but now it compiles any more because the hole package try ~80 times to include the "com_err.h" but its now "et/com_err.h".
Comment 2 Panagiotis Christopoulos (RETIRED) gentoo-dev 2008-08-16 19:50:52 UTC
kerberos team,
also take a look at bug 234907 
Comment 3 Rafal Lalik 2008-08-16 20:21:14 UTC
Created attachment 163074 [details, diff]
Patch to fix dependecies problem with e2fsprogs-libs

Hi guys,

please check this patch. It works with installed e2fsprogs-libs (required by e2fsprogs-1.41.0), but I didn't check it with e2fsproges-1.40.11 require sys-libs/ss and sys-libs/com_err.

Please check before bug #234957: http://bugs.gentoo.org/show_bug.cgi?id=234957

Regards,
Rafal Lalik
Comment 4 Panagiotis Christopoulos (RETIRED) gentoo-dev 2008-08-16 20:50:51 UTC
*** Bug 234957 has been marked as a duplicate of this bug. ***
Comment 5 gfl3162+gbugzilla 2008-08-17 05:17:56 UTC
workaround for compile problem:

# cd /usr/include
# ln -s et/com_err.h .
Comment 6 Denys Duchier 2008-08-17 12:15:54 UTC
(In reply to comment #5)
> workaround for compile problem:
> 
> # cd /usr/include
> # ln -s et/com_err.h .
>

instead, I added the following to src_compile:

export CPPFLAGS="${CPPFLAGS} -I/usr/include/et"

and that worked fine.
Comment 7 Panagiotis Christopoulos (RETIRED) gentoo-dev 2008-08-17 19:36:52 UTC
Another solution, for now, is to push an mit-krb5-1.6.3-r2.ebuild which is keyworded only ~arch, and DEPENDs in only e2fsprogs-libs. This way, we separate people running stable from people running ~arch. The maintainer will decide. Patch follows.
Comment 8 Panagiotis Christopoulos (RETIRED) gentoo-dev 2008-08-17 19:40:11 UTC
Created attachment 163133 [details, diff]
patch for krb5-1.6.3-r1.ebuild, to create the -r2 ebuild
Comment 9 Rafal Lalik 2008-08-17 20:56:53 UTC
(In reply to comment #8)
> Created an attachment (id=163133) [edit]
> patch for krb5-1.6.3-r1.ebuild, to create the -r2 ebuild
> 

Ok, but problem still exist if you use <=e2fsprogs-1.40.11 which depend on sys-libs/ss and sys-libs/com_err.

My patch works with both cases: sys-libs/ss or e2fsprogs-libs

Comment 10 Steffen 'j0inty' Stollfuß 2008-08-17 21:22:55 UTC
And copy the file from /usr/include/et/ to .. is absolutly the wrong way.

The symlink is a dirty hack too and should remove on when the upstream has make or patch or release.

Comment 11 Rafal Lalik 2008-08-17 22:47:09 UTC
(In reply to comment #8)
> Created an attachment (id=163133) [edit]
> patch for krb5-1.6.3-r1.ebuild, to create the -r2 ebuild
> 

Ok, but problem still exist if you use <=e2fsprogs-1.40.11 which depend on sys-libs/ss and sys-libs/com_err.

My patch works with both cases: sys-libs/ss or e2fsprogs-libs

Comment 12 Panagiotis Christopoulos (RETIRED) gentoo-dev 2008-08-18 17:38:08 UTC
*** Bug 235110 has been marked as a duplicate of this bug. ***
Comment 13 Michael Hammer (RETIRED) gentoo-dev 2008-08-19 07:58:41 UTC
Created attachment 163274 [details, diff]
patch for e2fsprogs-libs compatibility

please test!
Comment 14 Michael Hammer (RETIRED) gentoo-dev 2008-08-19 07:59:13 UTC
$ grep -R '#include "com_err.h"' * | wc -l
76

That's a lot of code for us to patch. I've decided to make some kind of combination of the suggested solutions. See either the attached patch or the ebuild in the overlay. It'd be nice if you could test it!

Thanks in advance, mueli
Comment 15 Ulrich Müller gentoo-dev 2008-08-19 10:51:21 UTC
(In reply to comment #13)
> Created an attachment (id=163274) [edit]
> patch for e2fsprogs-libs compatibility

In the long term, you should probably use "$(pkg-config --cflags com_err)" instead of the hardcoded "-I/usr/include/et". However pkg-config returns the wrong result for e2fsprogs-libs-1.41.0. I've commented at bug 234957 about that problem.
Comment 16 Michael Hammer (RETIRED) gentoo-dev 2008-08-19 12:59:34 UTC
bug is fixed now also in repository .... will include the pkg-config call as soon it is fixed in bug #234957.
Comment 17 Harris Landgarten 2008-08-20 02:33:54 UTC
mit-krb5-1.6.3-r2 still has rdepend com_err ss with is causing paludis problems
Comment 18 Harris Landgarten 2008-08-20 02:38:38 UTC
paludis -ip mit-krb5
Building target list... paludis@1219199791: [WARNING e.vdb.provides.no_package] In program paludis -ip mit-krb5:
  ... When performing install action from command line:
  ... When adding install target 'mit-krb5':
  ... When parsing user package dep spec 'mit-krb5':
  ... When parsing generic package dep spec 'mit-krb5':
  ... When disambiguating package name 'mit-krb5':
  ... When finding all versions in some arbitrary order from packages matching */mit-krb5 with filter all matches filtered through supports action install:
  ... When finding category names containing package 'mit-krb5':
  ... When loading names for virtuals repository:
  ... When finding provided packages for 'installed':
  ... No package available for 'media-libs/libquicktime 1.0.2'

 * I can't find //usr/bin/update-eix-functions.sh, aborting
Building dependency list...

These packages will be installed:

* sys-libs/com_err [N 1.40.11]
    Reasons: *app-crypt/mit-krb5-1.6.3-r2:0::gentoo, *sys-libs/ss-1.40.11:0::gentoo
    "common error display library"
    nls
* sys-libs/ss [N 1.40.11]
    Reasons: *app-crypt/mit-krb5-1.6.3-r2:0::gentoo
    "Subsystem command parsing library"
    nls
* app-crypt/mit-krb5 [R 1.6.3-r2] <target>
    Reasons: dev-libs/openssl-0.9.8h-r1:0::installed
    -doc -krb4

Total: 3 packages (2 new, 1 rebuild)
Comment 19 Zac Medico gentoo-dev 2008-08-20 04:50:43 UTC
(In reply to comment #17)
> mit-krb5-1.6.3-r2 still has rdepend com_err ss with is causing paludis problems

If you look in the ebuild then you'll see that it has e2fsprogs-libs listed as an alternative choice:

|| ( ( sys-libs/com_err sys-libs/ss ) ( >sys-libs/e2fsprogs-libs-1.40.11 ) )

I had the same problem with portage, but it solved automatically after I masked the sys-libs/com_err and sys-libs/ss packages in /etc/portage/package.mask:

$ emerge -pv mit-krb5 e2fsprogs

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] sys-libs/e2fsprogs-libs-1.41.0  USE="nls" 476 kB
[ebuild     U ] sys-fs/e2fsprogs-1.41.0 [1.40.11] USE="nls (-static%)" 4,161 kB
[blocks b     ] <sys-fs/e2fsprogs-1.41 (is blocking sys-libs/e2fsprogs-libs-1.41.0)
[ebuild  N    ] app-crypt/mit-krb5-1.6.3-r2  USE="-doc -krb4" 11,636 kB
[uninstall    ] sys-libs/com_err-1.40.11  USE="nls"
[blocks b     ] sys-libs/com_err (is blocking sys-libs/e2fsprogs-libs-1.41.0)
[uninstall    ] sys-libs/ss-1.40.11  USE="nls"
[blocks b     ] sys-libs/ss (is blocking sys-libs/e2fsprogs-libs-1.41.0)
Comment 20 Michael Hammer (RETIRED) gentoo-dev 2008-08-20 06:41:15 UTC
I'd also suggest the solution of zmedico as I want to leave the deps as they are to give also stable users the possibility to use ~ mit-krb5.

thx and greets, mueli