Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Xorg useflag
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
markan
n00b
n00b


Joined: 11 Aug 2013
Posts: 20

PostPosted: Fri Oct 11, 2013 4:20 am    Post subject: Xorg useflag Reply with quote

I find a interesting problem with xorg use
it just can not be build with "minimal" useflag.
if i dont use that useflag xorg-server will install 40+ deps which i dont need.
if i use it, xorg drivers which is xorg dep cant be installed becouse xorg has this flag and it ask me to remove it.
i was add "-xorg minimal" in use and than emerge xorg-server which doesnt install xorg-drivers, just only 20 deps what i need.
but i need xorg-drivers too, just those, not all other 30 deps which xorg will install if "-minimal" is enabled
and i was run "emerge xorg-drivers" and get this:

Quote:
(chroot) root / # emerge -av xorg-drivers

* IMPORTANT: 6 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.


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

Calculating dependencies... done!
[ebuild N ] sys-libs/mtdev-1.1.3 USE="-static-libs" 262 kB
[ebuild N ] x11-base/xorg-drivers-1.13 INPUT_DEVICES="evdev -acecad -aiptek -elographics -fpit -hyperpen -joystick -keyboard -mouse -mutouch -penmount -synaptics -tslib -vmmouse -void -wacom" VIDEO_CARDS="intel -apm -ark -ast -chips -cirrus -dummy -epson -fbdev -fglrx -geode -glint -i128 -i740 -mach64 -mga -modesetting -neomagic (-newport) -nouveau -nv -nvidia (-omap) (-omapfb) -qxl -r128 -radeon -rendition -s3 -s3virge -savage -siliconmotion -sis -sisusb (-sunbw2) (-suncg14) (-suncg3) (-suncg6) (-sunffb) (-sunleo) (-suntcx) -tdfx -tga -trident -tseng -v4l -vesa -via -virtualbox -vmware (-voodoo)" 0 kB
[ebuild R ] x11-base/xorg-server-1.13.4:0/1.13.4 USE="nptl suid udev xorg* -dmx -doc -ipv6 -kdrive -minimal* (-selinux) -static-libs -tslib -xnest -xvfb" 0 kB
[ebuild N ] x11-drivers/xf86-input-evdev-2.7.3 357 kB
[ebuild N ] x11-drivers/xf86-video-intel-2.20.13 USE="dri sna udev -glamor -uxa -xvmc" 1,611 kB

Total: 5 packages (4 new, 1 reinstall), Size of downloads: 2,229 kB

The following USE changes are necessary to proceed:
(see "package.use" in the portage(5) man page for more details)
# required by x11-drivers/xf86-video-intel-2.20.13
# required by x11-base/xorg-drivers-1.13[video_cards_intel]
# required by xorg-drivers (argument)
=x11-base/xorg-server-1.13.4 -minimal xorg

Use --autounmask-write to write changes to config files (honoring
CONFIG_PROTECT). Carefully examine the list of proposed changes,
paying special attention to mask or keyword changes that may expose
experimental or unstable packages.


... it wants rebuild xorg-server with "-minimal" which (if i use it) will make 20 more deps
so, am i wrong or ther isnt a way to build xorg with "minimal"use flag and avoid 20 more deps and just build xorg-drivers for xorg ?
i suggest developers to build some new flag called "drivers" for xorg which will make that problem easy to solve. so we well be able to do USE="minimal drivers" for xorg-server and xorg-drivers will not longer depends on minimal flag
can someone help me to build xorg-server with "minimal" and build xorg-drivers


Last edited by markan on Fri Oct 11, 2013 4:51 am; edited 2 times in total
Back to top
View user's profile Send private message
Logicien
l33t
l33t


Joined: 16 Sep 2005
Posts: 737
Location: Montréal

PostPosted: Fri Oct 11, 2013 4:44 am    Post subject: Reply with quote

You're not force to install xorg-drivers which are a set of input and video drivers according with the INPUT_DEVICES and VIDEO_CARDS variables. Unset INPUT_DEVICES and VIDEO_CARDS in make.conf and install the input and video drivers you want separately, like xf86-input-mouse and xf86-video-ati.
_________________
Paul
Back to top
View user's profile Send private message
markan
n00b
n00b


Joined: 11 Aug 2013
Posts: 20

PostPosted: Fri Oct 11, 2013 4:48 am    Post subject: Reply with quote

Logicien wrote:
You're not force to install xorg-drivers which are a set of input and video drivers according with the INPUT_DEVICES and VIDEO_CARDS variables. Unset INPUT_DEVICES and VIDEO_CARDS in make.conf and install the input and video drivers you want separately, like xf86-input-mouse and xf86-video-ati.


that cant work, same problem appears:
xf86-video-intel ask me to remove "minimal" flag from xorg-server
Back to top
View user's profile Send private message
Logicien
l33t
l33t


Joined: 16 Sep 2005
Posts: 737
Location: Montréal

PostPosted: Fri Oct 11, 2013 5:08 am    Post subject: Reply with quote

So, I suppose that any Xorg input or video driver that need any extra Xorg dependancy not already install with xorg-server minimal will force the remove of the minimal USE flag. It's look to be unavoidable and have nothing wrong in my opinion due to the fact that most drivers are not install with the minimal use flag.
_________________
Paul
Back to top
View user's profile Send private message
markan
n00b
n00b


Joined: 11 Aug 2013
Posts: 20

PostPosted: Fri Oct 11, 2013 5:17 am    Post subject: Reply with quote

its wrong that "-minimal" flag for xorg-server will put 30 deps, not just one needed video driver
xf86-input can be build with "minimal" for xorg-server, xf86-video can not be
even if i try manually emerge every dep needed i will finish with same problem
i can do it only without emerge but that is long job
Back to top
View user's profile Send private message
Logicien
l33t
l33t


Joined: 16 Sep 2005
Posts: 737
Location: Montréal

PostPosted: Fri Oct 11, 2013 5:28 am    Post subject: Reply with quote

With the minimal USE flag, most Xorg features are disabled. It's normal that a video driver add a lot of dependancies in that case that will not appear if Xorg would be build with the -minimal flag. I would prefer to trust emerge than try to do things manually.

Code:
- - minimal     : Install a very minimal build (disables, for example, plugins, fonts, most drivers, non-critical features)

_________________
Paul
Back to top
View user's profile Send private message
markan
n00b
n00b


Joined: 11 Aug 2013
Posts: 20

PostPosted: Fri Oct 11, 2013 5:39 am    Post subject: Reply with quote

Logicien wrote:

Code:
- - minimal     : Install a very minimal build (disables, for example, plugins, fonts, most drivers, non-critical features)


thats why i want -minimal
i dont need fonts becouse windows manager will install its own fonts, even i dont need all plugins and non-critical features, but sure i need video-intel
Back to top
View user's profile Send private message
Logicien
l33t
l33t


Joined: 16 Sep 2005
Posts: 737
Location: Montréal

PostPosted: Fri Oct 11, 2013 5:48 am    Post subject: Reply with quote

I don't think that any package is install for nothing. For the moment you can advoid some packages to be install with the minimal USE flag, but any other package that have Xorg as dependancy and need something more of it that what is install will ask for the removal of the minimal USE flag. No extra Xorg features will be install if it's not necessary.

You always can ask emerge to remove orphan packages (no package depend on them) after a world update with the command
Code:
emerge -acv

_________________
Paul
Back to top
View user's profile Send private message
markan
n00b
n00b


Joined: 11 Aug 2013
Posts: 20

PostPosted: Fri Oct 11, 2013 8:23 am    Post subject: Reply with quote

Logicien wrote:

You always can ask emerge to remove orphan packages (no package depend on them) after a world update with the command
Code:
emerge -acv


that was usefull, it removes me old gcc and binutils.thanks
but it will not remove fonts and features of xorg-server after emerge it with -minimal to take intel driver
yes, i can do it with emerge

emerge -av xorg-server (USE="-minimal")
copy in text editor all packages which are not presented in same command but with +minimal
and after xorg-server finish compile
i will just unmerge all aps from text editor
or i can make script for ebuilt to do that, but i dont know scripting
i dont want use xorg fonds and graphical features becouse i have desktop fonts and features, xorg can be minimal to run desktop with his custom features and fonts
i think i dont need almost all of +20 deps
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 5267

PostPosted: Fri Oct 11, 2013 8:40 am    Post subject: Reply with quote

markan, you have no idea what you are doing.

'minimal' is one of the useflags, that - though global - has many different meanings depending on the package.
In xorg-server it's for building a server, that's cut down far below the point of being usable for common use.
If you simply looked at the ebuild, you'd note that 'minimal' - among other - turn off dri/dri2, which is pretty much expected by any software requiring higher than slideshow video performance.
Back to top
View user's profile Send private message
markan
n00b
n00b


Joined: 11 Aug 2013
Posts: 20

PostPosted: Fri Oct 11, 2013 9:17 am    Post subject: Reply with quote

VoidMage wrote:

If you simply looked at the ebuild, you'd note that 'minimal' - among other - turn off dri/dri2, which is pretty much expected by any software requiring higher than slideshow video performance.


thank you
thats what i need
that dri/dri2 is not all 20 new deps which xorg will install with -minimal ?
so i must somehow change ebuild to dont turn off dri/dr2 with "minimal" flag, or cahnge/add something there so ebuild will install xorg (with just nessesry deps "minimal" and just video-intel without all others deps
how i can do it ? where is that file ?
Back to top
View user's profile Send private message
markan
n00b
n00b


Joined: 11 Aug 2013
Posts: 20

PostPosted: Fri Oct 11, 2013 10:58 am    Post subject: Reply with quote

Logicien wrote:
VIDEO_CARDS in make.conf and install the input and video drivers you want separately, like xf86-input-mouse and xf86-video-ati.


it is like you said, that i was wont.
becouse xorg will install 40 deps (even if i set VIDEO_CARDS value). xorg with "-xorg minimal" will install just 10 deps.
and after that video-intel will install just 4 deps, input-evdev just 1 dep and 35 unessesery deps was skipped
iw miss that, sorry

solved now
Back to top
View user's profile Send private message
markan
n00b
n00b


Joined: 11 Aug 2013
Posts: 20

PostPosted: Fri Oct 11, 2013 11:35 am    Post subject: Reply with quote

Logicien wrote:

You always can ask emerge to remove orphan packages (no package depend on them) after a world update with the command
Code:
emerge -acv


not good !!
now i mess up something with that, i was run it (not after any updating) and it was remove my gcc and binutils versions and leave just omiteds.
now when i run:
emerge xf86-video-intel i get:

Quote:
* ERROR: x11-base/xorg-server-1.13.4::gentoo failed (pretend phase):
* Sorry, but gcc earlier than 4.0 will not work for xorg-server.


and if i try update gcc i get:

Quote:
* ERROR: sys-devel/gcc-4.7.3-r1::gentoo failed (compile phase):
* failed to run configure


with log http://bpaste.net/show/139591/

Quote:
* gcc-config: Active gcc profile is invalid!
gcc-config: error: could not run/locate 'gcc'



i still have gcc 4.4.3 on my host environment
what to do ?
Back to top
View user's profile Send private message
Logicien
l33t
l33t


Joined: 16 Sep 2005
Posts: 737
Location: Montréal

PostPosted: Fri Oct 11, 2013 1:12 pm    Post subject: Reply with quote

Execute the command
Code:
gcc-config -l

to get the numbers of the versions of Gcc that are installed, than choose the number of the latest version
Code:
gcc-config 1

or else number.
_________________
Paul
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 5267

PostPosted: Fri Oct 11, 2013 1:46 pm    Post subject: Reply with quote

markan wrote:
xorg with "-xorg minimal" will install just 10 deps.

:roll:
Gee, if you built your xorg-server that way, you have once again failed to build a version usable for common use.
Xorg binary is the standard xorg server, what you built is likely just a set of server modules, that are shared by most of server binaries (Xorg, Xvfb, Xnest, etc.).

Before you start to randomly remove dependencies, try to grasp what are they used for.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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