Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 374009 - app-admin/testdisk-6.12 fails to configure
Summary: app-admin/testdisk-6.12 fails to configure
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal QA (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-04 08:39 UTC by Juergen Rose
Modified: 2011-07-21 18:13 UTC (History)
15 users (show)

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


Attachments
/var/tmp/portage/app-admin/testdisk-6.12/work/testdisk-6.12/config.log (config.log,281.33 KB, text/plain)
2011-07-04 08:44 UTC, Juergen Rose
Details
/var/tmp/portage/app-admin/testdisk-6.12/temp/build.log (build.log,16.03 KB, text/plain)
2011-07-04 08:45 UTC, Juergen Rose
Details
Ebuild patch for app-admin/testdisk-6.12.ebuild (testdisk-6.12.ebuild-ntfs-check.patch,682 bytes, patch)
2011-07-04 14:10 UTC, Ian Abbott
Details | Diff
Updated ebuild patch due to change from 'useq' to 'use' in original (testdisk-6.12.ebuild-ntfs-check.patch,651 bytes, patch)
2011-07-14 11:54 UTC, Ian Abbott
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2011-07-04 08:39:38 UTC
'emerge -v testdisk' fails with:
...
checking for windres... no
configure: WARNING: Could not find a windres tool in your PATH.
checking for special C compiler options needed for large files... no
...
checking for libewf.h... no
configure: WARNING: Disable use of ewf library
checking jpeglib.h usability... yes
...
checking for libcarvpath.h... no
configure: WARNING: Disable use of carvpath library
checking for an ANSI C-conforming const... yes
...
checking for ntfs_device_mount in -lntfs-3g... yes
configure: WARNING: Use of ntfs library disabled
checking for libreiserfs_get_version in -lreiserfs... yes
...
checking for compress2 in -lz... yes
configure: WARNING: Use of ewf library disabled
checking whether gcc understands -Wdeclaration-after-statement... yes
...
config.status: creating config.h
config.status: executing depfiles commands
 * ERROR: app-admin/testdisk-6.12 failed (configure phase):
 *   Failed to find NTFS library.
Comment 1 Juergen Rose 2011-07-04 08:41:45 UTC
root@caiman:/root(94)# emerge --info =app-admin/testdisk-6.12
Portage 2.1.10.4 (default/linux/amd64/10.0, gcc-4.5.2, glibc-2.13-r2, 2.6.39-gentoo-r2 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.39-gentoo-r2-x86_64-AMD_Phenom-tm-_II_X6_1090T_Processor-with-gentoo-2.0.3
Timestamp of tree: Mon, 04 Jul 2011 07:00:01 +0000
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2, 3.2
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1
sys-devel/gcc:            4.5.2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.13-r2
Repositories: gentoo sunrise science x11 x-portage x-cpan x-g-octave
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 skype-eula googleearth AdobeFlash-10.1 cadsoft"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf /usr/share/openvpn/easy-rsa /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.2/ext-active/ /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.2/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.2/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=amdfam10 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de fr"
MAKEOPTS="-j7"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/science /var/lib/layman/x11 /usr/local/portage /var/lib/cpan /var/lib/g-octave"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 64bit R X Xaw3d a52 aac abiword acl acpi admin afs alsa amd64 amrr ao apache2 applet archive arpack asf aspell assistant audacious audiofile automap automount bash-completion berkdb blas blast bluetooth boo boost bzip2 cairo cdda cddb cdf cdio cdparanoia cdr cgi chm cli consolekit corba cracklib crypt css cups curl cxx daap db dbase dbi dbm dbus declarative designer devhelp device-mapper dga dia djvu doc dri ds2490 ds9097 ds9097u dv dvb dvd dvdr dvi dynamicplugin eds elf emacs emboss emf encode epiphany evo examples exif expat extensions extra extras fame ffmpeg fftw firefox fits flac fltk fontconfig foomaticdb fortran fortran95 fpx fts3 fuse galago gcj gd gdal gdbm gdu gedit geoip geolocation geos gfortran gif gimp ginac git glade glib gml gmp gmtsuppl gnome gnome-keyring gnome-print gnuplot gnutls gphoto2 gpm grammar graphics graphtft graphviz grass gs gsl gsm gstreamer gtk gudev guile harness hddtemp hdf hdf5 hdri http httpd hvm hwdb iconv icq icu id3 imagemagick imap innodb inotify ipod ipv6 irda ithreads jabber jadetex java java6 jbig john jpeg jpeg2k kdrive kerberos kpathsea kqemu kvm ladspa lame lapack latex latex3 lcms ldap lensfun libffi libgda libnotify libsamplerate lm_sensors lua lzo mad mail maildir mapnik math matroska mkl mmx mmxext mng modules mono moonlight motif mozilla mp3 mp4 mpeg mpi mpi-threads mplayer mtp mudflap multilib musicbrainz mysql mysqli nautilus ncurses netcdf netpbm network networking networkmanager nfs nls nntp nptl nptlonly nsplugin ntfs ntp numpy obex objc ocaml octave odbc ogdi ogg ole openexr opengl openmp overview pam pcre pda pdf perl plotutils plugins png podcast policykit portaudio posix postgres postscript ppds pppd preview-latex proj projectx pstricks pulseaudio python python-bindings q16 q32 qemu qhull qt3support qt4 quicktime readline reiserfs reports rle romio rpc rrdcgi rrdtool samba sasl science sdk sdl secure-delete semantic-desktop server session sip slang slp smbclient smp sms sndfile snmp soup sox speex spell sql sqlite sse sse2 sse4a ssl stlport subtitles subversion suexec svg svm swig sysfs szip t1lib tcl tcpd tex tex4ht texmacs tgif theora threads thunderbird tidy tiff tk tools truetype udev unicode usb userlocales utempter v4l2 video virtualbox vorbis wav webdav webdav-serf webkit wmf wxwidgets xattr xcb xemacs xext xine xml xmlreader xmlrpc xorg xpm xulrunner xv xvid xvmc yaml zlib zvbi" 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 mmap_emul 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 cgid 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 proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de fr" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy gsf harness ide identity j2ee java mobility nb php profiler ruby websvccommon xml" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 ppc ppc64 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


root@caiman:/root(95)# emerge -pqv =app-admin/testdisk-6.12
[ebuild     U ] app-admin/testdisk-6.12 [6.11.3] USE="jpeg ntfs reiserfs -static" 



root@caiman:/root(96)# qlist -Iv ntfs
sys-fs/ntfs3g-2011.4.12
sys-fs/ntfsprogs-2.0.0-r3
Comment 2 Juergen Rose 2011-07-04 08:44:39 UTC
Created attachment 279017 [details]
/var/tmp/portage/app-admin/testdisk-6.12/work/testdisk-6.12/config.log
Comment 3 Juergen Rose 2011-07-04 08:45:29 UTC
Created attachment 279019 [details]
/var/tmp/portage/app-admin/testdisk-6.12/temp/build.log
Comment 4 Rafal Lalik 2011-07-04 11:25:25 UTC
I confirm this, but problem exists only when you set support for ntfs. Problem is in ebuild itself and testdisk's configure script as well.

In ebuild you check for libntfs without disabling support for libntfs-3g, but configure works in bit different way - it checks first for ntfs-3g and if it finds it then is no more looking for libntfs, and then HAVE_LIBNTFS is not set. Here is a part from configure.ac (most important lines: 547, 555, 564):

546:if test -z "${use_ntfs3g}"; then
547-  AC_CHECK_LIB(ntfs-3g,ntfs_device_mount,
548-  [
549-    AC_DEFINE([HAVE_LIBNTFS3G],1,[Define to 1 if you have the ntfs3g library (-lntfs3g).])
550-    if test "${ntfs3g_lib_a}" = ""; then
551-      LIBS="-lntfs-3g $LIBS"
552-    else
553-      LIBS="${ntfs3g_lib_a} $LIBS"
554-    fi
555:    use_ntfs=no
556-  ],
557-  AC_MSG_WARN(No ntfs-3g library detected)
558-  )
559-else
560-  AC_MSG_WARN(Use of ntfs3g library disabled)
561-fi
562-
563:if test -z "${use_ntfs}"; then
564-  AC_CHECK_LIB(ntfs,ntfs_device_mount,
565-  [
566-    AC_DEFINE([HAVE_LIBNTFS],1,[Define to 1 if you have the ntfs library (-lntfs).])
567-    if test "${ntfs_lib_a}" = ""; then

The easiest way to fix problem is to add --without-ntfs3g to configure options or allows for both: ntfs3g and/or ntfs libraries.

Greetings.
Comment 5 Ian Abbott 2011-07-04 13:33:06 UTC
Since the ebuild dependencies allow the ntfs USE flag to be satisfied by either >=sys-fs/ntfsprogs-2.0.0 or sys-fs/ntfs3g, it would be better if the ebuild checked that both HAVE_LIBNTFS and HAVE_LIBNTFS3G are undefined before failing the NTFS safety check.  Something like this:

    if useq ntfs && egrep -q 'undef HAVE_LIBNTFS\>' "${S}"/config.h 
        && egrep -q 'undef HAVE_LIBNTFS3G\>' "${S}"/config.h ; then

Alternatively, check that at least one of HAVE_LIBNTFS or HAVE_LIBNTFS3G is defined.  This could be done with a single invocation of egrep like this:

    if useq ntfs && ! egrep -q '^#define HAVE_LIBNTFS(|3G)\>' "${S}"/config.h ; then
Comment 6 Ian Abbott 2011-07-04 13:54:05 UTC
(In reply to comment #5)
> Alternatively, check that at least one of HAVE_LIBNTFS or HAVE_LIBNTFS3G is
> defined.  This could be done with a single invocation of egrep like this:

I should have mentioned 'and then logically negate the status of the egrep', which is what the command below does.

> 
>     if useq ntfs && ! egrep -q '^#define HAVE_LIBNTFS(|3G)\>' "${S}"/config.h ;
> then
Comment 7 Ian Abbott 2011-07-04 14:10:21 UTC
Created attachment 279045 [details, diff]
Ebuild patch for app-admin/testdisk-6.12.ebuild

This patch changes the safety check for NTFS in the ebuild so that it only reports a failure if neither HAVE_LIBNTFS nor HAVE_LIBNTFS3G is defined.

I made the egrep expression slightly more explicit than the one in comment 5 and changed the failure message to say it couldn't find either the NTFS or NTFS-3G library.
Comment 8 Jakub Paluszak 2011-07-06 09:44:11 UTC
I can confirm the bug, the same happens here.

emerge --info:


app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r1, 3.1.3-r1
dev-util/ccache:          2.4-r9
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.25-r2
sys-apps/baselayout:      2.0.2
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.20.1-r1
sys-devel/gcc:            4.4.5
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.2.10
sys-devel/make:           3.82
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo x-local serkan-overlay voyageur sunrise enlightenment iElectric desktop-effects belak proaudio rion gentoo-zh gamerlay-stable
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA google-talkplugin Q3AEULA dlj-1.1 PUEL googleearth AdobeFlash-10 AdobeFlash-10.1 skype-eula"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -fno-ident"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=native -fno-ident"
DISTDIR="/mnt/distfiles"
FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles fixpackages metadata-transfer news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe -march=native -fno-ident"
GENTOO_MIRRORS="http://gentoo.prz.rzeszow.pl http://gentoo.po.opole.pl http://ftp.vectranet.pl/gentoo/ http://gentoo.mirror.pw.edu.pl/"
LANG="es_ES.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US en_GB es es_ES pl pl_PL zh zh_CN zh_TW zh_SG zh_HK fr fr_FR ru ru_RU uk uk_UA cs cs_CZ he he_IL it it_IT fr_BE de de_DE hy hy_AM tr tr_TR vi vi_VN hu hu_HU lt lt_LT la pt pt_PT pt_BR yi yi_US ja ca ca_ES"
MAKEOPTS="-j5"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/local /usr/local/portage/layman/serkan-overlay /usr/local/portage/layman/voyageur /usr/local/portage/layman/sunrise /usr/local/portage/layman/enlightenment /usr/local/portage/layman/iElectric /usr/local/portage/layman/desktop-effects /usr/local/portage/layman/belak /usr/local/portage/layman/pro-audio /usr/local/portage/layman/rion /usr/local/portage/layman/gentoo-zh /usr/local/portage/layman/gamerlay"
SYNC="rsync://192.168.1.31/gentoo-portage"
Portage 2.1.10.3 (default/linux/amd64/10.0/desktop/gnome, gcc-4.4.5, glibc-2.12.2-r0, 2.6.39-pf3 x86_64)
=================================================================
System uname: Linux-2.6.39-pf3-x86_64-AMD_Phenom-tm-_II_X4_955_Processor-with-gentoo-2.0.2
Timestamp of tree: Wed, 06 Jul 2011 07:15:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
USE="3dnow 3dnowext X a52 aac acpi alsa amd64 amr archive avahi bash-completion beagle berkdb bidi bluetooth branding bzip2 cairo cblas-external cdda cddax cddb cdr cjk cleartype cli consolekit cracklib crypt css cups cxx dbus dirac djvu dri dts dvd dvdr eds emboss encode evo exchange exif faac faad fam fat ffmpeg firefox flac fontconfig fortran ftp furigana fuse gadu gcj gdbm gdu gif gimp gnome gphoto2 gpm gstreamer gtk gzip hfs hibernate-script iconv icu idn inotify iproute2 ipv6 jabber javascript jfs jpeg kate lame lcdfilter lcms libmpeg2 libnotify live lzma mad matroska mms mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib musepack nautilus ncurses network nls nokia nptl nptlonly ntfs ogg ogm opencore-amr opengl openmp optimized-qmake pam pango pch pcre pdf perl png policykit ppds pppd prediction pulseaudio python python3 qq qt3support qt4 quicktime readline reiser4 reiserfs rtmp scanner schroedinger scrobbler session smp speex spell sqlite srt sse sse2 sse3 ssh ssl startup-notification stream subtitles svg sysfs tcpd theora threads thunderbird tiff truetype udev unicode usb v4l2 vaapi vcd vorbis vpx wavpack webkit winetriks wma x264 xattr xcb xcomposite xetex xfs xml xorg xrandr xulrunner xv xvid zemberek 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 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 cgi cgid 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" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="canon ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US en_GB es es_ES pl pl_PL zh zh_CN zh_TW zh_SG zh_HK fr fr_FR ru ru_RU uk uk_UA cs cs_CZ he he_IL it it_IT fr_BE de de_DE hy hy_AM tr tr_TR vi vi_VN hu hu_HU lt lt_LT la pt pt_PT pt_BR yi yi_US ja ca ca_ES" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fglrx" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 9 Ian Abbott 2011-07-14 11:54:06 UTC
Created attachment 280049 [details, diff]
Updated ebuild patch due to change from 'useq' to 'use' in original
Comment 10 Nicola 2011-07-14 16:06:05 UTC
With the same ebuild, I'm getting a different problem during configure phase:

checking for sudo... ./configure: line 7769: requested: command not found
no

and then configure aborts.

Sudo is not in the DEPEND but is required by a configuration choice by the author of the ebuild:

local myconf="--without-ewf --enable-sudo"

I suggest to change the ebuild, so that it builds support for sudo, only if it is pulled in by the specific USE flag.

If you want me to help, providing a patch, I will.

I know it's not much on topic, but the thread title is quite generic :)
Comment 11 Piotr Szymaniak 2011-07-19 20:43:34 UTC
bump?

In case CC isn't enough ;) same problem here:

maszyn ~ # emerge --info =app-admin/testdisk-6.12
Portage 2.2.0_alpha45 (default/linux/x86/10.0/desktop, gcc-4.5.2, glibc-2.12.2-r0, 2.6.39.2 i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.39.2-i686-Pentium-R-_Dual-Core_CPU_E5400_@_2.70GHz-with-gentoo-2.0.3
Timestamp of tree: Tue, 19 Jul 2011 16:15:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 2.4 [disabled]
app-shells/bash:          4.1_p9
dev-lang/python:          2.7.1-r1, 3.1.3-r1
dev-util/ccache:          2.4-r9
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.20.1-r1
sys-devel/gcc:            4.5.2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.2.10
sys-devel/make:           3.82
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo sunrise multimedia x11 mgorny roslin gamerlay-stable
Installed sets: @system
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA Q3AEULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/var/tmp/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.ift.uni.wroc.pl/"
LANG="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="pl"
MAKEOPTS="-j3"
PKGDIR="/var/tmp/binpkgs"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/multimedia /var/lib/layman/x11 /var/lib/layman/mgorny /home/lazy_bum/uberlay/roslin /home/lazy_bum/uberlay/gamerlay"
SYNC="rsync://rsync1.pl.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa bash-completion bzip2 cairo cdda cdr cli consolekit cracklib crypt custom-cflags custom-cxxflags cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gdu gif gpm gtk iconv ipv6 jabber jpeg lcms libnotify mad mmx mmxext mng modules mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd python qt3support qt4 readline sdl session spell sse sse2 ssl ssse3 svg sysfs tcpd tiff truetype udev unicode usb vorbis x264 x86 xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 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 cgi cgid 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" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog cpu cpufreq disk hddtemp network uptime users" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386" QEMU_USER_TARGETS="i386" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 12 Ian Abbott 2011-07-20 10:32:10 UTC
(In reply to comment #10)
> With the same ebuild, I'm getting a different problem during configure phase:
> 
> checking for sudo... ./configure: line 7769: requested: command not found
> no
> 
> and then configure aborts.
> 
> Sudo is not in the DEPEND but is required by a configuration choice by the
> author of the ebuild:
> 
> local myconf="--without-ewf --enable-sudo"
> 
> I suggest to change the ebuild, so that it builds support for sudo, only if it
> is pulled in by the specific USE flag.
> 
> If you want me to help, providing a patch, I will.
> 
> I know it's not much on topic, but the thread title is quite generic :)

I think that should be in a different bug report even though the thread title is vague enough to cover it.  There you could discuss whether add-admin/sudo should be a mandatory dependency or whether to add the sudo local USE flag (it already exists as a local USE flag for sys-power/phctool).
Comment 13 Juergen Rose 2011-07-20 17:58:14 UTC
Hi Ian,
thank you for the patch. With the patch I can emerge testdisk-6.12.  Is there any chance that the patched version of testdisk-6.12 comes into the tree?
Comment 14 Markos Chandras (RETIRED) gentoo-dev 2011-07-20 18:18:56 UTC
@QA, are you interested in fixing the package since the problem is there for a while and the maintainer has not responded yet? A temporary mask would be equally fine
Comment 15 Dane Smith (RETIRED) gentoo-dev 2011-07-21 18:13:21 UTC
Done in CVS.

+  21 Jul 2011; Dane Smith <c1pher@gentoo.org> testdisk-6.12.ebuild:
+  QA: Fix configure sanity checks wrt bug 374009. Thanks Ian Abbott
+  (ian@abbott.org) for the fix.

The sudo issue should be in a separate bug if it isn't already.