Gentoo Archives: gentoo-user

From: Alexander Kapshuk <alexander.kapshuk@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Python and man problems
Date: Mon, 04 Aug 2014 17:09:42
Message-Id: 53DFBE45.1010706@gmail.com
In Reply to: [gentoo-user] Python and man problems by Roger Cahn
1 On 08/04/2014 05:46 PM, Roger Cahn wrote:
2 >
3 > Hello all,
4 >
5 > I encounter some problems with python compiling and man errors.
6 >
7 > 1- Python :
8 >
9 > I can't emerge some python packages (ie pyorbit, libmpeg2,
10 > libbonobo-python, etc...).
11 > Even the installed python packages can't emerge anymore.
12 > Here is the error message for libgnome-python-2.28.1-r1
13 > (USE="-examples" PYTHON_TARGETS="-python2_7%")
14 >
15 > *ERROR: dev-python/libgnome-python-2.28.1-r1::gentoo failed (configure
16 > phase):
17 > * No supported Python implementation in PYTHON_TARGETS.
18 > *
19 > * Call stack:
20 > * ebuild.sh, line 93: Called src_configure
21 > * environment, line 4118: Called gnome-python-common-r1_src_configure
22 > * environment, line 2078: Called python_parallel_foreach_impl
23 > 'gnome2_src_configure' '--disable-allbindings' '--enable-gnome'
24 > '--enable-gnomeui'
25 > * environment, line 3947: Called _python_obtain_impls
26 > * environment, line 702: Called _python_validate_useflags
27 > * environment, line 758: Called die
28 > * The specific snippet of code:
29 > * die "No supported Python implementation in PYTHON_TARGETS."
30 > *
31 >
32 > Is it a locale problem ?
33 >
34 > Here is my /etc/env.d/02locale
35 >
36 > LANG=fr_FR.utf8
37 > LC_ALL=""
38 >
39 > When i run locale, i get :
40 >
41 > $ locale
42 > LANG=fr_FR.UTF-8
43 > LC_CTYPE="fr_FR.UTF-8"
44 > LC_NUMERIC="fr_FR.UTF-8"
45 > LC_TIME="fr_FR.UTF-8"
46 > LC_COLLATE="fr_FR.UTF-8"
47 > LC_MONETARY="fr_FR.UTF-8"
48 > LC_MESSAGES="fr_FR.UTF-8"
49 > LC_PAPER="fr_FR.UTF-8"
50 > LC_NAME="fr_FR.UTF-8"
51 > LC_ADDRESS="fr_FR.UTF-8"
52 > LC_TELEPHONE="fr_FR.UTF-8"
53 > LC_MEASUREMENT="fr_FR.UTF-8"
54 > LC_IDENTIFICATION="fr_FR.UTF-8"
55 > LC_ALL=
56 >
57 > 2- man does not work anymore ; i get the error message :
58 >
59 > ie : $man emerge (sorry, it's in french)
60 >
61 > *man emerge
62 > sh: most : commande introuvable
63 > Erreur pendant l'ex�cution du formatage ou de l'affichage.
64 > Le syst�me retourne pour (cd "/usr/share/man" && (echo ".ll 11.1i";
65 > echo ".nr LL 11.1i"; echo ".pl 1100i"; /bin/bzip2 -c -d
66 > '/usr/share/man/man1/emerge.1.bz2'; echo ".\\\""; echo ".pl
67 > \n(nlu+10") | /usr/bin/gtbl | /usr/bin/nroff -mandoc | most) l'erreur 127.
68 > Il n'y a pas de page de manuel pour emerge.
69 > *
70 > I recompiled the sys-apps/man package with success but the error is
71 > still there.
72 >
73 > My configuration :
74 >
75 > $emerge --info
76 >
77 > Portage 2.2.8-r1 (default/linux/amd64/13.0/desktop, gcc-4.7.3,
78 > glibc-2.19-r1, 3.14.14-gentoo x86_64)
79 > =================================================================
80 > System uname:
81 > Linux-3.14.14-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E6850_@_3.00GHz-with-gentoo-2.2
82 > KiB Mem: 4051020 total, 1896448 free
83 > KiB Swap: 2048280 total, 2048280 free
84 > Timestamp of tree: Sun, 03 Aug 2014 08:15:01 +0000
85 > ld GNU ld (GNU Binutils) 2.23.2
86 > app-shells/bash: 4.2_p45
87 > dev-java/java-config: 2.2.0
88 > dev-lang/python: 2.7.7, 3.3.5-r1
89 > dev-util/cmake: 2.8.12.2-r1
90 > dev-util/pkgconfig: 0.28-r1
91 > sys-apps/baselayout: 2.2
92 > sys-apps/openrc: 0.12.4
93 > sys-apps/sandbox: 2.6-r1
94 > sys-devel/autoconf: 2.13, 2.69
95 > sys-devel/automake: 1.10.3, 1.11.6, 1.12.6, 1.13.4
96 > sys-devel/binutils: 2.23.2
97 > sys-devel/gcc: 4.7.3-r1
98 > sys-devel/gcc-config: 1.7.3
99 > sys-devel/libtool: 2.4.2-r1
100 > sys-devel/make: 3.82-r4
101 > sys-kernel/linux-headers: 3.13 (virtual/os-headers)
102 > sys-libs/glibc: 2.19-r1
103 > Repositories: gentoo
104 > ACCEPT_KEYWORDS="amd64"
105 > ACCEPT_LICENSE="* -@EULA"
106 > CBUILD="x86_64-pc-linux-gnu"
107 > CFLAGS="-O2 -march=native -pipe"
108 > CHOST="x86_64-pc-linux-gnu"
109 > CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
110 > CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d
111 > /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release
112 > /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
113 > CXXFLAGS="-O2 -march=native -pipe"
114 > DISTDIR="/usr/portage/distfiles"
115 > EMERGE_DEFAULT_OPTS="--autounmask=n"
116 > FCFLAGS="-O2 -pipe"
117 > FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles
118 > merge-sync news parallel-fetch preserve-libs protect-owned sandbox
119 > sfperms strict unknown-features-warn unmerge-logs unmerge-orphans
120 > userfetch userpriv usersandbox usersync"
121 > FFLAGS="-O2 -pipe"
122 > GENTOO_MIRRORS="http://distfiles.gentoo.org"
123 > LANG="fr_FR.utf8"
124 > LC_ALL=""
125 > LDFLAGS="-Wl,-O1 -Wl,--as-needed"
126 > MAKEOPTS="-j2"
127 > PKGDIR="/usr/portage/packages"
128 > PORTAGE_CONFIGROOT="/"
129 > PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
130 > --omit-dir-times --compress --force --whole-file --delete --stats
131 > --human-readable --timeout=180 --exclude=/distfiles --exclude=/local
132 > --exclude=/packages"
133 > PORTAGE_TMPDIR="/var/tmp"
134 > PORTDIR="/usr/portage"
135 > PORTDIR_OVERLAY=""
136 > SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
137 > USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2
138 > cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd
139 > dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm gtk
140 > iconv ipv6 jpeg lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg
141 > multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png
142 > policykit ppds qt3support qt4 readline sdl session spell sse sse2 ssl
143 > startup-notification svg tcpd tiff truetype udev udisks unicode upower
144 > usb vorbis wxwidgets x264 xcb xml xv xvid zlib" ABI_X86="64"
145 > ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci
146 > emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0
147 > intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci"
148 > APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions
149 > alias auth_basic authn_alias authn_anon authn_dbm authn_default
150 > authn_file authz_dbm authz_default authz_groupfile authz_host
151 > authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock
152 > deflate dir disk_cache env expires ext_filter file_cache filter
153 > headers include info log_config logio mem_cache mime mime_magic
154 > negotiation rewrite setenvif speling status unique_id userdir
155 > usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets
156 > stage tables krita karbon braindump author" CAMERAS="canon ptp2"
157 > COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog"
158 > ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18
159 > garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver
160 > oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip
161 > tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux"
162 > LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb
163 > ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console
164 > presenter-minimizer" LINGUAS="fr" OFFICE_IMPLEMENTATION="libreoffice"
165 > PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7"
166 > PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20"
167 > USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock
168 > lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee
169 > tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
170 > Unset: CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND,
171 > PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS,
172 > USE_PYTHON
173 >
174 >
175 > $eselect python list
176 >
177 > Available Python interpreters:
178 > [1] python2.7 *
179 > [2] python3.3
180 >
181 > Thank you for your help.
182 >
183 > Cheers,
184 > Roger
185 >
186 >
187 >
188 >
189 >
190 >
191 >
192 >
193 >
194 >
195 >
196 As far as your first problem goes, libgnome-python requires python2_7:
197 grep COMPAT libgnome-python-2.28.1-r1.ebuild
198 PYTHON_COMPAT=( python2_7 )
199
200 The output you supplied indicates that python2_7 is disabled for this
201 particular package, i.e. 'PYTHON_TARGETS="-python2_7%".
202
203 The default base profile on my stytem has:
204 grep ^PYTHON_TARGETS /usr/portage/profiles/base/make.defaults
205 PYTHON_TARGETS="python2_7 python3_3"
206
207 emerge --info output on your system seems to be the same as well.
208
209 Looks like on your system, you have python2_7 disabled somewhere. Do you
210 have PYTHON_TARGETS redefined in /etc/portage/make.conf?
211
212 For the package in question you need to have python2_7 enabled.
213
214 As for your second problem, as has already been pointed out, you seem to
215 be using a PAGER that is not currently found on your system.
216 Here's the man debugging output I get on my system:
217 man -d emerge 2>&1|sed '/bzip2/,$!d'
218 (cd "/usr/share/man" && (echo ".pl 11i"; /bin/bzip2 -c -d
219 '/usr/share/man/man1/emerge.1.bz2') | /usr/bin/gtbl | /usr/bin/nroff
220 -mandoc | /usr/bin/less)
221
222 Hope this helps.

Replies

Subject Author
Re: [gentoo-user] Python and man problems_solved Roger Cahn <rcahn@×××××××××××××.fr>