Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 241448 - autotools eclass seems dont run libtoolize in eautoreconf call
Summary: autotools eclass seems dont run libtoolize in eautoreconf call
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-11 21:25 UTC by Alexey Shvetsov
Modified: 2008-10-12 09:22 UTC (History)
0 users

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


Attachments
environment (environment,123.08 KB, text/plain)
2008-10-11 21:27 UTC, Alexey Shvetsov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Shvetsov archtester gentoo-dev 2008-10-11 21:25:06 UTC
in ebuilds what inherit autotools eclass if you call eautoreconf it also should run libtoolize not true

for example gromacs-3.3.3.ebuild from portage tree tryes to run 
 >>> Emerging (1 of 1) sci-chemistry/gromacs-3.3.3
 * gromacs-3.3.3.tar.gz RMD160 SHA1 SHA256 size ;-) ...                  [ ok ]
 * checking ebuild checksums ;-) ...                                     [ ok ]
 * checking auxfile checksums ;-) ...                                    [ ok ]
 * checking miscfile checksums ;-) ...                                   [ ok ]
 * You need one of these Fortran Compilers: g77 gfortran ifc                   
 * Installed are:  gfortran                                                    
>>> Unpacking source...                                                        
>>> Unpacking gromacs-3.3.3.tar.gz to /var/tmp/portage/sci-chemistry/gromacs-3.3.3/work
 * Running eautoreconf in '/var/tmp/portage/sci-chemistry/gromacs-3.3.3/work/gromacs-3.3.3' ...
 * Running aclocal ...                                                                                                      [ ok ]
 * Running true --copy --force --install --automake ...                                                                     [ ok ]
 * Running aclocal ...                                                                                                      [ ok ]
 * Running autoconf ...                                                                                                     [ ok ]
 * Running autoheader ...                                                                                                   [ ok ]
 * Running automake --add-missing --copy --foreign ...                                                                      [ ok ]
 * Running elibtoolize in: gromacs-3.3.3/config
 * Applying install-sh-1.5.4.patch ...
 * Applying portage-1.5.10.patch ...
 * Applying max_cmd_len-1.5.20.patch ...
 * Applying sed-1.5.6.patch ...
 * Moving sources for Multiprecision Build

actualy true --copy --force --install --automake 
thats wrong and it should be 
* Running libtoolize --copy --force --install --automake 

it cause because of LIBTOOLIZE env var set to "true" and function _elibtoolize in autootools.eclass check this varieble like this
_elibtoolize() {
        local opts

        # Check if we should run libtoolize (AM_PROG_LIBTOOL is an older macro,
        # check for both it and the current AC_PROG_LIBTOOL)
        [[ -n $(autotools_check_macro AC_PROG_LIBTOOL AM_PROG_LIBTOOL LT_INIT) ]] || return 0

        [[ -f GNUmakefile.am || -f Makefile.am ]] && opts="--automake"

        [[ "${USERLAND}" == "Darwin" ]] && LIBTOOLIZE="glibtoolize"
        autotools_run_tool ${LIBTOOLIZE:-libtoolize} "$@" ${opts}

        # Need to rerun aclocal
        eaclocal
}

so if LIBTOOLIZE set to true then it will run true $args








Reproducible: Always
Comment 1 Alexey Shvetsov archtester gentoo-dev 2008-10-11 21:27:18 UTC
Created attachment 168082 [details]
environment

env file
Comment 2 Alexey Shvetsov archtester gentoo-dev 2008-10-11 21:28:02 UTC
Portage 2.2_rc12 (default/linux/amd64/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.27-rc7-gentoo x86_64)
=================================================================                                                 
System uname: Linux-2.6.27-rc7-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-glibc2.2.5          
Timestamp of tree: Fri, 10 Oct 2008 14:04:01 +0000                                                                
ccache version 2.4 [enabled]                                                                                      
app-shells/bash:     3.2_p39                                                                                      
dev-java/java-config: 1.3.7, 2.1.6-r1                                                                             
dev-lang/python:     2.5.2-r8                                                                                     
dev-util/ccache:     2.4-r8                                                                                       
sys-apps/baselayout: 2.0.0                                                                                        
sys-apps/openrc:     0.3.0-r1                                                                                     
sys-apps/sandbox:    1.2.18.1-r3                                                                                  
sys-devel/autoconf:  2.13, 2.63                                                                                   
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1                                                 
sys-devel/binutils:  2.18-r3                                                                                      
sys-devel/gcc-config: 1.4.0-r4                                                                                    
sys-devel/libtool:   2.2.6a                                                                                       
virtual/os-headers:  2.6.26                                                                                       
ACCEPT_KEYWORDS="amd64 ~amd64"                                                                                    
CBUILD="x86_64-pc-linux-gnu"                                                                                      
CFLAGS="-O3 -pipe -march=native -mtune=native -ftree-vectorize"                                                   
CHOST="x86_64-pc-linux-gnu"                                                                                       
CONFIG_PROTECT="/etc /usr/env /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /usr/shutdown /var/bind /var/lib/hsqldb"                                                                                                           
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /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="-O3 -pipe -march=native -mtune=native -ftree-vectorize"                                                                 
DISTDIR="/usr/portage/distfiles"                                                                                                  
FEATURES="ccache distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"           
FFLAGS="-O3 -pipe -march=native -mtune=native -ftree-vectorize"                                                                   
GENTOO_MIRRORS="ftp://192.168.0.60 http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo http://gentoo.osuosl.org"                                                                                                                      
LANG="ru_RU.UTF-8"                                                                                                                
LC_ALL=""                                                                                                                         
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"                                                                               
LINGUAS="ru en"                                                                                                                   
MAKEOPTS="-j9"                                                                                                                    
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/local/portage/layman/science /usr/local/portage/layman/sunrise /usr/local/portage/layman/java-overlay /usr/local/portage/layman/desktop-effects /usr/local/portage/layman/kde-testing /usr/local/overlays/portage /usr/local/overlays/mpi /usr/local/overlays/cross"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip R X Xaw3d a52 aac acl acpi addbookmarks additions administrator akode alias alsa amarok amd64 amr amrnb amrwb apache2 audiofile audit autoreplace bash-completion berkdb big-tables blas branding bzip2 cairo caps catalogs cdr chm cli cluster coda-client coda-server color-console connectionstatus contactnotes contentcache context cracklib crypt cscope css cups curl cviewer cvs cyrillic dbus decibel detex djvu doc double-precision dri dvd dvdr dvdread emboss emovix enca encode exif exiv2 extra extraengine fam fame fbcondecor ffmpeg fftw firefox fits flac fontconfig fortran fpx ftp fuse games gcc4 gdb gdbm geoip gif gimp git glitz gmp gnutls gphoto2 gpm grace graphics graphviz gs gsl gtk hal history humanities hyperestraier icon iconv ieee1394 imagemagick innodb inode inotify iproute2 ipv6 isdnlog ithreads jadetex java jbig jingle jpeg jpeg2k kde kpathsea lame lapack latex lcms lesstif libffi libnotify libwww lm_sensors log logrotate lyx lzo mad maps mecab midi mikmod mjpeg mktemp mmx mng motif mp3 mpeg mpi mplayer mudflap multilib music mysql ncurses neXt nepomuk netcdf newspr nfs nls nova nptl nptlonly nsplugin nxclient odk ogg omega openal openexr opengl openmp oscar pam passwdqc pch pcre pdf perl pertty php plasma plotutils plugins png pnm postgres postscript povray ppds pppd profile pstricks publishers pulseaudio python q32 qhull qt-copy qt3 qt3support qt4 query-browser quicktime radio rar rdesktop readline reflection resolvconf rtc ruby samba sasl sbcl science sdl sensord session sftp slang slp smp solver soundex speex spell spl sqlite srt sse sse2 ssl ssse3 startup-notification subversion svg svnserve symlink sysfs taglib tcl tcpd teamarena teletexttetex tex4ht theora threads tiff tk translator truetype unicode urandom usb utempter valgrind vboxbfe vhosts vim vim-syntax vnc vorbis webdav webpresence wmf workbench wxwindows x264 x86emu xattr xcb xcomposite xen xetex xft xindy xine xml xorg xscreensaver xulrunner xv xvid 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 copydmix 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 ident version" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Alexey Shvetsov archtester gentoo-dev 2008-10-11 21:29:10 UTC
btw if i set env varieble in ebuild like this 
        LIBTOOLIZE=libtoolize
        eautoreconf

then it will work correctly
Comment 4 Alexey Shvetsov archtester gentoo-dev 2008-10-12 09:22:37 UTC
Seems it was typo in gromacs original ebuild in off tree