Bug 220595 - www-apache/mod_auth_openid-0.2 fails aclocal and issue with APR include
Bug#: 220595 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: apache-bugs@gentoo.org Reported By: chad.simmons@member.fsf.org
Component: Server
URL: 
Summary: www-apache/mod_auth_openid-0.2 fails aclocal and issue with APR include
Keywords:  Inclusion
Status Whiteboard: 
Opened: 2008-05-06 13:55 0000
Description:   Opened: 2008-05-06 13:55 0000
* Running eautoreconf in
'/var/tmp/portage/www-apache/mod_auth_openid-0.2/work/mod_auth_openid-0.2' ...
 * Running aclocal -I /acinclude.d/ -I acinclude.d ...                         
                                     [ !! ]

 * Failed Running aclocal !
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/www-apache/mod_auth_openid-0.2/temp/aclocal-16219.out

 *
 * ERROR: www-apache/mod_auth_openid-0.2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_unpack
 *             environment, line 2799:  Called eautoreconf
 *             environment, line 1011:  Called eaclocal
 *             environment, line  950:  Called autotools_run_tool 'aclocal'
'-I' '/acinclude.d/' '-I' 'acinclude.d'
 *             environment, line  501:  Called die
 * The specific snippet of code:
 *           die "Failed Running $1 !";
 *  The die message:
 *   Failed Running aclocal !


Reproducible: Always

Steps to Reproduce:
1. emerge mod_auth_openid
2.
3.

Actual Results:  
aclocal fails

Expected Results:  
compiled and installed

chadgentoo ~ # emerge --info
Portage 2.1.5_rc6 (default/linux/amd64/2008.0/desktop, gcc-4.2.3, glibc-2.7-r2,
2.6.24-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.24-gentoo-r5 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor
4400+
Timestamp of tree: Tue, 06 May 2008 07:00:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r11, 2.5.2-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
dev-util/confcache:  0.4.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.3
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2,
1.10.1-r1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -msse3 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/NX/etc /usr/NX/home /usr/kde/3.5/env
/usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf
/etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/
/etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild
/etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=k8 -msse3 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch sandbox sfperms strict unmerge-orphans
user-sandbox userfetch userpriv"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.utf-8"
LDFLAGS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X Xaw3d a52 aac aalib acct acl acpi aio alsa amd64 amr
apache2 apm asf athena bash-completion berkdb blas blender-game bluetooth
branding bzip2 cairo ccache cddb cdr cgi cli color-console commercial
connectionstatus cracklib crypt css cups curl cvs daap dbus divx dnd dri dts
dvd dvdnav dvdr dvdread eds emboss emerald encode escreen esd evo exif
extensions fam fame fat ffmpeg fftw firefox flac fortran gd gdbm gif glitz glx
gmail gmailtimestamps gnome gnutls gpm graphviz gstreamer gtk hal hddtemp hdri
hpn httpd iconv ieee1394 imagemagick ipod ipv6 isdnlog java joystick jpeg kde
kdeenablefinal kdehiddenvisibility kdenablefinal kerberos lame lcms ldap
libcaca libnotify lm_sensors lzo mad midi mikmod mjpeg mmap mmx mmxext mp2 mp3
mp4 mpeg mpeg2 mpi mplayer mplayer-bin mpm-worker mudflap multilib mysql
ncurses netmeeting network network-cron nls nptl nptlonly nsplugin nvidia
nxclient ocaml offensive ogg openal openexr opengl openmp pam pcre pdf perl php
pic plugins png ppds pppd python qt3 qt3support qt4 quicktime rdesktop readline
realmedia reflection reiserfs rtc rtsp sdl session sftplogging shout smi smp
sms snmp spell spl sqlite3 sse sse2 ssl ssse3 startup-notification stream
subversion svg tcpd theora threads tiff tk toolbar truetype unicode upnp usb
visualization vorbis winpopup wmp x264 xcb xcomposite xml xml2 xorg xprint
xscreensaver xv xvid xvmc yv12 zlib" ALSA_CARDS="ali5451 als4000 atiixp
atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801
hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem
ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug
file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate
route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest
authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter
headers ident imagemap include info log_config logio mem_cache mime mime_magic
negotiation rewrite setenvif so speling status unique_id userdir usertrack
vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev mouse keyboard joystick"
KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001
mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS,
PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

------- Comment #1 From Chad A. Simmons 2008-05-06 13:56:09 0000 -------
Created an attachment (id=152119) [details]
aclocal out

------- Comment #2 From Chad A. Simmons 2008-05-06 14:03:19 0000 -------
next line is the command portage runs for ac local.
aclocal -I /acinclude.d/ -I acinclude.d

Looks like for some reason the ebuild is trying to run aclocal with two paths
one valid(acinclude.d) and one that doesnt exist(/acinclude.d/). It looks like
this line in the ebuild may be the issue but I don't see where it is picking up
the / at the beginning and end of the dir.

        AT_M4DIR="acinclude.d"

------- Comment #3 From Chad A. Simmons 2008-05-06 15:01:08 0000 -------
ok this problem comes from the makefile. I will be attaching an -r1 ebuild and
makefile patch that solves this problem

------- Comment #4 From Chad A. Simmons 2008-05-06 15:07:03 0000 -------
Patching this issue exposes another issue. APR is not being properly included
here causing compilation failures.

------- Comment #5 From Chad A. Simmons 2008-05-06 15:11:58 0000 -------
Created an attachment (id=152121) [details]
fixes aclocal issue but exposes and issue with APR not being included properly

------- Comment #6 From Chad A. Simmons 2008-05-06 15:13:16 0000 -------
Created an attachment (id=152123) [details]
makefile patch

------- Comment #7 From Chad A. Simmons 2008-05-06 15:24:50 0000 -------
ok attaching working ebuild. Problem was configure was picking up apr-config
instead of apr-1-config. Please test and verify but this should work for
everyone.

------- Comment #8 From Chad A. Simmons 2008-05-06 15:26:28 0000 -------
Created an attachment (id=152125) [details]
working ebuild with patch for makefile and passes correct apr-1-config to
configure

working -r1 ebuild

------- Comment #9 From Chad A. Simmons 2008-05-07 23:32:39 0000 -------
updating description to reflect all issues corrected by patch/ebuild update

------- Comment #10 From Chad A. Simmons 2008-05-08 17:48:26 0000 -------
configured a vhost on my machine and verified openid authentication works as
expected.

Could someone from the Apache herd review and commit the r1 ebuild as it
appears the 0.2 ebuild currently in portage is completely unusable.

------- Comment #11 From Benedikt Böhm 2008-05-08 19:13:51 0000 -------
fixed, thanks