Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 311085 - sys-auth/polkit-0.96 (and -r1) ebuild fails in src_prepare()
Summary: sys-auth/polkit-0.96 (and -r1) ebuild fails in src_prepare()
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Nirbheek Chauhan (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-24 09:17 UTC by François Bissey
Modified: 2010-03-25 14:49 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description François Bissey 2010-03-24 09:17:59 UTC
After syncing today I was asked to upgrade polkit from version 0.96
to 0.96-r1. The build failed in src_prepare(), after masking the offending
version and finishing the update I tried to re-emerge polkit-0.96.
It failed in exactly the same way with the same message (except for the 
version numbers):
 * polkit-0.96-shadow-support.patch.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                   [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                  [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                 [ ok ]
 * CPV:  sys-auth/polkit-0.96
 * REPO: gentoo
 * USE:  elibc_glibc expat kernel_linux nls userland_GNU x86
>>> Unpacking source...
>>> Unpacking polkit-0.96.tar.gz to /media/anthill/portage/sys-auth/polkit-0.96/work
>>> Unpacking polkit-0.96-shadow-support.patch.bz2 to /media/anthill/portage/sys-auth/polkit-0.96/work
>>> Source unpacked in /media/anthill/portage/sys-auth/polkit-0.96/work
>>> Preparing source in /media/anthill/portage/sys-auth/polkit-0.96/work/polkit-0.96 ...
 * Applying polkit-0.96-shadow-support.patch ...                                                                                        [ ok ]
 * Running eautoreconf in '/media/anthill/portage/sys-auth/polkit-0.96/work/polkit-0.96' ...
 * Running aclocal ...                                                                                                                  [ ok ]
 * Running libtoolize --copy --force --install --automake ...                                                                           [ ok ]
 * Running aclocal ...                                                                                                                  [ ok ]
 * Running autoconf ...                                                                                                                 [ ok ]
 * Running autoheader ...                                                                                                               [ ok ]
 * Running automake --add-missing --copy ...                                                                                            [ !! ]

 * Failed Running automake !
 * 
 * Include in your bugreport the contents of:
 * 
 *   /media/anthill/portage/sys-auth/polkit-0.96/temp/automake.out

-----------------
Here is the content of the file automake.out (it is small enough):
***** automake *****
***** PWD: /media/anthill/portage/sys-auth/polkit-0.96/work/polkit-0.96
***** automake --add-missing --copy

gtk-doc.make:52: GTK_DOC_BUILD_HTML does not appear in AM_CONDITIONAL
docs/polkit/Makefile.am:84:   `gtk-doc.make' included from here
gtk-doc.make:57: GTK_DOC_BUILD_PDF does not appear in AM_CONDITIONAL
docs/polkit/Makefile.am:84:   `gtk-doc.make' included from here

------------------------------------
The 0.96 ebuild fetched the following patch:
polkit-0.96-shadow-support.patch.bz2
which wasn't on my system before, I believe this patch is related
to bug #291116 - careful reversal of the patch (including enforcing
pam dependency) resulted in proper compilation and installation.

The run of eautoreconf in the new ebuild seem to reveal a flaw
in the autoconf script that has escaped people in bug #291116.
May be they didn't try without pam.

Reproducible: Always

Steps to Reproduce:
1.USE="-pam" emerge -v polkit
2.
3.

Actual Results:  
ebuild fails in src_prepare()

Expected Results:  
successful merge.

Portage 2.2_rc67 (default/linux/x86/10.0, gcc-4.4.3, glibc-2.10.1-r1, 2.6.32-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.32-gentoo-r1-i686-AMD_Athlon-tm-_XP_2600+-with-gentoo-1.12.13
Timestamp of tree: Wed, 24 Mar 2010 02:15:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p37
dev-java/java-config: 1.3.7-r1, 2.1.10
dev-lang/python:     2.6.4-r99
dev-python/pycrypto: 2.1.0_beta1
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6-r1, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1
sys-devel/gcc:       4.3.4, 4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -fomit-frame-pointer -pipe -fno-strict-aliasing"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -fomit-frame-pointer -pipe -fno-strict-aliasing"
DISTDIR="/media/anthill/portage/distfiles"
FEATURES="assume-digests ccache collision-protect distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirror.ihug.co.nz/gentoo http://mirrors.tds.net/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo ftp://mirrors.tds.net/gentoo http://gentoo.eliteitminds.com"
LANG="en_NZ.UTF-8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="en_GB fr"
MAKEOPTS="-j2 VERBOSE=1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/media/anthill"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/science /usr/local/portage/layman/sunrise /usr/local/portage/layman/kde /usr/local/portage/layman/sage-on-gentoo /home/francois/Work/Overlays/Gentoo-sage"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib acl acpi alsa amr ao apm asf audiofile berkdb bidi bootsplash branding bzip2 cairo cdda cddb cdf cdparanoia cli composite consolekit cracklib crypt cups curl cxx dbus device-mapper dga dmi dri dts dv dvd dvdr dvdread encode exif expat ffmpeg fftw flac fontconfig foomaticdb fortran fpx gdbm geoip gif gimpprint glib glitz glut gmp graphviz gs gstreamer gtk gtk2 hal iconv id3tag idn imagemagick imlib imlib2 ipv6 ipython jack java jbig joystick jpeg jpeg2k kde kdehiddenvisibility kipi kpathsea ladspa lame lapack latex lcms libffi libsamplerate lzma lzo mad mathml matroska mikmod mime mmx mmx2 mmxext mng modules motif mp3 mp4 mpeg mplayer mudflap musicbrainz ncurses netcdf network nls nptl nptlonly ogg openal openexr opengl pcre pdf perl png policykit portaudio posix ppds pppd ps python qt3support qt4 quicktime readline reflection reiserfs sdl secure-delete session sndfile sox spell spl sqlite3 sse ssl startup-notification svg svga sysfs szip t1lib tcl tcltk tcpd tetex tga theora thumbnail tiff tk truetype unicode usb v4l2 vcd vnc vorbis wavpack webkit wmf x264 x86 xanim xattr xcb xcomposite xine xinerama xml xorg xpm xsl xv xvid xvmc zlib" ALSA_CARDS="cmipci via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon ptp2" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB fr" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Nirbheek Chauhan (RETIRED) gentoo-dev 2010-03-24 13:11:38 UTC
(In reply to comment #0)
[snip]
> Here is the content of the file automake.out (it is small enough):
> ***** automake *****
> ***** PWD: /media/anthill/portage/sys-auth/polkit-0.96/work/polkit-0.96
> ***** automake --add-missing --copy
> 
> gtk-doc.make:52: GTK_DOC_BUILD_HTML does not appear in AM_CONDITIONAL
> docs/polkit/Makefile.am:84:   `gtk-doc.make' included from here
> gtk-doc.make:57: GTK_DOC_BUILD_PDF does not appear in AM_CONDITIONAL
> docs/polkit/Makefile.am:84:   `gtk-doc.make' included from here
> 

This error seems unrelated to the patch. The patch doesn't touch anything in there.

> which wasn't on my system before, I believe this patch is related
> to bug #291116 - careful reversal of the patch (including enforcing
> pam dependency) resulted in proper compilation and installation.
> 

This is strange.

> The run of eautoreconf in the new ebuild seem to reveal a flaw
> in the autoconf script that has escaped people in bug #291116.
> May be they didn't try without pam.
> 

I did test it before committing. I tried it again, and it still works for me.

What version of gtk-doc do you have? Can you try with 1.13-r2?
Comment 2 François Bissey 2010-03-24 19:59:06 UTC
(In reply to comment #1)
> > The run of eautoreconf in the new ebuild seem to reveal a flaw
> > in the autoconf script that has escaped people in bug #291116.
> > May be they didn't try without pam.
> > 
> 
> I did test it before committing. I tried it again, and it still works for me.
> 

That was cheecky of me to suggest that. Apologies.

> What version of gtk-doc do you have? Can you try with 1.13-r2?
> 

I usually compile with -doc to a few exceptions, so here I don't
build the doc either. I will not have access to the machine until
later today to check but I don't think I have gtk-doc installed
nor do I have the desire to install it unless it is necessary.
Comment 3 François Bissey 2010-03-25 06:57:11 UTC
OK after looking on my machine I have gtk-doc-am.
Upgrading to gtk-doc-am-1.13 did the trick and got me past 
sr_prepare().

Thank you for suggesting gtk-doc otherwise I would have
missed gtk-doc-am. 

Will you raise the gtk-doc-am dependency of polkit?
Comment 4 Nirbheek Chauhan (RETIRED) gentoo-dev 2010-03-25 14:49:49 UTC
I just raised the gtk-doc and gtk-doc-am dependencies to 1.13, thanks for reporting.