Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 228117

Summary: Last line in make.conf needs to be a newline, else breakage
Product: Gentoo Linux Reporter: haarp <main.haarp>
Component: New packagesAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 216231    

Description haarp 2008-06-18 16:59:37 UTC
I'm unsure if this is the right component. If not, feel free to change please.

The last line in my /etc/make.conf is this:

source /usr/portage/local/layman/make.conf

To source layman's make.conf and add the overlays. This statement gets -ignored- if it isn't followed by a newline. That is, if the file directly ends after the statement. Adding a newline after it makes it work magically.

I am unsure if this happens in every case or only if the last statement is 'source'. I haven't got time to test it.

Reproducible: Always

Steps to Reproduce:
1. Add source statement to end of file
2. Remove the trailing newline if present (some editors add them automatically. mcedit doesn't)
3. Try to emerge a package that is supposed to be in one of your overlays

Actual Results:  
The overlays get ignored, emerge complains

Expected Results:  
The overlays get sourced and used for the emerge session
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2008-06-18 23:10:27 UTC
Vaguely remember having seen such a bug, but can't find it. Bear with me, Portage team...
Comment 2 Zac Medico gentoo-dev 2008-07-28 10:41:58 UTC
This is fixed in 2.2_rc4.