Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 549702 - www-apache/mod_auth_kerb 5.4-r2 fails during patching
Summary: www-apache/mod_auth_kerb 5.4-r2 fails during patching
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 532790
  Show dependency tree
 
Reported: 2015-05-17 10:53 UTC by Jon Gerdes
Modified: 2015-06-03 08:51 UTC (History)
2 users (show)

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


Attachments
Failed patch (mod_auth_kerb-5.4-s4u2proxy-r2.patch.out,9.83 KB, text/plain)
2015-05-17 10:55 UTC, Jon Gerdes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jon Gerdes 2015-05-17 10:53:50 UTC
app-apache/mod_auth_kerb 5.4-r2 fails during patching phase:

 * mod_auth_kerb-5.4.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                                                                   [ ok ]
>>> Unpacking source...
>>> Unpacking mod_auth_kerb-5.4.tar.gz to /var/tmp/portage/www-apache/mod_auth_kerb-5.4-r2/work
>>> Source unpacked in /var/tmp/portage/www-apache/mod_auth_kerb-5.4-r2/work
>>> Preparing source in /var/tmp/portage/www-apache/mod_auth_kerb-5.4-r2/work/mod_auth_kerb-5.4 ...
 * Applying mod_auth_kerb-5.4-rcopshack.patch ...                                                                                                                                                                  [ ok ]
 * Applying mod_auth_kerb-5.4-fixes.patch ...                                                                                                                                                                      [ ok ]
 * Applying mod_auth_kerb-5.4-s4u2proxy-r2.patch ...

 * Failed Patch: mod_auth_kerb-5.4-s4u2proxy-r2.patch !
 *  ( /usr/portage/www-apache/mod_auth_kerb/files/mod_auth_kerb-5.4-s4u2proxy-r2.patch )
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/www-apache/mod_auth_kerb-5.4-r2/temp/mod_auth_kerb-5.4-s4u2proxy-r2.patch.out


Reproducible: Always




I tried removing that patch from the list but it then failed on the next one (httpd24).
Comment 1 Jon Gerdes 2015-05-17 10:55:36 UTC
Created attachment 403464 [details]
Failed patch
Comment 2 Pacho Ramos gentoo-dev 2015-05-19 19:27:08 UTC
Try resyncing, it should now apply a -r3 patch that should be committed properly
Comment 3 Jon Gerdes 2015-05-21 21:33:57 UTC
(In reply to Pacho Ramos from comment #2)
> Try resyncing, it should now apply a -r3 patch that should be committed
> properly

The patch turned up as -r2 which fooled me for a while.  I had to redigest the ebuild.  It now patches and compiles but dies at install, looking for a .conf file.

Cheers
Jon

>>> Compiling source in /portage/tmp/portage/www-apache/mod_auth_kerb-5.4-r2/work/mod_auth_kerb-5.4 ...
make -j9
./apxs.sh "-I. -Ispnegokrb5 -I/usr/include  " "-L/usr/lib64 -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err  -lresolv" "" "/usr/sbin/apxs2" "-c" "src/mod_auth_kerb.c"
/usr/share/build-1/libtool --silent --mode=compile x86_64-pc-linux-gnu-gcc -std=gnu99 -prefer-pic -march=native -O2 -pipe -fomit-frame-pointer  -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/apache2  -I/usr/include/apr-1   -I/usr/include/apr-1 -I/usr/include/db6.0 -I. -Ispnegokrb5 -I/usr/include  -c -o src/mod_auth_kerb.lo src/mod_auth_kerb.c && touch src/mod_auth_kerb.slo
src/mod_auth_kerb.c: In function 'have_rcache_type':
src/mod_auth_kerb.c:2078:4: warning: implicit declaration of function 'krb5_rc_resolve_full' [-Wimplicit-function-declaration]
    ret = krb5_rc_resolve_full(context, &id, "none:");
    ^
src/mod_auth_kerb.c:2082:7: warning: implicit declaration of function 'krb5_rc_destroy' [-Wimplicit-function-declaration]
       krb5_rc_destroy(context, id);
       ^
/usr/share/build-1/libtool --silent --mode=link x86_64-pc-linux-gnu-gcc -std=gnu99 -Wl,-O1 -Wl,--as-needed -Wl,--no-as-needed   -o src/mod_auth_kerb.la -L/usr/lib64 -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv  -rpath /usr/lib64/apache2/modules -module -avoid-version    src/mod_auth_kerb.lo
>>> Source compiled.
>>> Test phase [not enabled]: www-apache/mod_auth_kerb-5.4-r2

>>> Install mod_auth_kerb-5.4-r2 into /portage/tmp/portage/www-apache/mod_auth_kerb-5.4-r2/image/ category www-apache
/usr/bin/install: cannot stat ‘/portage/portage/www-apache/mod_auth_kerb/files/mod_auth_kerb.conf’: No such file or directory
!!! doins: /portage/portage/www-apache/mod_auth_kerb/files/mod_auth_kerb.conf does not exist
Comment 4 Jon Gerdes 2015-05-21 21:36:09 UTC
(In reply to Jon Gerdes from comment #3)
> (In reply to Pacho Ramos from comment #2)
> > Try resyncing, it should now apply a -r3 patch that should be committed
> > properly
> 
> The patch turned up as -r2 which fooled me for a while.  I had to redigest
> the ebuild.  It now patches and compiles but dies at install, looking for a
> .conf file.

Sorry, just realized what you actually meant - it did turn up as -r3 - the patch that is.  I was expecting an ebuild bump.
Comment 5 Jon Gerdes 2015-05-21 21:52:26 UTC
I think the problem is here:

jglaptop ~ # cd /portage/portage/www-apache/mod_auth_kerb/files/
jglaptop files # ls -l
total 120
-rw-r--r-- 1 root root   338 Jan 31  2008 11_mod_auth_kerb.conf

The conf file in "files" in the Portage tree has 11_ on the front and the ebuild has:
APACHE2_MOD_CONF="11_${PN}"

but doins is trying to copy mod_auth_kerb.conf without the 11_ .

To get up and running again, I removed the 11_ from the .conf under files/ and removed the 11_ from the env var in the ebuild and did a ebuild digest.

That installed fine.  I run out of steam at this point - I can see the problem and work around it but there's a bug somewhere and I don't know what to blame.

Thanks
Jon
Comment 6 Pacho Ramos gentoo-dev 2015-06-03 08:51:54 UTC
I cannot reproduce and, looking to the ebuild, I think we are properly setting APACHE2_MOD_CONF and using apache-module_src_install (the one that takes care of installation).

Please resync and, if still valid, open a new bug report with a full new build.log and emerge --info output (instead of reusing this bug).

the original issue (patching issue) was fixed