Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Error in the handbook / installation instructions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
DanielC
n00b
n00b


Joined: 07 Sep 2015
Posts: 25
Location: Sweden

PostPosted: Mon Sep 07, 2015 11:36 pm    Post subject: Error in the handbook / installation instructions Reply with quote

Hello,

On this page,

https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Base

the handbook says to update the SYNC variable in make.conf using:

Code:
root #mirrorselect -i -r -o >> /mnt/gentoo/etc/portage/make.conf


Then later the user is supposed to chroot and run emerge-webrsync, but when you do that, you get some warnings:

Code:

!!! SYNC setting found in make.conf.
   This setting is Deprecated and no longer used.  Please ensure your 'sync-type' and 'sync-uri' are set correctly in /etc/portage/repos.conf/gentoo.conf


So it looks like the handbook needs to be updated. I don't know what 'sync-type' and 'sync-uri' are, but apparently that's what I'm supposed to be using now.

In addition to this, I also saw other warnings:

Code:

!!! Section 'x-portage' in repos.conf has location attribute set to nonexistent directory: '/usr/portage'
!!! Section 'gentoo' in repos.conf has location attribute set to nonexistent directory: '/usr/portage'
!!! Invalid Repository Location (not a dir): '/usr/portage'


So, that's pretty self explanatory, except that I do appear to have a /usr/portage directory. Maybe it was produced by emerge-webrsync though.

Anyway, I just thought I'd let you know.
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3100
Location: Illinois, USA

PostPosted: Tue Sep 08, 2015 1:03 am    Post subject: Reply with quote

That definitely has to be updated. Make sure that you do have a /usr/portage

Quote:
gentoo ~ # ls -al /usr/portage
total 1284
drwxr-xr-x 170 portage portage 4096 Aug 25 00:10 .
drwxr-xr-x 17 root root 4096 Jul 12 11:09 ..

+many more


repos.conf is very recent. I'm not sure I have it right myself, but this is working:
Quote:
gentoo ~ # locate repos.conf
/etc/portage/repos.conf
/etc/portage/repos.conf/gentoo.conf
/etc/portage/repos.conf/layman.conf
/etc/portage/repos.conf/local.conf
/usr/share/portage/config/repos.conf
gentoo ~ # cat /etc/portage/repos.conf/gentoo.conf
[DEFAULT]
main-repo = gentoo

[gentoo]
location = /usr/portage
sync-type = rsync
#sync-uri = rsync://192.168.0.102/gentoo-portage
sync-uri = rsync://rsync11.us.gentoo.org/gentoo-portage
#sync-uri = rsync://rsync15.us.gentoo.org/gentoo-portage
#sync-uri = rsync://rsync24.us.gentoo.org/gentoo-portage
#sync-uri = rsync://rsync25.us.gentoo.org/gentoo-portage
#sync-uri = rsync://rsync26.us.gentoo.org/gentoo-portage
#sync-uri = rsync://rsync3.us.gentoo.org/gentoo-portage
#sync-uri = rsync://rsync5.us.gentoo.org/gentoo-portage
#sync-uri = rsync://rsync6.us.gentoo.org/gentoo-portage
Back to top
View user's profile Send private message
Pednick
n00b
n00b


Joined: 19 Nov 2014
Posts: 19

PostPosted: Wed Sep 16, 2015 3:46 pm    Post subject: Reply with quote

Also the fact that is no package.use file but a package.use directory instead and yes I know there's usually a file in that directory that is used for that purpose, needs updating. I'm guessing there's a lot more but you get it.
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3100
Location: Illinois, USA

PostPosted: Wed Sep 16, 2015 4:08 pm    Post subject: Reply with quote

package.use as a file is still allowed but deprecated. I'm not sure that was a good idea. I did convert when the emul-libs were removed from the tree and I created a wine.use as well as a monolithic as suggested by a wiki. Some package (I think it was a portage update) then created file_portage.use which seems to duplicate "monolithic". They got terribly tangled, now I have one file, namely /etc/portage/package.use/package.use. I fail to see the "improvement" especially when portage keeps suggesting to add things to /etc/portage/package.use.

I keep thinking of writing a GUI program with a data base to manage these files. There is "porthole" but I don't understand how to use it.

Things seem to go in fads. There is a fad to replace configuration files with configuration directories. There is a fad to replace environmental variables with files. Great confusion arises when the old method is deprecated but still allowed. The old and new methods tend to trip over each other. I wish the old methods were simply no longer allowed and detailed conversion instructions given, even when I prefer the old methods.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2617

PostPosted: Wed Sep 16, 2015 4:14 pm    Post subject: Re: Error in the handbook / installation instructions Reply with quote

DanielC wrote:
Code:

!!! SYNC setting found in make.conf.
   This setting is Deprecated and no longer used.  Please ensure your 'sync-type' and 'sync-uri' are set correctly in /etc/portage/repos.conf/gentoo.conf

So it looks like the handbook needs to be updated.

See bug 543848.
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3100
Location: Illinois, USA

PostPosted: Wed Sep 16, 2015 4:23 pm    Post subject: Re: Error in the handbook / installation instructions Reply with quote

charles17 wrote:
DanielC wrote:
Code:

!!! SYNC setting found in make.conf.
   This setting is Deprecated and no longer used.  Please ensure your 'sync-type' and 'sync-uri' are set correctly in /etc/portage/repos.conf/gentoo.conf

So it looks like the handbook needs to be updated.

See bug 543848.


Six months later and no action. No one likes to do documentation but professionals know it's part of the job.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2617

PostPosted: Wed Sep 16, 2015 4:30 pm    Post subject: Reply with quote

Tony0945 wrote:
package.use as a file is still allowed but deprecated. ...

From man 5 portage and from https://wiki.gentoo.org/wiki//etc/portage/package.use I cannot see that using it as a file is deprecated.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2617

PostPosted: Wed Sep 16, 2015 4:33 pm    Post subject: Re: Error in the handbook / installation instructions Reply with quote

DanielC wrote:
I don't know what 'sync-type' and 'sync-uri' are, but apparently that's what I'm supposed to be using now.

See https://wiki.gentoo.org/wiki//etc/portage/repos.conf
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Wed Sep 16, 2015 4:48 pm    Post subject: Reply with quote

Pednick wrote:
Also the fact that is no package.use file but a package.use directory instead and yes I know there's usually a file in that directory that is used for that purpose, needs updating. I'm guessing there's a lot more but you get it.


Yes and no.

Both are supported. Files and directory.

e.g.

/etc/make.conf or /etc/portage/make.conf (which seems to be newer, was not hte case as i installed gentoo the first time)


A few backup files here, but as you can see files also work.
Code:
ls -al /etc/portage/
total 152
drwxr-xr-x   9 root root  4096 Sep 16 10:47 .
drwxr-xr-x 114 root root 12288 Sep 16 18:03 ..
drwxr-xr-x   2 root root  4096 Sep 10 21:06 bin
drwxr-xr-x   3 root root  4096 Jun  7 21:05 env
-rw-r--r--   1 root root   611 Jun  7 21:05 package.env
-rw-r--r--   1 root root    92 Sep  8 22:57 package.keywords
-rw-r--r--   1 root root    92 Sep  8 22:56 package.keywordsy
-rw-r--r--   1 root root   527 Sep 16 11:46 package.mask
-rw-------   1 root root   121 Sep  3  2009 package.mask.save
-rw-r--r--   1 root root   230 Jun 19  2012 package.mask.save.1
-rw-r--r--   1 root root    30 Sep  8 22:56 package.unmask
-rw-r--r--   1 root root  1989 Sep 16 12:43 package.use
-rw-r--r--   1 root root 70247 Mär 19 20:19 package.use_old
-rw-r--r--   1 root root    17 Aug 21 21:41 package_accept_keywords
drwxr-xr-x   3 root root  4096 Aug 22 23:56 patches
drwxr-xr-x   2 root root  4096 Sep 10 21:06 postsync.d
drwxr-xr-x   2 root root  4096 Aug 24 00:57 repo.postsync.d
drwxr-xr-x   2 root root  4096 Sep  6 22:11 repos.conf
drwxr-xr-x   4 root root  4096 Nov 29  2014 savedconfig
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Wed Sep 16, 2015 4:53 pm    Post subject: Re: Error in the handbook / installation instructions Reply with quote

Tony0945 wrote:
charles17 wrote:
DanielC wrote:
Code:

!!! SYNC setting found in make.conf.
   This setting is Deprecated and no longer used.  Please ensure your 'sync-type' and 'sync-uri' are set correctly in /etc/portage/repos.conf/gentoo.conf

So it looks like the handbook needs to be updated.

See bug 543848.


Six months later and no action. No one likes to do documentation but professionals know it's part of the job.


You may vote for the bug!

Nothing unusual.

Bugs stay unconfirmed, regardless on how many peeps reply / forum posts. Sigh. Wasted efforts, I stopped utilizing bugzilla.


The thing is, peeps who bother create overlays or patches in their boxes. And hardly any patches find their way in the offical portage tree. when i had an issue i mostly found a working ebuild in an overlay or found a patch here or on the bugs site.

Lucky gentoo is hacker friendly that you can fix anything when you realize where the issue is. Or where the culprit maybe is.


Quote:
package.use as a file is still allowed but deprecated. I'm not sure that was a good idea.


well it has its benefit

grep BLABA file (I need that several times a week because i do not want to pull in unneded packages or features) But I think these are advandced features which the ordinary user hardly utilizes. most set the use flags probably once and than use meta packages...

e.g. get rid of the ruby slot packages which are just lint ... (same applies for python, icedtea-bin, ...)

Code:
grep ruby /etc/portage/package.use
dev-ruby/* -ruby_targets_ruby22 -ruby_targets_ruby19 -ruby_targets_ruby20 ruby_targets_ruby_21
virtual/* -ruby_targets_ruby22 -ruby_targets_ruby19 -ruby_targets_ruby20 ruby_targets_ruby21




but how do you do that when you have several directories with files, uff?
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2617

PostPosted: Thu Sep 17, 2015 12:20 pm    Post subject: Reply with quote

DanielC wrote:
Code:

!!! SYNC setting found in make.conf.
   This setting is Deprecated and no longer used.  Please ensure your 'sync-type' and 'sync-uri' are set correctly in /etc/portage/repos.conf/gentoo.conf

So it looks like the handbook needs to be updated.

And make.conf also bug 560702.
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3100
Location: Illinois, USA

PostPosted: Thu Sep 17, 2015 1:28 pm    Post subject: Reply with quote

charles17 wrote:
DanielC wrote:
Code:

!!! SYNC setting found in make.conf.
   This setting is Deprecated and no longer used.  Please ensure your 'sync-type' and 'sync-uri' are set correctly in /etc/portage/repos.conf/gentoo.conf

So it looks like the handbook needs to be updated.

And make.conf also bug 560702.


Don't entirely agree. If git is the default then git has to be added to the stage3 and the profiles. Sync is already there. The default repos should stay as sync.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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