Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 228117 - Last line in make.conf needs to be a newline, else breakage
Summary: Last line in make.conf needs to be a newline, else breakage
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
Keywords: InVCS
Depends on:
Blocks: 216231
  Show dependency tree
Reported: 2008-06-18 16:59 UTC by haarp
Modified: 2010-10-06 21:20 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
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.