Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[RISOLTO] use flag non vengono considerate da portage
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
oscarandrea
Apprentice
Apprentice


Joined: 27 Nov 2015
Posts: 177
Location: Italy/Cosenza

PostPosted: Thu Jun 29, 2017 6:36 pm    Post subject: [RISOLTO] use flag non vengono considerate da portage Reply with quote

Ho appena installato gentoo, ho abilitato varie use essendo sul profilo hadened, ma sembra che non vengono considerate da portage, per esempio in make.conf ho jpeg, imlib2 è installato senza quella flag, mentre se compilo localmente con
Code:
sudo USE="jpeg"  emerge imlib2
funge, stessa cose per sudo, dovrebbe avere la flag offensive che ho dichiarato in make.conf ma comunque è compilato senza quella flag, non mi è mai capitata una cosa del genere, ecco il mi make.conf (ho messo tutte le use su un linea pensado magari di sbagliare la formattazione)
Code:

# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-O2 -march=native -pipe"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE and USE_EXPAND flags that were used for
# buidling in addition to what is provided by the profile.
USE="${REMOVE} ${ADD}"
CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"
PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"
MAKEOPTS="-j3"
EMERGE_DEFAULT_OPTS=" --deep --keep-going \
--verbose --verbose-conflicts --with-bdeps y --autounmask-write  --complete-graph"
VIDEO_CARDS="intel"
INPUT_DEVICES="libinput"
PORTAGE_NICENESS=10
LINGUAS="it"
REMOVE="-dbus -systemd -bluetooth -qt -qt3 -accessibility "
ADD="jpeg png xorg pulseaudio  mpeg jpeg mpeg mp4 vpx x264 x265 matroska win32codecs lame mp3 flac faac vorbis webp gif svg png pdf archive rar unrar lzo lz4 xz   ipv4 gtk3 offensive vim vim-synthax wifi X ext4 utf8"
ACCEPT_KEYWORDS="~amd64"


Last edited by oscarandrea on Thu Jun 29, 2017 7:21 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21994
Location: here

PostPosted: Thu Jun 29, 2017 6:38 pm    Post subject: Reply with quote

Il problema e' che hai dichiarato le variabili ADD e REMOVE dopo che le usi, quindi la tua variabile USE e' vuota.
Sposta la variabile USE in fondo e vedrai che funzionera' :D .
_________________
Questions are guaranteed in life; Answers aren't.


Last edited by fedeliallalinea on Thu Jun 29, 2017 7:15 pm; edited 1 time in total
Back to top
View user's profile Send private message
oscarandrea
Apprentice
Apprentice


Joined: 27 Nov 2015
Posts: 177
Location: Italy/Cosenza

PostPosted: Thu Jun 29, 2017 7:12 pm    Post subject: Reply with quote

fedeliallalinea wrote:
Il problema e' che hai diciarato le variabili ADD e REMOVE dopo che le usi, quindi la tua variabile USE e' vuota.
Sposta la variabile USE in fondo e vedrai che funzionera' :D .

fondamenti di programmazione proprio :lol: non ci ho pensato, stavo esaurendo nel capire il problema :oops:
grazie nuovamente :D
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21994
Location: here

PostPosted: Thu Jun 29, 2017 7:17 pm    Post subject: Reply with quote

Di solito sono i problemi semplici che fanno perdere piu; tempo :D
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
bandreabis
Advocate
Advocate


Joined: 18 Feb 2005
Posts: 2413
Location: イタリアのロディで

PostPosted: Mon Jul 17, 2017 11:31 am    Post subject: Reply with quote

E' un po' che non leggo il manuale!
ADD? REMOVE?
_________________
Il numero di post non fa di me un esperto! Anzi!
Back to top
View user's profile Send private message
oscarandrea
Apprentice
Apprentice


Joined: 27 Nov 2015
Posts: 177
Location: Italy/Cosenza

PostPosted: Mon Jul 17, 2017 11:49 am    Post subject: Reply with quote

bandreabis wrote:
E' un po' che non leggo il manuale!
ADD? REMOVE?

sono solo variabili per tenere il make.conf più ordinato
Back to top
View user's profile Send private message
bandreabis
Advocate
Advocate


Joined: 18 Feb 2005
Posts: 2413
Location: イタリアのロディで

PostPosted: Mon Jul 17, 2017 11:51 am    Post subject: Reply with quote

Utile.
Copieró l'idea
_________________
Il numero di post non fa di me un esperto! Anzi!
Back to top
View user's profile Send private message
sabayonino
l33t
l33t


Joined: 03 Jan 2012
Posts: 703

PostPosted: Mon Jul 17, 2017 4:46 pm    Post subject: Reply with quote

Esempio :
Code:
USE="flag1 flag2 flag3 -flag4 -flag5"


Equivale
Code:

GOOD="flag1 flag2 flag3"
BAD="-flag4 -flag5"
USE="${GOOD} ${BAD}"


se GOOD & BAD le dichiari dopo a USE , quest'ultima risulta vuota. considera che l'interprete bash legge una riga dopo l'altra.

ad esempio , nel make.conf di Sabayon , USE è dichiarata così
Code:
## USE ##
SAB_BAD="-kdeprefix -arts -qt3 -beagle -gnome -evo -mono -eds -apm -oss -branding -esd"
SAB_MEDIA="musicbrainz sdl pulseaudio wmf fame cdr dvi mp3rtp xine cddb alsa dvb dvd bluray network dvdread ipod audiofile artswrappersuid dvdr jack dri cdda libav mjpeg mmx joystick xvmc cpudetection v4l v4l2"
SAB_CODECS="x264 x265 gsm lame opus dv mp3 stream live openal theora ogg a52 win32codecs matroska xvid flac ffmpeg aac speex real dts musepack"
SAB_SYSTEM="cjk unicode gnutls nptl gcj udev systemd logind -consolekit kerberos acl dbus bash-completion lzo rar policykit xcb bzip2 bidi wifi lm_sensors acpi usb pcmcia bluetooth irda ieee1394 perl python"
SAB_FILESYS="fat hfs jfs xfs ntfs reiserfs sysfs inotify"
SAB_PRINT="cups ppds foomatic-db gimpprint freetype xprint scanner"
SAB_XSYS="cairo X opengl png gif gtk qt4 qt5 qt3support xpm tiff xinerama aiglx svg gphoto2 dga lcd openexr wayland"
SAB_DESKTOP="kdehiddenvisibility gmp libnotify rdesktop pda zeroconf kdeenablefinal visualization avahi startup-notification accessibility"
SAB_BROWSER="nsplugin firefox mozdevelop xulrunner"
SAB_COMMS="jabber msn yahoo icq irc aim rss slp mail imap http2"

USE="${SAB_BAD} ${SAB_MEDIA} ....${SAB_COMMS}"


Questo permette di gestire le USEflag generali categorizzandole secondo le proprie necessità. Non è detto che debba essere così per forza. :roll:
Se utilizzi ad esempio
Code:
 app-portage/ufed
     Available versions:  0.91 0.92 **9999
     Installed versions:  0.92(12:11:47 14/01/2016)
     Homepage:            https://www.gentoo.org/
     Description:         Gentoo Linux USE flags editor



quest'ultimo metterà tutte le FLAGS in ordine alfabetico
Code:
USE="X a52 aac accessibility acl acpi aiglx aim alsa artswrappersuid audiofile
     avahi bash-completion bidi bluetooth bluray bzip2 cairo cdda cddb cdr cjk
     cpudetection cups dar64 dbus dga dri dts dv dvb dvd dvdr dvdread dvi fame
     fat ffmpeg firefox flac foomatic-db freetype gcj gif gimpprint gmp gnutls
     gphoto2 gsm gtk hfs http2 icq ieee1394 imap inotify ipod irc irda jabber
     jack jfs joystick kdeenablefinal kdehiddenvisibility kerberos lame lcd
     libav libnotify live lm_sensors logind lzo mail matroska mjpeg mmx
     mozdevelop mp3 mp3rtp msn musepack musicbrainz network nptl nsplugin ntfs
     ogg openal openexr opengl opus pcmcia pda perl png policykit ppds
     pulseaudio python qt3support qt4 qt5 rar rdesktop real reiserfs rss
     scanner sdl slp speex startup-notification stream svg sysfs systemd
     theora tiff udev unicode usb v4l v4l2 visualization wayland wifi
     win32codecs wmf x264 x265 xcb xfs xine xinerama xpm xprint xulrunner xvid
     xvmc yahoo zeroconf -apm -arts -beagle -branding -consolekit -eds -esd
     -evo -gnome -kdeprefix -mono -oss -qt3"


"ufed" sovvrasciverà la variabile USE nel make.conf
_________________
BOINC ed il calcolo distribuito

My LiveRecoverySystem Repo
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