Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 465840 - app-portage/g-cpan-0.16.4-r1 fails with "Insufficient permissions!" as root
Summary: app-portage/g-cpan-0.16.4-r1 fails with "Insufficient permissions!" as root
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
: 471076 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-04-13 22:26 UTC by William Throwe
Modified: 2014-07-17 13:30 UTC (History)
1 user (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 William Throwe 2013-04-13 22:26:57 UTC
# g-cpan -g POE::Component::IRC
...Lots of output...
---- Unsatisfied dependencies detected during ----
----         RCAPUTO/POE-1.354.tar.gz         ----
    POE::Test::Loops [build_requires]
  Ignoring dependencies on modules POE::Test::Loops
  RCAPUTO/POE-1.354.tar.gz
  [configure_requires] -- NOT OK
Insufficient permissions! at /usr/lib64/perl5/vendor_perl/5.16.3/Gentoo/CPAN.pm line 185.


This was run as root.


Looks like bug #256912, but that was fixed in 2010.


$ emerge --info app-portage/g-cpan
Portage 2.2.0_alpha173 (default/linux/amd64/13.0, gcc-4.7.2, glibc-2.17, 3.2.21-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.2.21-gentoo-x86_64-Intel-R-_Core-TM-2_CPU_T5500_@_1.66GHz-with-gentoo-2.2
KiB Mem:     2051124 total,   1036892 free
KiB Swap:    2048252 total,   1836220 free
Timestamp of tree: Sat, 13 Apr 2013 06:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.2-r1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.8 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo crossdev wthrowe java-overlay g-cpan
Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--ask --quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs clean-logs compress-build-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-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.netnitco.net http://mirror.mcs.anl.gov/pub/gentoo/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://mirror.datapipe.net/gentoo ftp://mirror.datapipe.net/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/crossdev /var/lib/layman/wthrowe /var/lib/layman/java-overlay /var/lib/g-cpan"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 berkdb bindist bzip2 cairo caps cdr cli cracklib crypt cxx dbus dri dvd dvdr emacs fortran gd gdbm gimp gpm gtk iconv jpeg latex mmx modules mudflap multilib ncurses nptl opengl openmp pam pcre png readline session smp sse sse2 ssl ssse3 system-sqlite tcpd truetype unicode xscreensaver zlib" ABI_X86="64" 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="authn_core authz_core socache_shmcb unixd 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="kexi words flow plan sheets stage tables krita karbon braindump" 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="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" SANE_BACKENDS="epson2" USERLAND="GNU" VIDEO_CARDS="radeon" 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, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

app-portage/g-cpan-0.16.4-r1 was built with the following:
USE="(multilib)" ABI_X86="64"
Comment 1 William Throwe 2013-04-14 22:55:17 UTC
Looks like this was due to a missing /etc/make.globals symlink.
Comment 2 Juergen Rose 2013-05-08 08:23:59 UTC
I have the same issue, 'g-cpan -u' fails with:
...
Tk-TIFF-0.11/t/test-none.tif
---- Unsatisfied dependencies detected during ----
----        SREZIC/Tk-TIFF-0.11.tar.gz        ----
    Devel::CheckLib [build_requires]
  Ignoring dependencies on modules Devel::CheckLib
  SREZIC/Tk-TIFF-0.11.tar.gz
  [configure_requires] -- NOT OK
Insufficient permissions! at /usr/lib64/perl5/vendor_perl/5.16.3/Gentoo/CPAN.pm line 185.
root@impala:/root(11)# qlist -Iv g-cpan
app-portage/g-cpan-0.16.4-r1

root@impala:/root(12)# ll /etc/make.globals
/bin/ls: cannot access /etc/make.globals: No such file or directory

What is /etc/make.globals? I don't have it on any system.
Comment 3 William Throwe 2013-05-08 15:02:50 UTC
(In reply to comment #2)
> What is /etc/make.globals? I don't have it on any system.

It's a symlink to /usr/share/portage/config/make.globals .

I suspect its use is discouraged these days since almost everything works fine without it, but a few things (like g-cpan) still use it.
Comment 4 Juergen Rose 2013-05-09 15:32:24 UTC
I thought, that the files under /usr/share/portage are source automtically. What should I doo, create this link manually? Any side effects are to expected?
Comment 5 Zac Medico gentoo-dev 2013-05-09 15:39:24 UTC
(In reply to comment #4)
> I thought, that the files under /usr/share/portage are source automtically.
> What should I doo, create this link manually? Any side effects are to
> expected?

You may want to create it manually, at least until bug 432992 is fixed.
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2013-05-23 14:38:39 UTC
*** Bug 471076 has been marked as a duplicate of this bug. ***
Comment 7 Juergen Rose 2013-05-23 17:02:58 UTC
But for Bug 471076 it does not help to create the symlink:

Tk-TIFF-0.11/t/tk-tiff.t
Tk-TIFF-0.11/t/test-none.tif
---- Unsatisfied dependencies detected during ----
----        SREZIC/Tk-TIFF-0.11.tar.gz        ----
    Devel::CheckLib [build_requires]
  Ignoring dependencies on modules Devel::CheckLib
  SREZIC/Tk-TIFF-0.11.tar.gz
  [configure_requires] -- NOT OK
Insufficient permissions! at /usr/lib64/perl5/vendor_perl/5.16.3/Gentoo/CPAN.pm line 185.
[1]+  Done                    compare_conf_files
root@leopard:/root(3)# ll /etc/make.globals 
lrwxrwxrwx 1 root root 38 May 23 18:56 /etc/make.globals -> /usr/share/portage/config/make.globals
Comment 8 Juergen Rose 2013-05-23 17:11:59 UTC
Strange! 'g-cpan -u' fails with:

root@leopard:/usr/src(33)# g-cpan -u
 * OVERLAY: /var/lib/layman/science/perl-gcpan
 * Couldn't open folder /var/lib/layman/science/perl-gcpan: No such file or directory
...
 * OVERLAY: /var/lib/cpan/perl-gcpan
 * OVERLAY: /var/lib/g-octave/perl-gcpan
 * Couldn't open folder /var/lib/g-octave/perl-gcpan: No such file or directory
-CPAN: Storable loaded ok (v2.39)
Reading '/tmp/.cpan/Metadata'
  Database was generated on Thu, 23 May 2013 15:53:02 GMT
|CPAN: Digest::SHA loaded ok (v5.82)
CPAN: Compress::Zlib loaded ok (v2.06)
Checksum for /tmp/.cpan/sources/authors/id/S/SC/SCHWIGON/Class-MethodMaker-2.18.tar.gz ok
CPAN: Archive::Tar loaded ok (v1.90)
Class-MethodMaker-2.18/
...
Cv-0.28/tools/testdist.pl
Can't locate Test/Exception.pm in @INC (@INC contains: lib inc /root/Txt/Perl /etc/perl /usr/local/lib64/perl5/5.16.3/x86_64-linux-thread-multi /usr/local/lib64/perl5/5.16.3 /usr/lib64/perl5/vendor_perl/5.16.3/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.16.3 /usr/local/lib64/perl5 /usr/lib64/perl5/vendor_perl /usr/lib64/perl5/5.16.3/x86_64-linux-thread-multi /usr/lib64/perl5/5.16.3 .) at (eval 13) line 1.
BEGIN failed--compilation aborted at (eval 13) line 1.

Checking if your kit is complete...
Looks good
MakeMaker FATAL: prerequisites not found.
    Test::Exception not installed
    Test::Number::Delta not installed

Please install these modules first and rerun 'perl Makefile.PL'.
...
 * Cv already up to date
/Checksum for /tmp/.cpan/sources/authors/id/S/SR/SREZIC/Tk-TIFF-0.11.tar.gz ok
Tk-TIFF-0.11/
...
Tk-TIFF-0.11/t/test-none.tif
---- Unsatisfied dependencies detected during ----
----        SREZIC/Tk-TIFF-0.11.tar.gz        ----
    Devel::CheckLib [build_requires]
  Ignoring dependencies on modules Devel::CheckLib
  SREZIC/Tk-TIFF-0.11.tar.gz
  [configure_requires] -- NOT OK
Insufficient permissions! at /usr/lib64/perl5/vendor_perl/5.16.3/Gentoo/CPAN.pm line 185.


The following 'g-cpan -i Tk-TIFF' works:

root@leopard:/usr/src(34)# g-cpan -i Tk-TIFF
-CPAN: Storable loaded ok (v2.39)
Reading '/tmp/.cpan/Metadata'
  Database was generated on Thu, 23 May 2013 15:53:02 GMT
 * Ebuild already exists for Tk-TIFF (perl-gcpan/Tk-TIFF)
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) perl-gcpan/Tk-TIFF-0.10 from x-cpan
 * Tk-TIFF-0.10.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                   [ ok ]
>>> Unpacking source...
...
>>> Installing (1 of 1) perl-gcpan/Tk-TIFF-0.10
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.


The next 'g-cpan -u Tk-TIFF' fails again:

root@leopard:/usr/src(35)# g-cpan -u Tk-TIFF
-CPAN: Storable loaded ok (v2.39)
Reading '/tmp/.cpan/Metadata'
  Database was generated on Thu, 23 May 2013 15:53:02 GMT
|CPAN: Digest::SHA loaded ok (v5.82)
CPAN: Compress::Zlib loaded ok (v2.06)
Checksum for /tmp/.cpan/sources/authors/id/S/SR/SREZIC/Tk-TIFF-0.11.tar.gz ok
CPAN: Archive::Tar loaded ok (v1.90)
Tk-TIFF-0.11/
Tk-TIFF-0.11/t/
Tk-TIFF-0.11/imgTIFF.c
Tk-TIFF-0.11/Changes
Tk-TIFF-0.11/MANIFEST
Tk-TIFF-0.11/TIFF.xs
Tk-TIFF-0.11/TIFF.pm
Tk-TIFF-0.11/Makefile.PL
Tk-TIFF-0.11/README
Tk-TIFF-0.11/META.yml
Tk-TIFF-0.11/META.json
Tk-TIFF-0.11/t/test-packbits.tif
Tk-TIFF-0.11/t/test-2channel.tif
Tk-TIFF-0.11/t/test-lzw.tif
Tk-TIFF-0.11/t/test-float.tif
Tk-TIFF-0.11/t/tk-tiff.t
Tk-TIFF-0.11/t/test-none.tif
CPAN: File::Temp loaded ok (v0.22)
CPAN: Parse::CPAN::Meta loaded ok (v1.4404)
CPAN: CPAN::Meta loaded ok (v2.120921)
CPAN: Module::CoreList loaded ok (v2.84)
---- Unsatisfied dependencies detected during ----
----        SREZIC/Tk-TIFF-0.11.tar.gz        ----
    Devel::CheckLib [build_requires]
  Ignoring dependencies on modules Devel::CheckLib
  SREZIC/Tk-TIFF-0.11.tar.gz
  [configure_requires] -- NOT OK
Insufficient permissions! at /usr/lib64/perl5/vendor_perl/5.16.3/Gentoo/CPAN.pm line 185.
Comment 9 Juergen Rose 2013-06-19 14:12:01 UTC
Any news?
Comment 10 Juergen Rose 2014-04-17 07:12:32 UTC
(In reply to Juergen Rose from comment #9)
> Any news?

Almost one year later I still have the same issue. Do we not have any possibility to fix g-cpan?
Comment 11 Juergen Rose 2014-07-17 13:25:49 UTC
(In reply to Juergen Rose from comment #10)
> (In reply to Juergen Rose from comment #9)
> > Any news?
> 
> Almost one year later I still have the same issue. Do we not have any
> possibility to fix g-cpan?

And now the same error with g-cpan-0.16.5. 'g-cpan  -i Math-GSL' fails with:

...
Math-GSL-0.32/xt
Math-GSL-0.32/xt/01-portability-files.t
CPAN: File::Temp loaded ok (v0.2304)
CPAN: Parse::CPAN::Meta loaded ok (v1.4409)
CPAN: CPAN::Meta loaded ok (v2.132510)
CPAN: Module::CoreList loaded ok (v3.03)
Use of uninitialized value in pattern match (m//) at /usr/lib64/perl5/5.18.2/CPAN/Distribution.pm line 2685.
---- Unsatisfied dependencies detected during ----
----      AMBS/Math/Math-GSL-0.32.tar.gz      ----
    PkgConfig [build_requires]
  Ignoring dependencies on modules PkgConfig
  AMBS/Math/Math-GSL-0.32.tar.gz
  [configure_requires] -- NOT OK
Insufficient permissions! at /usr/lib64/perl5/vendor_perl/5.18.2/Gentoo/CPAN.pm line 185.
Comment 12 Juergen Rose 2014-07-17 13:28:17 UTC
(In reply to Juergen Rose from comment #11)
> (In reply to Juergen Rose from comment #10)
> > (In reply to Juergen Rose from comment #9)
> > > Any news?
> > 
> > Almost one year later I still have the same issue. Do we not have any
> > possibility to fix g-cpan?
> 
> And now the same error with g-cpan-0.16.5. 'g-cpan  -i Math-GSL' fails with:
> 
> ...
> Math-GSL-0.32/xt
> Math-GSL-0.32/xt/01-portability-files.t
> CPAN: File::Temp loaded ok (v0.2304)
> CPAN: Parse::CPAN::Meta loaded ok (v1.4409)
> CPAN: CPAN::Meta loaded ok (v2.132510)
> CPAN: Module::CoreList loaded ok (v3.03)
> Use of uninitialized value in pattern match (m//) at
> /usr/lib64/perl5/5.18.2/CPAN/Distribution.pm line 2685.
> ---- Unsatisfied dependencies detected during ----
> ----      AMBS/Math/Math-GSL-0.32.tar.gz      ----
>     PkgConfig [build_requires]
>   Ignoring dependencies on modules PkgConfig
>   AMBS/Math/Math-GSL-0.32.tar.gz
>   [configure_requires] -- NOT OK
> Insufficient permissions! at
> /usr/lib64/perl5/vendor_perl/5.18.2/Gentoo/CPAN.pm line 185.

And the symlink is set:

root@caiman:/var/lib/cpan/perl-gcpan(98)# ll /etc/make.globals 
lrwxrwxrwx 1 root root 38 Jun 19  2013 /etc/make.globals -> /usr/share/portage/config/make.globals

Please reopen this bug.
Comment 13 Juergen Rose 2014-07-17 13:30:23 UTC
And the same with Tk-TIFF:

root@caiman:/var/lib/cpan/perl-gcpan(100)# g-cpan  -i Tk-TIFF
Use of uninitialized value $_[1] in read at /usr/lib64/perl5/5.18.2/x86_64-linux-thread-multi/IO/Handle.pm line 463.
Use of uninitialized value $_[1] in read at /usr/lib64/perl5/5.18.2/x86_64-linux-thread-multi/IO/Handle.pm line 463.
...
CPAN: Compress::Zlib loaded ok (v2.06)
Checksum for /tmp/.cpan/sources/authors/id/S/SR/SREZIC/Tk-TIFF-0.11.tar.gz ok
CPAN: Archive::Tar loaded ok (v1.92)
Tk-TIFF-0.11/
Tk-TIFF-0.11/t/
Tk-TIFF-0.11/imgTIFF.c
Tk-TIFF-0.11/Changes
Tk-TIFF-0.11/MANIFEST
Tk-TIFF-0.11/TIFF.xs
Tk-TIFF-0.11/TIFF.pm
Tk-TIFF-0.11/Makefile.PL
Tk-TIFF-0.11/README
Tk-TIFF-0.11/META.yml
Tk-TIFF-0.11/META.json
Tk-TIFF-0.11/t/test-packbits.tif
Tk-TIFF-0.11/t/test-2channel.tif
Tk-TIFF-0.11/t/test-lzw.tif
Tk-TIFF-0.11/t/test-float.tif
Tk-TIFF-0.11/t/tk-tiff.t
Tk-TIFF-0.11/t/test-none.tif
CPAN: File::Temp loaded ok (v0.2304)
CPAN: Parse::CPAN::Meta loaded ok (v1.4409)
CPAN: CPAN::Meta loaded ok (v2.132510)
CPAN: Module::CoreList loaded ok (v3.03)
---- Unsatisfied dependencies detected during ----
----        SREZIC/Tk-TIFF-0.11.tar.gz        ----
    Devel::CheckLib [build_requires]
  Ignoring dependencies on modules Devel::CheckLib
  SREZIC/Tk-TIFF-0.11.tar.gz
  [configure_requires] -- NOT OK
Insufficient permissions! at /usr/lib64/perl5/vendor_perl/5.18.2/Gentoo/CPAN.pm line 185.