SOLVED: Re: [gentoo-user] Question re: make.conf/profile location change
On 2013-08-11 1:48 PM, Marc Joliet mar...@gmx.de wrote: Am Sun, 11 Aug 2013 13:30:57 -0400 schrieb Tanstaafl tansta...@libertytrek.org: I just tried changing it eselect profile set 3 eselect profile set 1 and it didn't create the link in /etc/portage, it is still in /etc... Ah, then it *preserves* the current location. I have it in /etc/portage and eselect profile kept it there, too. However, I just checked and if you delete make.profile and then re-create it with eselect profile it is created in /etc/portage. So, to do this manually just: ~ ln -s make.profile /usr/portage/profiles/default/linux/amd64/13.0 ~ rm /etc/make.profile I guess so. Or rm /etc/make.profile eselect profile set whatever as described above. Ok, thanks all, makes sense now...
Re: [gentoo-user] Question re: make.conf/profile location change
Am Sun, 11 Aug 2013 21:29:41 +0200 schrieb Alan McKinnon alan.mckin...@gmail.com: [...] No. That links a file in /etc/portage to something that doesn't exist (arguments wrong way round), and the .. parent directory doesn't belong there at all: cd /etc/portage ln -s $POSTDIR/profiles/path/to/profile/you/want profile.conf [...] new overrides old in this case Damn, you would think ln -s ${TARGET} ${NEWFILE} would be easily remembered as link to target via new file, but no, I keep forgetting :( . [Perhaps because the first (wrong) mnemonic I usually think of is link target to new file, which is backwards, because you're linking the new file to the target. Maybe I've been confusing myself that way ;) .] -- Marc Joliet -- People who think they know everything really annoy those of us who know we don't - Bjarne Stroustrup signature.asc Description: PGP signature
Re: SOLVED: Re: [gentoo-user] Question re: make.conf/profile location change
On 12/08/2013 12:21, Tanstaafl wrote: On 2013-08-11 1:48 PM, Marc Joliet mar...@gmx.de wrote: Am Sun, 11 Aug 2013 13:30:57 -0400 schrieb Tanstaafl tansta...@libertytrek.org: I just tried changing it eselect profile set 3 eselect profile set 1 and it didn't create the link in /etc/portage, it is still in /etc... Ah, then it *preserves* the current location. I have it in /etc/portage and eselect profile kept it there, too. However, I just checked and if you delete make.profile and then re-create it with eselect profile it is created in /etc/portage. So, to do this manually just: ~ ln -s make.profile /usr/portage/profiles/default/linux/amd64/13.0 ~ rm /etc/make.profile I guess so. Or rm /etc/make.profile eselect profile set whatever as described above. Ok, thanks all, makes sense now... Please read the man page for ln. You have the arguments in reverse. -- Alan McKinnon alan.mckin...@gmail.com
Re: SOLVED: Re: [gentoo-user] Question re: make.conf/profile location change
On 2013-08-12 6:48 AM, Alan McKinnon alan.mckin...@gmail.com wrote: On 12/08/2013 12:21, Tanstaafl wrote: So, to do this manually just: ~ ln -s make.profile /usr/portage/profiles/default/linux/amd64/13.0 Please read the man page for ln. You have the arguments in reverse. Yeah, already noticed that, thanks... :)
[gentoo-user] Question re: make.conf/profile location change
Hello, Was reviewing older news items and was wondering about this one: # eselect news read 12 2012-09-09-make.conf-and-make.profile-move Titlemake.conf and make.profile move Author Jorge Manuel B. S. Vicetto jmbsvice...@gentoo.org Posted 2012-09-09 Revision 1 Starting next week, new stages will have make.conf and make.profile moved from /etc to /etc/portage. This is a change in the installation defaults, that will only affect new installs so it doesn't affect current systems. Current users don't need to do anything. But if you want to follow the preferred location, you may want to take the chance to move the files in your system(s) to the new location. My question is, what if they are in both locations? Which ones are used? I would assume that portage now looks first in /etc/portage and uses those if it finds them, and if not, looks in /etc - but the news item is incomplete on this question.
Re: [gentoo-user] Question re: make.conf/profile location change
Am Sun, 11 Aug 2013 11:58:48 -0400 schrieb Tanstaafl tansta...@libertytrek.org: Hello, Was reviewing older news items and was wondering about this one: # eselect news read 12 2012-09-09-make.conf-and-make.profile-move Titlemake.conf and make.profile move Author Jorge Manuel B. S. Vicetto jmbsvice...@gentoo.org Posted 2012-09-09 Revision 1 Starting next week, new stages will have make.conf and make.profile moved from /etc to /etc/portage. This is a change in the installation defaults, that will only affect new installs so it doesn't affect current systems. Current users don't need to do anything. But if you want to follow the preferred location, you may want to take the chance to move the files in your system(s) to the new location. My question is, what if they are in both locations? Which ones are used? I would assume that portage now looks first in /etc/portage and uses those if it finds them, and if not, looks in /etc - but the news item is incomplete on this question. When in doubt, read the man page (make.conf(5)): [...] DESCRIPTION This file contains various variables that are used by Portage. Portage will check the currently-defined environment variables first for any settings. If no environ‐ ment settings are found, Portage then checks the make.conf files. Both /etc/make.conf and /etc/portage/make.conf are checked (if present), and settings from /etc/portage/make.conf will override settings from /etc/make.conf. [...] HTH -- Marc Joliet -- People who think they know everything really annoy those of us who know we don't - Bjarne Stroustrup signature.asc Description: PGP signature
Re: [gentoo-user] Question re: make.conf/profile location change
On 11/08/2013 17:58, Tanstaafl wrote: Hello, Was reviewing older news items and was wondering about this one: # eselect news read 12 2012-09-09-make.conf-and-make.profile-move Titlemake.conf and make.profile move Author Jorge Manuel B. S. Vicetto jmbsvice...@gentoo.org Posted 2012-09-09 Revision 1 Starting next week, new stages will have make.conf and make.profile moved from /etc to /etc/portage. This is a change in the installation defaults, that will only affect new installs so it doesn't affect current systems. Current users don't need to do anything. But if you want to follow the preferred location, you may want to take the chance to move the files in your system(s) to the new location. My question is, what if they are in both locations? Which ones are used? I would assume that portage now looks first in /etc/portage and uses those if it finds them, and if not, looks in /etc - but the news item is incomplete on this question. My question is why do you have files in both locations? /etc is the old location, /etc/portage is the new location, so simply delete the one you do not want. It's easy enough to determine for yourself which one has higher priority. Make the files differ in some way that causes an easy to detect change in emerge output. Move the file out of the way one by one and run energe world. Then you will have the answer to your question. -- Alan McKinnon alan.mckin...@gmail.com
Re: [gentoo-user] Question re: make.conf/profile location change
On 2013-08-11 12:03 PM, Marc Joliet mar...@gmx.de wrote: When in doubt, read the man page (make.conf(5)): [...] DESCRIPTION This file contains various variables that are used by Portage. Portage will check the currently-defined environment variables first for any settings. If no environ‐ ment settings are found, Portage then checks the make.conf files. Both /etc/make.conf and /etc/portage/make.conf are checked (if present), and settings from /etc/portage/make.conf will override settings from /etc/make.conf. [...] Thanks... my point was more that the news item didn't explain this - also, this answers as to make.conf, but what about make.profile? I just don't like being forced to assume, or 'test for myself', when it could be made crystal clear in the news item/docs. Also, would ~ cd /etc/portage ~ ln -s make.profile ../usr/portage/profiles/default/linux/amd64/13.0 Be the right way to create the make.profile symlink in the new location? Not sure why the two preceeding dots are there in the current one in /etc, but they are... On 2013-08-11 12:16 PM, Alan McKinnon alan.mckin...@gmail.com wrote: My question is why do you have files in both locations? I don't... I was getting ready to change these, and was just asking the question... ;)
Re: [gentoo-user] Question re: make.conf/profile location change
Am Sun, 11 Aug 2013 12:48:44 -0400 schrieb Tanstaafl tansta...@libertytrek.org: On 2013-08-11 12:03 PM, Marc Joliet mar...@gmx.de wrote: When in doubt, read the man page (make.conf(5)): [...] DESCRIPTION This file contains various variables that are used by Portage. Portage will check the currently-defined environment variables first for any settings. If no environ‐ ment settings are found, Portage then checks the make.conf files. Both /etc/make.conf and /etc/portage/make.conf are checked (if present), and settings from /etc/portage/make.conf will override settings from /etc/make.conf. [...] Thanks... my point was more that the news item didn't explain this - also, this answers as to make.conf, but what about make.profile? portage(5) says: If both /etc/portage/make.profile/ and /etc/make.profile/ exist, then /etc/portage/make.profile/ will be preferred. I just don't like being forced to assume, or 'test for myself', when it could be made crystal clear in the news item/docs. Yes, I agree that that might perhaps have been nice to mention it in the news item (although IMHO that's the sort of information the man pages are there for), but it *is* crystal clear in the docs, or do you not count the man pages to the docs? Also, would ~ cd /etc/portage ~ ln -s make.profile ../usr/portage/profiles/default/linux/amd64/13.0 Be the right way to create the make.profile symlink in the new location? AFAIK eselect profile uses the new location, but I don't remember how precisely I moved it (not that it matters). Not sure why the two preceeding dots are there in the current one in /etc, but they are... The current location is /etc/make.conf, right? Then ../usr/[...] will resolve to /usr/[...], whereas your ln command above will resolve to /etc/usr/[...], which is, erm, wrong :) . [...] HTH -- Marc Joliet -- People who think they know everything really annoy those of us who know we don't - Bjarne Stroustrup signature.asc Description: PGP signature
Re: [gentoo-user] Question re: make.conf/profile location change
On 2013-08-11 1:06 PM, Marc Joliet mar...@gmx.de wrote: Yes, I agree that that might perhaps have been nice to mention it in the news item (although IMHO that's the sort of information the man pages are there for), but it *is* crystal clear in the docs, or do you not count the man pages to the docs? Ok, you're right... :) AFAIK eselect profile uses the new location, but I don't remember how precisely I moved it (not that it matters). I just tried changing it eselect profile set 3 eselect profile set 1 and it didn't create the link in /etc/portage, it is still in /etc... Not sure why the two preceeding dots are there in the current one in /etc, but they are... The current location is /etc/make.conf, right? Then ../usr/[...] will resolve to /usr/[...], whereas your ln command above will resolve to /etc/usr/[...], which is, erm, wrong :) . So, to do this manually just: ~ ln -s make.profile /usr/portage/profiles/default/linux/amd64/13.0 ~ rm /etc/make.profile ?
Re: [gentoo-user] Question re: make.conf/profile location change
Am Sun, 11 Aug 2013 13:30:57 -0400 schrieb Tanstaafl tansta...@libertytrek.org: On 2013-08-11 1:06 PM, Marc Joliet mar...@gmx.de wrote: Yes, I agree that that might perhaps have been nice to mention it in the news item (although IMHO that's the sort of information the man pages are there for), but it *is* crystal clear in the docs, or do you not count the man pages to the docs? Ok, you're right... :) AFAIK eselect profile uses the new location, but I don't remember how precisely I moved it (not that it matters). I just tried changing it eselect profile set 3 eselect profile set 1 and it didn't create the link in /etc/portage, it is still in /etc... Ah, then it *preserves* the current location. I have it in /etc/portage and eselect profile kept it there, too. However, I just checked and if you delete make.profile and then re-create it with eselect profile it is created in /etc/portage. Not sure why the two preceeding dots are there in the current one in /etc, but they are... The current location is /etc/make.conf, right? Then ../usr/[...] will resolve to /usr/[...], whereas your ln command above will resolve to /etc/usr/[...], which is, erm, wrong :) . So, to do this manually just: ~ ln -s make.profile /usr/portage/profiles/default/linux/amd64/13.0 ~ rm /etc/make.profile ? I guess so. Or rm /etc/make.profile eselect profile set whatever as described above. HTH -- Marc Joliet -- People who think they know everything really annoy those of us who know we don't - Bjarne Stroustrup signature.asc Description: PGP signature
Re: [gentoo-user] Question re: make.conf/profile location change
On 11/08/2013 18:48, Tanstaafl wrote: On 2013-08-11 12:03 PM, Marc Joliet mar...@gmx.de wrote: When in doubt, read the man page (make.conf(5)): [...] DESCRIPTION This file contains various variables that are used by Portage. Portage will check the currently-defined environment variables first for any settings. If no environ‐ ment settings are found, Portage then checks the make.conf files. Both /etc/make.conf and /etc/portage/make.conf are checked (if present), and settings from /etc/portage/make.conf will override settings from /etc/make.conf. [...] Thanks... my point was more that the news item didn't explain this - also, this answers as to make.conf, but what about make.profile? I just don't like being forced to assume, or 'test for myself', when it could be made crystal clear in the news item/docs. Also, would ~ cd /etc/portage ~ ln -s make.profile ../usr/portage/profiles/default/linux/amd64/13.0 No. That links a file in /etc/portage to something that doesn't exist (arguments wrong way round), and the .. parent directory doesn't belong there at all: cd /etc/portage ln -s $POSTDIR/profiles/path/to/profile/you/want profile.conf Be the right way to create the make.profile symlink in the new location? Not sure why the two preceeding dots are there in the current one in /etc, but they are... On 2013-08-11 12:16 PM, Alan McKinnon alan.mckin...@gmail.com wrote: My question is why do you have files in both locations? I don't... I was getting ready to change these, and was just asking the question... ;) new overrides old in this case -- Alan McKinnon alan.mckin...@gmail.com