Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
package.use non letto?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
Belinde
n00b
n00b


Joined: 23 Oct 2006
Posts: 4

PostPosted: Mon Oct 23, 2006 12:02 pm    Post subject: package.use non letto? Reply with quote

problema che non riesco a capire: sembrerebbe che /etc/portage/package.use non venga letto.
Per vari motivi vorrei provare a compilare mysql staticamente, quindi ho modificato in questa maniera package.use:
Code:

reds belinde # cat /etc/portage/package.use
app-office/openoffice-*         -gtk -gtk+
games-misc/fortune-mod-it-*     offensive
media-gfx/gimp-*                svg tiff
dev-db/mysql-*                  static


Ciononostante un emerge --info non mi da "static":
Code:

reds belinde # emerge --info mysql
Portage 2.1.1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.4-r3, 2.6.16-gentoo-r12 i686)
=================================================================
                        System Settings
=================================================================
System uname: 2.6.16-gentoo-r12 i686 AMD Athlon(tm) XP
Gentoo Base System version 1.12.5
Last Sync: Thu, 19 Oct 2006 18:30:01 +0000
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ ftp://ftp.solnet.ch/mirror/Gentoo http://gentoo.mirror.solnet.ch "
LDFLAGS="-Wl,--as-needed"
LINGUAS="it"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm arts berkdb bitmap-fonts cdr cli cracklib crypt cups dlloader dri dvd eds elibc_glibc emboss encode esd foomaticdb fortran gdbm gif gpm gstreamer gtk gtk+ gtk2 hal imap imlib input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog jpeg kde kernel_linux libg++ libwww linguas_it mad maildir mikmod mono motif mp3 mpeg musicbrainz mysql ncurses nls nptl nptlonly offensive ogg opengl oss pam pcre perl png ppds pppd python qt qt3 qt4 quicktime readline reflection sasl sdl server session spell spl ssl tcpd tetex truetype truetype-fonts type1-fonts udev userland_GNU video_cards_sis vorbis xml xmms xorg xv zip zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

=================================================================
                        Package Settings
=================================================================
dev-db/mysql-5.0.26 was built with the following:
CFLAGS="-DHAVE_ERRNO_AS_DEFINE=1 -O3 -fno-exceptions -fno-strict-aliasing -fomit-frame-pointer -march=athlon-xp -pipe"
CXXFLAGS="-DHAVE_ERRNO_AS_DEFINE=1 -O3 -felide-constructors -fno-exceptions -fno-implicit-templates -fno-rtti -fno-strict-aliasing -fomit-frame-pointer -march=athlon-xp -pipe"


Provo ad ignorare la cosa confidando in non so neanch'io cosa, e poi faccio la controprova con equery:
Code:

reds belinde # equery uses mysql
[ Searching for packages matching mysql... ]
[ Colour Code : set unset ]
[ Legend        : Left column  (U) - USE flags from make.conf                     ]
[                  : Right column (I) - USE flags packages was installed with ]
[ Found these USE variables for dev-db/mysql-5.0.26 ]
 U I
 + + berkdb      : Adds support for sys-libs/db (Berkeley DB for MySQL)
 - - big-tables  : Make tables contain up to 1.844E+19 rows
 - - cluster     : Add support for NDB clustering.
 - - debug       : Tells configure and the makefiles to build for debugging. Effects vary across packages, but generally it will at least add -g to CFLAGS. Remember to set FEATURES=nostrip too
 - - embedded    : Build embedded server (libmysqld)
 - - extraengine : Add support for alternative storage engines.
 - - latin1      : Use LATIN1 encoding instead of UTF8.
 - - max-idx-128 : Raise the max index per table limit from 64 to 128
 - - minimal     : Install a very minimal build (disables, for example, plugins, fonts, most drivers, non-critical features)
 + + perl        : Adds support/bindings for the Perl language.
 - - selinux     : !!internal use only!! Security Enhanced Linux support, this must be set by the selinux profile or breakage will occur
 - - srvdir      : Add support for GLEP 20
 + + ssl         : Adds support for Secure Socket Layer connections
 - - static      : !!do not set this during bootstrap!! Causes binaries to be statically linked instead of dynamically


La domanda amletica a questo punto è: COME MAI? Tra l'altro ho fatto prove anche con altre useflags, sempre con lo stesso risultato... Ho controllato i permessi del files:
Code:

reds belinde # ls -lh /etc/portage/
total 12K
drwxr-xr-x 2 root root  80 Oct 18 23:35 bin
-rw-r--r-- 1 root root 294 Oct 23 13:25 package.keywords
-rw-r--r-- 1 root root  67 Aug 30 14:27 package.mask
-rw-r--r-- 1 root root 126 Oct 23 13:53 package.use
drwxr-xr-x 2 root root  80 Oct 18 23:35 postsync.d

ma mi sembrano corretti Any idea?
Back to top
View user's profile Send private message
MeMyselfAndI
l33t
l33t


Joined: 15 Nov 2005
Posts: 784
Location: Between the monitor and the chair

PostPosted: Mon Oct 23, 2006 12:13 pm    Post subject: Reply with quote

non mi pare si possa usare quella forma in package.use, prova a mettere solo categoria/pacchetto
+/- USE senza nient'altro
Back to top
View user's profile Send private message
Belinde
n00b
n00b


Joined: 23 Oct 2006
Posts: 4

PostPosted: Mon Oct 23, 2006 12:21 pm    Post subject: Reply with quote

Fatto. Non si può usare il "+" (emerge --info mi segnala l'errore), ciononostante "static" non viene letta; ora il mio package.use è:
Code:
reds belinde # cat /etc/portage/package.use
app-office/openoffice           -gtk -gtk+
games-misc/fortune-mod-it       offensive
media-gfx/gimp                  svg tiff
dev-db/mysql                    static

e tant'è non va.


EDIT grosso come una casa:

ho provato a passare USE come variabile... ecco il bizzarro risultato:
Code:
reds belinde # USE="static" emerge --info mysql
Portage 2.1.1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.4-r3, 2.6.16-gentoo-r12 i686)
=================================================================
                        System Settings
=================================================================
System uname: 2.6.16-gentoo-r12 i686 AMD Athlon(tm) XP
Gentoo Base System version 1.12.5
Last Sync: Thu, 19 Oct 2006 18:30:01 +0000
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ ftp://ftp.solnet.ch/mirror/Gentoo http://gentoo.mirror.solnet.ch "
LDFLAGS="-Wl,--as-needed"
LINGUAS="it"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm arts berkdb bitmap-fonts cdr cli cracklib crypt cups dlloader dri dvd eds elibc_glibc emboss encode esd foomaticdb fortran gdbm gif gpm gstreamer gtk gtk+ gtk2 hal imap imlib input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog jpeg kde kernel_linux libg++ libwww linguas_it mad maildir mikmod mono motif mp3 mpeg musicbrainz mysql ncurses nls nptl nptlonly offensive ogg opengl oss pam pcre perl png ppds pppd python qt qt3 qt4 quicktime readline reflection sasl sdl server session spell spl ssl static tcpd tetex truetype truetype-fonts type1-fonts udev userland_GNU video_cards_sis vorbis xml xmms xorg xv zip zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

=================================================================
                        Package Settings
=================================================================
dev-db/mysql-5.0.26 was built with the following:
CFLAGS="-DHAVE_ERRNO_AS_DEFINE=1 -O3 -fno-exceptions -fno-strict-aliasing -fomit-frame-pointer -march=athlon-xp -pipe"
CXXFLAGS="-DHAVE_ERRNO_AS_DEFINE=1 -O3 -felide-constructors -fno-exceptions -fno-implicit-templates -fno-rtti -fno-strict-aliasing -fomit-frame-pointer -march=athlon-xp -pipe"
USE="berkdb perl ssl"



Perchè compare nella mega USE generica ma non tra quelle abilitate per il pacchetto? Boh?
Back to top
View user's profile Send private message
Kernel78
Moderator
Moderator


Joined: 24 Jun 2005
Posts: 3654

PostPosted: Mon Oct 23, 2006 12:48 pm    Post subject: Reply with quote

Potresti postare l'output di
Code:
emerge -pv mysql

_________________
Le tre grandi virtù di un programmatore: pigrizia, impazienza e arroganza. (Larry Wall).
Prima di postare un file togli i commenti con
Code:
grep -vE '(^[[:space:]]*($|(#|!|;|//)))'
Back to top
View user's profile Send private message
Onip
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2912
Location: Parma (Italy)

PostPosted: Mon Oct 23, 2006 1:00 pm    Post subject: Reply with quote

è strano, perchè sembra tutto corretto. L'unica cosa che mi viene in mente è di provare a sostituire i tab che hai messo con degli spazi, ma non penso che centri molto
_________________
Linux Registered User n. 373835

Titus Lucretius Carus, De Rerum Natura - Tantum religio potuit suadere malorum
Back to top
View user's profile Send private message
Belinde
n00b
n00b


Joined: 23 Oct 2006
Posts: 4

PostPosted: Mon Oct 23, 2006 1:25 pm    Post subject: Reply with quote

Kernel78 wrote:
Potresti postare l'output di
Code:
emerge -pv mysql


Detto, fatto:
Code:
reds belinde # emerge -pv mysql

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-db/mysql-5.0.26  USE="berkdb perl ssl static* -big-tables -cluster -debug -embedded -extraengine -latin1 -max-idx-128 -minimal (-selinux) -srvdir" 0 kB

Total size of downloads: 0 kB


Static è magicamente comparso... ma perchè? Ho riprovato equery:
Code:
reds belinde # equery uses mysql
[ Searching for packages matching mysql... ]
[ Colour Code : set unset ]
[ Legend        : Left column  (U) - USE flags from make.conf                     ]
[                  : Right column (I) - USE flags packages was installed with ]
[ Found these USE variables for dev-db/mysql-5.0.26 ]
 U I
 + + berkdb      : Adds support for sys-libs/db (Berkeley DB for MySQL)
 - - big-tables  : Make tables contain up to 1.844E+19 rows
 - - cluster     : Add support for NDB clustering.
 - - debug       : Tells configure and the makefiles to build for debugging. Effects vary across packages, but generally it will at least add -g to CFLAGS. Remember to set FEATURES=nostrip too
 - - embedded    : Build embedded server (libmysqld)
 - - extraengine : Add support for alternative storage engines.
 - - latin1      : Use LATIN1 encoding instead of UTF8.
 - - max-idx-128 : Raise the max index per table limit from 64 to 128
 - - minimal     : Install a very minimal build (disables, for example, plugins, fonts, most drivers, non-critical features)
 + + perl        : Adds support/bindings for the Perl language.
 - - selinux     : !!internal use only!! Security Enhanced Linux support, this must be set by the selinux profile or breakage will occur
 - - srvdir      : Add support for GLEP 20
 + + ssl         : Adds support for Secure Socket Layer connections
 + - static      : !!do not set this during bootstrap!! Causes binaries to be statically linked instead of dynamically


e anche qui static compare. Ma se riprovo emerge --info nella variabile USE non c'è!
Code:
reds belinde # emerge --info mysql
Portage 2.1.1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.4-r3, 2.6.16-gentoo-r12 i686)
=================================================================
                        System Settings
=================================================================
[[  S N I P ]]

USE="x86 X alsa apache2 apm arts berkdb bitmap-fonts cdr cli cracklib crypt cups dlloader dri dvd eds elibc_glibc emboss encode esd foomaticdb fortran gdbm gif gpm gstreamer gtk gtk+ gtk2 hal imap imlib input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog jpeg kde kernel_linux libg++ libwww linguas_it mad maildir mikmod mono motif mp3 mpeg musicbrainz mysql ncurses nls nptl nptlonly offensive ogg opengl oss pam pcre perl png ppds pppd python qt qt3 qt4 quicktime readline reflection sasl sdl server session spell spl ssl tcpd tetex truetype truetype-fonts type1-fonts udev userland_GNU video_cards_sis vorbis xml xmms xorg xv zip zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

=================================================================
                        Package Settings
=================================================================
dev-db/mysql-5.0.26 was built with the following:
CFLAGS="-DHAVE_ERRNO_AS_DEFINE=1 -O3 -fno-exceptions -fno-strict-aliasing -fomit-frame-pointer -march=athlon-xp -pipe"
CXXFLAGS="-DHAVE_ERRNO_AS_DEFINE=1 -O3 -felide-constructors -fno-exceptions -fno-implicit-templates -fno-rtti -fno-strict-aliasing -fomit-frame-pointer -march=athlon-xp -pipe"
USE="berkdb perl ssl"


Da dove diavolo salta fuori, allora? Ok, ora va, ma vorrei capire PERCHE'...
Back to top
View user's profile Send private message
MeMyselfAndI
l33t
l33t


Joined: 15 Nov 2005
Posts: 784
Location: Between the monitor and the chair

PostPosted: Mon Oct 23, 2006 1:33 pm    Post subject: Reply with quote

equery ti dice solo come hai compilato il pacchetto, non come lo compilerai in futuro... infatti se usei equery su un pacchetto non installato vedrai che ti ritorna errore.
Back to top
View user's profile Send private message
X-Drum
Advocate
Advocate


Joined: 24 Aug 2003
Posts: 2517
Location: ('Modica','Trieste','Ferrara') Italy

PostPosted: Mon Oct 23, 2006 1:45 pm    Post subject: Reply with quote

MeMyselfAndI wrote:
non mi pare si possa usare quella forma in package.use, prova a mettere solo categoria/pacchetto
+/- USE senza nient'altro

infatti per abilitare una USE si cita la USE specificata (no +)
per disabilitare una USE si cita la USE specificata premettendo -
_________________
"...There are two sort of lies, lies and benchmarks..."
Back to top
View user's profile Send private message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Mon Oct 23, 2006 1:47 pm    Post subject: Re: package.use non letto? Reply with quote

emerge --info non mostra le USE locali
prova un emerge mysql -pv e vedrai che la USE static sarà impostata
Back to top
View user's profile Send private message
Belinde
n00b
n00b


Joined: 23 Oct 2006
Posts: 4

PostPosted: Mon Oct 23, 2006 1:47 pm    Post subject: Reply with quote

MeMyselfAndI wrote:
equery ti dice solo come hai compilato il pacchetto, non come lo compilerai in futuro... infatti se usei equery su un pacchetto non installato vedrai che ti ritorna errore.


MA? 8O
Allora l'opzione -a che usavo per esplorare mysql5 quando ero ancora con la 4 cosa fa? E comunque la colonna di sinistra mi dovrebbe dire gli USEflag secondo make.conf... vuoi dire che è normale non vada a leggere il package.use? Nel caso, immagino che mi meriterei un bel RTFM... :(
Back to top
View user's profile Send private message
Kernel78
Moderator
Moderator


Joined: 24 Jun 2005
Posts: 3654

PostPosted: Mon Oct 23, 2006 2:13 pm    Post subject: Reply with quote

Belinde wrote:
MeMyselfAndI wrote:
equery ti dice solo come hai compilato il pacchetto, non come lo compilerai in futuro... infatti se usei equery su un pacchetto non installato vedrai che ti ritorna errore.


MA? 8O
Allora l'opzione -a che usavo per esplorare mysql5 quando ero ancora con la 4 cosa fa? E comunque la colonna di sinistra mi dovrebbe dire gli USEflag secondo make.conf... vuoi dire che è normale non vada a leggere il package.use? Nel caso, immagino che mi meriterei un bel RTFM... :(

Io so che per sicurezza faccio sempre emerge -pv in questo modo vedo anche i pacchetti che verrebbero emersi come dipendenze ...
_________________
Le tre grandi virtù di un programmatore: pigrizia, impazienza e arroganza. (Larry Wall).
Prima di postare un file togli i commenti con
Code:
grep -vE '(^[[:space:]]*($|(#|!|;|//)))'
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum