I generated an ebuild for the CPAN Module Text::ASCIITable (Text-ASCIITable-0.20.ebuild) using g-cpan. emerge Text-ASCIITable then whinged about "DEPEND needs dev-perl/Module-Build", so I added it and recreated the manifest file, then emerge went on. Reproducible: Always Steps to Reproduce: 1. # emerge -v g-cpan 2. prepare environment for running g-cpan as a user 2a. # echo perl-gcpan >> /etc/portage/categories 2b. # mkdir -p /usr/local/gcpan/metadata 2c. # cat << EOF > /usr/local/gcpan/metadata/layout.conf masters = gentoo repo-name = gcpan use-manifests = strict EOF 2d. # chown portage: /usr/local/gcpan -R 2e. # echo 'PORTDIR_OVERLAY="/usr/local/gcpan ${PORTDIR_OVERLAY}" >> /etc/portage/make.conf 3. initialise g-cpan as a user #user shall have add. group: portage 3a. $ g-cpan --generate Text::ASCIITable #ignore error messages 3b. $ vi ~/.cpan/CPAN/MyConfig.pm #edit as follows 'build_dir' => q[/var/tmp/.cpan-build], 'cpan_home' => q[/usr/local/gcpan/.cpan], 'histfile' => q[/usr/local/gcpan/.cpan/histfile], 'keep_source_where' => q[/usr/local/gcpan/.cpan/sources], 4. $ g-cpan --generate Text::ASCIITable 5. # emerge -v Text-ASCIITable Actual Results: emerge complains about DEPEND not having dev-perl/Module-Build Expected Results: g-cpan should add the dependency itself lxmdb ~ # emerge --info app-portage/g-cpan Portage 2.2.26 (python 2.7.10-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.9.3, glibc-2.21-r1, 4.4.0-gentoo-r1 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-4.4.0-gentoo-r1-x86_64-Intel-R-_Core-TM-_i5_CPU_750_@_2.67GHz-with-gentoo-2.2 KiB Mem: 8166592 total, 2763792 free KiB Swap: 17825788 total, 17824096 free Timestamp of repository gentoo: Thu, 28 Jan 2016 11:00:01 +0000 sh bash 4.3_p42-r1 ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 app-shells/bash: 4.3_p42-r1::gentoo dev-java/java-config: 2.2.0::gentoo dev-lang/perl: 5.20.2::gentoo dev-lang/python: 2.7.10-r1::gentoo, 3.3.5-r1::gentoo, 3.4.3-r1::gentoo dev-util/cmake: 3.3.1-r1::gentoo dev-util/pkgconfig: 0.28-r2::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.19.1::gentoo sys-apps/sandbox: 2.10-r1::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69::gentoo sys-devel/automake: 1.11.6-r1::gentoo, 1.12.6::gentoo, 1.14.1::gentoo, 1.15::gentoo sys-devel/binutils: 2.25.1-r1::gentoo sys-devel/gcc: 4.8.5::gentoo, 4.9.3::gentoo sys-devel/gcc-config: 1.7.3::gentoo sys-devel/libtool: 2.4.6::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers) sys-libs/glibc: 2.21-r1::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 gcpan location: /usr/local/gcpan masters: gentoo priority: 0 local location: /usr/local/portage masters: gentoo priority: 1 java location: /var/lib/layman/java masters: gentoo priority: 2 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--jobs=5 --with-bdeps=y --keep-going=y --load-average=10" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="de_DE.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli colord cracklib crypt cryptsetup cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif expat fam firefox flac fortran gdbm gif glamor gnome gnome-keyring gnome-online-accounts gnutls gpm gstreamer gtk iconv icu introspection ipv6 jpeg lcms ldap libnotify libsecret lzo mad mmx mmxext mng modules mp3 mp4 mpeg multilib mysql mysqli nautilus ncurses nls nptl ogg opengl openmp pam pango pcre pdf perl png policykit postgres ppds pulseaudio python qt3support qt4 readline samba sdl seccomp session spell sse sse2 ssl startup-notification svg systemd tcpd tiff tracker truetype udev udisks unicode upower usb vim-syntax vorbis wayland wxwidgets x264 xattr xcb xinerama xml xv xvid zlib" ABI_X86="64 32" 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" APACHE2_MODULES="actions alias auth_basic auth_digest 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 proxy proxy_connect proxy_http rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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 ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en fr" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5 php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="nvidia 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: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON ================================================================= Package Settings ================================================================= app-portage/g-cpan-0.16.5::gentoo was built with the following: USE="" ABI_X86="64" mdb@lxmdb ~ $ g-cpan --generate Text::ASCIITable Possible precedence issue with control flow operator at /usr/lib64/perl5/vendor_perl/5.20.2/Shell/EnvImporter/Result.pm line 88. Use of uninitialized value $_[1] in read at /usr/lib64/perl5/5.20.2/x86_64-linux/IO/Handle.pm line 463. Use of uninitialized value $_[1] in read at /usr/lib64/perl5/5.20.2/x86_64-linux/IO/Handle.pm line 463. Use of uninitialized value $_[1] in read at /usr/lib64/perl5/5.20.2/x86_64-linux/IO/Handle.pm line 463. Use of uninitialized value $_[1] in read at /usr/lib64/perl5/5.20.2/x86_64-linux/IO/Handle.pm line 463. Use of uninitialized value $_[1] in read at /usr/lib64/perl5/5.20.2/x86_64-linux/IO/Handle.pm line 463. Use of uninitialized value $_[1] in read at /usr/lib64/perl5/5.20.2/x86_64-linux/IO/Handle.pm line 463. Use of uninitialized value $_[1] in read at /usr/lib64/perl5/5.20.2/x86_64-linux/IO/Handle.pm line 463. Use of uninitialized value $_[1] in read at /usr/lib64/perl5/5.20.2/x86_64-linux/IO/Handle.pm line 463. Use of uninitialized value $_[1] in read at /usr/lib64/perl5/5.20.2/x86_64-linux/IO/Handle.pm line 463. Use of uninitialized value $_[1] in read at /usr/lib64/perl5/5.20.2/x86_64-linux/IO/Handle.pm line 463. Use of uninitialized value $_[1] in read at /usr/lib64/perl5/5.20.2/x86_64-linux/IO/Handle.pm line 463. Use of uninitialized value $_[1] in read at /usr/lib64/perl5/5.20.2/x86_64-linux/IO/Handle.pm line 463. -CPAN: Storable loaded ok (v2.49_01) Reading '/usr/local/gcpan/.cpan/Metadata' Database was generated on Fri, 29 Jan 2016 14:41:02 GMT |CPAN: Digest::SHA loaded ok (v5.88) CPAN: Compress::Zlib loaded ok (v2.064) Checksum for /usr/local/gcpan/.cpan/sources/authors/id/L/LU/LUNATIC/Text-ASCIITable-0.20.tar.gz ok CPAN: Archive::Tar loaded ok (v1.96) Text-ASCIITable-0.20/ Text-ASCIITable-0.20/ansi-example.pl Text-ASCIITable-0.20/Makefile.PL Text-ASCIITable-0.20/Changes Text-ASCIITable-0.20/t/ Text-ASCIITable-0.20/t/08_heading.t Text-ASCIITable-0.20/t/06_htmlstrip.t Text-ASCIITable-0.20/t/03_options.t Text-ASCIITable-0.20/t/13_utf8.t Text-ASCIITable-0.20/t/11_overloading.t Text-ASCIITable-0.20/t/10_pages.t Text-ASCIITable-0.20/t/12_chaining.t Text-ASCIITable-0.20/t/05_wordwrap.t Text-ASCIITable-0.20/t/09_ansistrip.t Text-ASCIITable-0.20/t/02_custom.t Text-ASCIITable-0.20/t/01_default.t Text-ASCIITable-0.20/t/04_multiline.t Text-ASCIITable-0.20/t/07_aligning.t Text-ASCIITable-0.20/README Text-ASCIITable-0.20/lib/ Text-ASCIITable-0.20/lib/Text/ Text-ASCIITable-0.20/lib/Text/ASCIITable.pm Text-ASCIITable-0.20/lib/Text/ASCIITable/ Text-ASCIITable-0.20/lib/Text/ASCIITable/Wrap.pm Text-ASCIITable-0.20/MANIFEST Text-ASCIITable-0.20/META.yml Text-ASCIITable-0.20/Build.PL CPAN: File::Temp loaded ok (v0.2304) # running Build.PL Created MYMETA.yml and MYMETA.json Creating new 'Build' script for 'Text-ASCIITable' version '0.20' Created MYMETA.yml and MYMETA.json Creating new 'Build' script for 'Text-ASCIITable' version '0.20' utf8 "\xE5" does not map to Unicode at /usr/lib64/perl5/vendor_perl/5.20.2/YAML.pm line 75, <$IN> chunk 1. * List::Util is part of the core perl install * Carp is part of the core perl install * perl is part of the core perl install * Encode is part of the core perl install * Generating ebuild for Text::ASCIITable * Ebuild generated for Text-ASCIITable >>> Creating Manifest for /usr/local/gcpan/perl-gcpan/Text-ASCIITable mdb@lxmdb ~ $ sudo emerge -v Text-ASCIITable Passwort: These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] perl-gcpan/Text-ASCIITable-0.20::gcpan 0 KiB Total: 1 package (1 reinstall), Size of downloads: 0 KiB >>> Verifying ebuild manifests >>> Emerging (1 of 1) perl-gcpan/Text-ASCIITable-0.20::gcpan >>> Failed to emerge perl-gcpan/Text-ASCIITable-0.20, Log file: >>> '/var/tmp/portage/perl-gcpan/Text-ASCIITable-0.20/temp/build.log' >>> Jobs: 0 of 1 complete, 1 failed Load avg: 0.30, 0.13, 0.07 * Package: perl-gcpan/Text-ASCIITable-0.20 * Repository: gcpan * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU * FEATURES: preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking Text-ASCIITable-0.20.tar.gz to /var/tmp/portage/perl-gcpan/Text-ASCIITable-0.20/work >>> Source unpacked in /var/tmp/portage/perl-gcpan/Text-ASCIITable-0.20/work >>> Preparing source in /var/tmp/portage/perl-gcpan/Text-ASCIITable-0.20/work/Text-ASCIITable-0.20 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/perl-gcpan/Text-ASCIITable-0.20/work/Text-ASCIITable-0.20 ... * Using Module::Build * QA Notice: The ebuild uses Module::Build but doesn't depend on it. * ERROR: perl-gcpan/Text-ASCIITable-0.20::gcpan failed (configure phase): * Add dev-perl/Module-Build to DEPEND! * * Call stack: * ebuild.sh, line 133: Called src_configure * environment, line 2489: Called perl-module_src_configure * environment, line 2031: Called die * The specific snippet of code: * die " Add dev-perl/Module-Build to DEPEND!"; * * If you need support, post the output of `emerge --info '=perl-gcpan/Text-ASCIITable-0.20::gcpan'`, * the complete build log and the output of `emerge -pqv '=perl-gcpan/Text-ASCIITable-0.20::gcpan'`. * The complete build log is located at '/var/tmp/portage/perl-gcpan/Text-ASCIITable-0.20/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/perl-gcpan/Text-ASCIITable-0.20/temp/environment'. * Working directory: '/var/tmp/portage/perl-gcpan/Text-ASCIITable-0.20/work/Text-ASCIITable-0.20' * S: '/var/tmp/portage/perl-gcpan/Text-ASCIITable-0.20/work/Text-ASCIITable-0.20' * Messages for package perl-gcpan/Text-ASCIITable-0.20: * QA Notice: The ebuild uses Module::Build but doesn't depend on it. * ERROR: perl-gcpan/Text-ASCIITable-0.20::gcpan failed (configure phase): * Add dev-perl/Module-Build to DEPEND! * * Call stack: * ebuild.sh, line 133: Called src_configure * environment, line 2489: Called perl-module_src_configure * environment, line 2031: Called die * The specific snippet of code: * die " Add dev-perl/Module-Build to DEPEND!"; * * If you need support, post the output of `emerge --info '=perl-gcpan/Text-ASCIITable-0.20::gcpan'`, * the complete build log and the output of `emerge -pqv '=perl-gcpan/Text-ASCIITable-0.20::gcpan'`. * The complete build log is located at '/var/tmp/portage/perl-gcpan/Text-ASCIITable-0.20/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/perl-gcpan/Text-ASCIITable-0.20/temp/environment'. * Working directory: '/var/tmp/portage/perl-gcpan/Text-ASCIITable-0.20/work/Text-ASCIITable-0.20' * S: '/var/tmp/portage/perl-gcpan/Text-ASCIITable-0.20/work/Text-ASCIITable-0.20' * * The following package has failed to build, install, or execute postinst: * * (perl-gcpan/Text-ASCIITable-0.20:0/0::gcpan, ebuild scheduled for merge), Log file: * '/var/tmp/portage/perl-gcpan/Text-ASCIITable-0.20/temp/build.log' *
mdb@lxmdb ~ $ grep DEPEND /usr/local/gcpan/perl-gcpan/Text-ASCIITable/Text-ASCIITable-0.20.ebuild DEPEND="dev-lang/perl" mdb@lxmdb ~ $ vi /usr/local/gcpan/perl-gcpan/Text-ASCIITable/Text-ASCIITable-0.20.ebuild mdb@lxmdb ~ $ grep DEPEND /usr/local/gcpan/perl-gcpan/Text-ASCIITable/Text-ASCIITable-0.20.ebuild DEPEND="dev-lang/perl dev-perl/Module-Build" mdb@lxmdb ~ $ ebuild /usr/local/gcpan/perl-gcpan/Text-ASCIITable/Text-ASCIITable-0.20.ebuild manifest >>> Creating Manifest for /usr/local/gcpan/perl-gcpan/Text-ASCIITable mdb@lxmdb ~ $ sudo emerge -v Text-ASCIITable These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] perl-gcpan/Text-ASCIITable-0.20::gcpan 0 KiB Total: 1 package (1 reinstall), Size of downloads: 0 KiB >>> Verifying ebuild manifests >>> Emerging (1 of 1) perl-gcpan/Text-ASCIITable-0.20::gcpan >>> Installing (1 of 1) perl-gcpan/Text-ASCIITable-0.20::gcpan >>> Jobs: 1 of 1 complete Load avg: 0.31, 0.17, 0.09 >>> Auto-cleaning packages... >>> No outdated packages were found on your system. * GNU info directory index is up-to-date. mdb@lxmdb ~ $
Version 0.16.5, subject: =app-portage/g-cpan-0.16.5 generated ebuilds need DEPEND+=dev-perl/Module-Build
*** Bug 583374 has been marked as a duplicate of this bug. ***
Please try v0.16.9
verified fixed, ok!