Understanding make.conf - An Introduction

Anything that pertains to Portage

Moderator: Moderators

Re: Understanding make.conf - An Introduction

Postby Richlion » Sun Dec 16, 2007 14:50

Hi All,
I am totally new to Sabayon and Gentoo and this thread is really nice. However, I am trying to find a list of VIDEO_CARDS and INPUT_DEVICES I can remove for sure. There are many Gentoo links for USE, but I could not find any link to see what I have in my /etc/make.conf file to be sure I really can remove things. For example, if I have a VIDEO_CARD:
Code: Select all
00:02.1 Display controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03)

which is related to the i915 supoort, can I change:
Code: Select all
VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev fglrx glint i128 i740 i810 imstt mach64 mga neomagic nsc nv nvidia r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo epson"


to this:
Code: Select all
VIDEO_CARDS="i915"


So in the end, are there any VIDEO_CARDS I need to leave, like "vesa vga via"?
If someone could post his example of the sections VIDEO_CARDS and INPUT_DEVICES, it would be of much greate help.

Also, as with the USE parameter, should I get rid of "nvidia" support by specifying "-nvidia", or I can just remove the entry from the VIDEO_CARDS list?

Thanks to everyone,
RIchard.

My HW:
Code: Select all
Richlion ~ # lspci
00:00.0 Host bridge: Intel Corporation Mobile 915GM/PM/GMS/910GML Express Processor to DRAM Controller (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 2 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 (rev 03)
00:1d.3 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev d3)
00:1e.2 Multimedia audio controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller (rev 03)
00:1e.3 Modem: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Modem Controller (rev 03)
00:1f.0 ISA bridge: Intel Corporation 82801FBM (ICH6M) LPC Interface Bridge (rev 03)
00:1f.1 IDE interface: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) IDE Controller (rev 03)
00:1f.2 IDE interface: Intel Corporation 82801FBM (ICH6M) SATA Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus Controller (rev 03)
06:01.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
06:02.0 Network controller: Intel Corporation PRO/Wireless 2200BG Network Connection (rev 05)
06:04.0 CardBus bridge: Texas Instruments PCIxx21/x515 Cardbus Controller
06:04.2 FireWire (IEEE 1394): Texas Instruments OHCI Compliant IEEE 1394 Host Controller
06:04.3 Mass storage controller: Texas Instruments PCIxx21 Integrated FlashMedia Controller
06:04.4 Generic system peripheral [0805]: Texas Instruments PCI6411/6421/6611/6621/7411/7421/7611/7621 Secure Digital Controller
*** Sabyon user since 2006 ***
Sabayon Linux amd64 13.03 - x86_64 Pentium(R) Dual-Core CPU T4200 @ 2.00GHz
KDE 4.10.1 - on Acer Aspire 7730 zg 17" with Nvidia Geforce 9300M GS
Richlion
Technological Hen
 
Posts: 393
Joined: Sun Nov 11, 2007 2:19
Location: Manchester

Re: Understanding make.conf - An Introduction

Postby Richlion » Sun Dec 16, 2007 15:08

After changing the /etc/make.conf it is suggested to run some updates:
http://www.gentoo.org/doc/en/handbook/h ... t=2&chap=2

I wouldn't want to recompile my whole system, because I am still not too familiar with Gentoo and Portage. When I run this:
emerge --update --deep --newuse world

I run into problems:
Code: Select all
Calculating world dependencies  .... ........
!!! All ebuilds that could satisfy ">=sys-apps/hal-0.5.10" have been masked.
!!! One of the following masked packages is required to complete your request:
- sys-apps/hal-0.5.10 (masked by: package.mask)
/usr/portage/profiles/package.mask:
# Saleem Abdulrasool <compnerd@gentoo.org> (23 Nov 2007)
# Mask this until we get the input and mounting issues worked out


For more information, see MASKED PACKAGES section in the emerge man page or
refer to the Gentoo Handbook.
(dependency required by "app-misc/hal-info-20071011" [ebuild])

!!! Depgraph creation failed.

!!! Problem resolving dependencies for sys-apps/busybox


Maybe it's better to do :
emerge --sync

Thanks for any hints,
Richard
*** Sabyon user since 2006 ***
Sabayon Linux amd64 13.03 - x86_64 Pentium(R) Dual-Core CPU T4200 @ 2.00GHz
KDE 4.10.1 - on Acer Aspire 7730 zg 17" with Nvidia Geforce 9300M GS
Richlion
Technological Hen
 
Posts: 393
Joined: Sun Nov 11, 2007 2:19
Location: Manchester

Re: Understanding make.conf - An Introduction

Postby wolfden » Sun Dec 16, 2007 15:43

Richlion wrote:Hi All,
I am totally new to Sabayon and Gentoo and this thread is really nice. However, I am trying to find a list of VIDEO_CARDS and INPUT_DEVICES I can remove for sure. There are many Gentoo links for USE, but I could not find any link to see what I have in my /etc/make.conf file to be sure I really can remove things. For example, if I have a VIDEO_CARD:
Code: Select all
00:02.1 Display controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03)

which is related to the i915 supoort, can I change:
Code: Select all
VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev fglrx glint i128 i740 i810 imstt mach64 mga neomagic nsc nv nvidia r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo epson"


to this:
Code: Select all
VIDEO_CARDS="i915"


So in the end, are there any VIDEO_CARDS I need to leave, like "vesa vga via"?
If someone could post his example of the sections VIDEO_CARDS and INPUT_DEVICES, it would be of much greate help.

Also, as with the USE parameter, should I get rid of "nvidia" support by specifying "-nvidia", or I can just remove the entry from the VIDEO_CARDS list?

Thanks to everyone,
RIchard.

My HW:
Code: Select all
Richlion ~ # lspci
00:00.0 Host bridge: Intel Corporation Mobile 915GM/PM/GMS/910GML Express Processor to DRAM Controller (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 2 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 (rev 03)
00:1d.3 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev d3)
00:1e.2 Multimedia audio controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller (rev 03)
00:1e.3 Modem: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Modem Controller (rev 03)
00:1f.0 ISA bridge: Intel Corporation 82801FBM (ICH6M) LPC Interface Bridge (rev 03)
00:1f.1 IDE interface: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) IDE Controller (rev 03)
00:1f.2 IDE interface: Intel Corporation 82801FBM (ICH6M) SATA Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus Controller (rev 03)
06:01.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
06:02.0 Network controller: Intel Corporation PRO/Wireless 2200BG Network Connection (rev 05)
06:04.0 CardBus bridge: Texas Instruments PCIxx21/x515 Cardbus Controller
06:04.2 FireWire (IEEE 1394): Texas Instruments OHCI Compliant IEEE 1394 Host Controller
06:04.3 Mass storage controller: Texas Instruments PCIxx21 Integrated FlashMedia Controller
06:04.4 Generic system peripheral [0805]: Texas Instruments PCI6411/6421/6611/6621/7411/7421/7611/7621 Secure Digital Controller



not recompiling is kinda pointless than

video should be vesa vga i915
remove any use flags you don't need, no need to - anything, just remove it
wolfden
Sharecropper
 
Posts: 9050
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Re: Understanding make.conf - An Introduction

Postby wolfden » Sun Dec 16, 2007 15:46

Richlion wrote:After changing the /etc/make.conf it is suggested to run some updates:
http://www.gentoo.org/doc/en/handbook/h ... t=2&chap=2

I wouldn't want to recompile my whole system, because I am still not too familiar with Gentoo and Portage. When I run this:
emerge --update --deep --newuse world

I run into problems:
Code: Select all
Calculating world dependencies  .... ........
!!! All ebuilds that could satisfy ">=sys-apps/hal-0.5.10" have been masked.
!!! One of the following masked packages is required to complete your request:
- sys-apps/hal-0.5.10 (masked by: package.mask)
/usr/portage/profiles/package.mask:
# Saleem Abdulrasool <compnerd@gentoo.org> (23 Nov 2007)
# Mask this until we get the input and mounting issues worked out


For more information, see MASKED PACKAGES section in the emerge man page or
refer to the Gentoo Handbook.
(dependency required by "app-misc/hal-info-20071011" [ebuild])

!!! Depgraph creation failed.

!!! Problem resolving dependencies for sys-apps/busybox


Maybe it's better to do :
emerge --sync

Thanks for any hints,
Richard


Read the error message it's telling why and where
# Mask this until we get the input and mounting issues worked out

/usr/portage/profiles/package.mask



Also, this topic is for make.conf discussion/tips, not portage compiling problems - Make a new topic if u need to
wolfden
Sharecropper
 
Posts: 9050
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Re: Understanding make.conf - An Introduction

Postby Richlion » Sun Dec 16, 2007 15:59

video should be vesa vga i915
remove any use flags you don't need, no need to - anything, just remove it


Thanks Wolfden, very easy.

Any suggestions regarding the INPUT_DEVICES ?

Code: Select all
INPUT_DEVICES="evdev keyboard mouse acecad aiptek calcomp citron digitaledge dmc dynapro elo2300 elographics fpit hyperpen jamstudio magellan microtouch mutouch palmax penmount spaceorb summa synaptics tek4957 wacom ur98 vmmouse void wacom"


I only use a keyboard, mouse, my laptop touchpad. Any link with a description about what all these are? If not, I'll do some searches.

Thanks in advance.
Richard
*** Sabyon user since 2006 ***
Sabayon Linux amd64 13.03 - x86_64 Pentium(R) Dual-Core CPU T4200 @ 2.00GHz
KDE 4.10.1 - on Acer Aspire 7730 zg 17" with Nvidia Geforce 9300M GS
Richlion
Technological Hen
 
Posts: 393
Joined: Sun Nov 11, 2007 2:19
Location: Manchester

Re: Understanding make.conf - An Introduction

Postby wolfden » Sun Dec 16, 2007 16:09

evdev keyboard mouse synaptics

that is what I would do
wolfden
Sharecropper
 
Posts: 9050
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Re: Understanding make.conf - An Introduction

Postby latterdaysaint » Sat Jan 26, 2008 3:33

Thanks Wolfden, Iv'e been googling & searching Gentoo & other Forums etc to find answers on whats wise to change & whats OK to change & edit in " make.conf " :D when it comes to a pre built system like Sabayon for a while now & this Tutorial has made things alot clearer & has given those new to Gentoo based desktops answers & confidence in editing make.conf.
The Links are Handy too.
Thanks -LatterDaySaint
latterdaysaint
Simple Hen
 
Posts: 41
Joined: Mon Sep 03, 2007 17:40
Location: MY-HUMBLE-ABODE

Re: Understanding make.conf - An Introduction

Postby guneves » Sat Jun 07, 2008 13:52

Wow! This is very nice!
I wonder how I didn't find this here before (maybe because its an old post).
But it's great!

great informations and links for us begginers!
got me a lot more to read :)
guneves
Baby Hen
 
Posts: 10
Joined: Mon Jun 02, 2008 16:25

Re: Understanding make.conf - An Introduction

Postby valczir » Tue Mar 03, 2009 1:30

CFLAGS="-O3 -march=native -funroll-all-loops -m3dnow -msse3 -funit-at-a-time -fpeel-loops -ftracer -funswitch-loops -fomit-frame-pointer -pipe"


No, no, no - you're doing it wrong. You need REAL men's CFLAGS!

Joking aside, don't you think you should be using safer CFLAGS in a newbie guide? Even -march=native should have warnings attached to it, because certain versions of a fair number of packages (including gcc) won't build with -march=native, not to mention the fact that you first have to make sure you're using GCC 4.3.x. With Sabayon 3.5, at least, gcc-config lists GCC 4.2.x as the default version of gcc used.

Just to quote one specific point about the above CFLAGS from the Gentoo Compilation Optimization Guide:

-O3: This is the highest level of optimization possible, and also the riskiest. It will take a longer time to compile your code with this option, and in fact it should not be used system-wide with gcc 4.x. The behavior of gcc has changed significantly since version 3.x. In 3.x, -O3 has been shown to lead to marginally faster execution times over -O2, but this is no longer the case with gcc 4.x. Compiling all your packages with -O3 will result in larger binaries that require more memory, and will significantly increase the odds of compilation failure or unexpected program behavior (including errors). The downsides outweigh the benefits; remember the principle of diminishing returns. Using -O3 is not recommended for gcc 4.x.
valczir
Baby Hen
 
Posts: 9
Joined: Wed Oct 29, 2008 7:24
Location: Minnesota

Re: Understanding make.conf - An Introduction

Postby wolfden » Tue Mar 03, 2009 4:19

it's just an example make.conf
wolfden
Sharecropper
 
Posts: 9050
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

PreviousNext

Return to Portage|Emerge Package Managers

Who is online

Users browsing this forum: No registered users and 0 guests

cron