Re: [gentoo-user] Re: Migrate from rsync to git for emerge --sync?

2021-10-12 Thread Rich Freeman
On Tue, Oct 12, 2021 at 9:22 PM Grant Edwards  wrote:
>
> On 2021-10-13, Rich Freeman  wrote:
> >
> > Profile selection is implemented as a symlink from
> > /etc/portage/make.profile.  If you move your repository, then you need
> > to re-select the profile since the symlink will be broken.
>
> Indeed. And the failure that produces is not at all graceful.
>
> I spent a little time trying to figure out where in the Wiki or docs
> that the rsync -> git migration steps should be documented, but I
> didn't find anyplace that looked like the right home for that info.
>

Moving from rsync to git probably doesn't require re-selecting the
profile.  However, if you move the path of the repository itself then
that would require re-selecting the profile regardless of whether the
method of syncing is changed.

I got the impression from your email that you moved the repository
when you switched.  If you ONLY renamed the old one but kept the same
exact path, then after it pulled the new repo the profile should have
remained working as far as I am aware.  If I'm understanding the
situation, then the correct place to put this in the wiki is in any
section pertaining to moving the repository (such as to /var/db or
whatever).  It wouldn't hurt to make a note in any instructions for
switching to git to be aware of the requirement if the opportunity is
taken to move the repository at the same time.  It is a pretty logical
time to do this.

The error messages may very well have been misleading though.  Portage
is a bit infamous for misleading error messages.

-- 
Rich



Re: [gentoo-user] Re: Migrate from rsync to git for emerge --sync?

2021-10-12 Thread Matt Connell
On Tue, 2021-10-12 at 21:18 -0400, Rich Freeman wrote:
> Profile selection is implemented as a symlink from
> /etc/portage/make.profile.  If you move your repository, then you
> need
> to re-select the profile since the symlink will be broken.

Ah, that would be it.  Thanks for explaining, I never knew how the
profile was actually handled.  Good to know.




[gentoo-user] Re: Migrate from rsync to git for emerge --sync?

2021-10-12 Thread Grant Edwards
On 2021-10-13, Rich Freeman  wrote:
> On Tue, Oct 12, 2021 at 9:01 PM Matt Connell  
> wrote:
>>
>> On Tue, 2021-10-12 at 21:14 +, Grant Edwards wrote:
>> > no profile selected
>>
>> I'm surprised you had gotten this far without a profile selected.
>> Maybe you had previously selected one that was deprecated at some point
>> and removed from the list?
>>
>
> Profile selection is implemented as a symlink from
> /etc/portage/make.profile.  If you move your repository, then you need
> to re-select the profile since the symlink will be broken.

Indeed. And the failure that produces is not at all graceful.

I spent a little time trying to figure out where in the Wiki or docs
that the rsync -> git migration steps should be documented, but I
didn't find anyplace that looked like the right home for that info.

> Probably doesn't need to be a symlink, or in the repo, which is I'm
> guessing how funtoo does mix-ins though I haven't actually checked
> (just create a custom profile with the appropriate parent entries).
> The Gentoo standard though is a symlink.






[gentoo-user] Re: Migrate from rsync to git for emerge --sync?

2021-10-12 Thread Grant Edwards
On 2021-10-13, Matt Connell  wrote:
> On Tue, 2021-10-12 at 21:14 +, Grant Edwards wrote:
>> no profile selected
>
> I'm surprised you had gotten this far without a profile selected.

I had a profile selected.

> Maybe you had previously selected one that was deprecated at some point
> and removed from the list?

I assume that 'mv /usr/portage /usr/portage-old' cause my profile
selecttion to "go away".


>
>
>





Re: [gentoo-user] Re: Migrate from rsync to git for emerge --sync?

2021-10-12 Thread Rich Freeman
On Tue, Oct 12, 2021 at 9:01 PM Matt Connell  wrote:
>
> On Tue, 2021-10-12 at 21:14 +, Grant Edwards wrote:
> > no profile selected
>
> I'm surprised you had gotten this far without a profile selected.
> Maybe you had previously selected one that was deprecated at some point
> and removed from the list?
>

Profile selection is implemented as a symlink from
/etc/portage/make.profile.  If you move your repository, then you need
to re-select the profile since the symlink will be broken.

Probably doesn't need to be a symlink, or in the repo, which is I'm
guessing how funtoo does mix-ins though I haven't actually checked
(just create a custom profile with the appropriate parent entries).
The Gentoo standard though is a symlink.

-- 
Rich



Re: [gentoo-user] Re: Migrate from rsync to git for emerge --sync?

2021-10-12 Thread Matt Connell
On Tue, 2021-10-12 at 21:14 +, Grant Edwards wrote:
> no profile selected

I'm surprised you had gotten this far without a profile selected. 
Maybe you had previously selected one that was deprecated at some point
and removed from the list?




Re: [gentoo-user] compton got masked?

2021-10-12 Thread caveman رَجُلُ الْكَهْفِ 穴居人
On Tuesday, October 12th, 2021 at 19:39, Daniel Pielmeier  
wrote:

> Portage should tell you why in the mask message!

me dumb.

i had to go all over the interwebs to get told by
someone in another continent that the answer is
already written right in the next line in my very
same terminal.

lel.




[gentoo-user] compton got masked?

2021-10-12 Thread caveman رَجُلُ الْكَهْفِ 穴居人
why?

ty,
cm.



[gentoo-user] Re: Migrate from rsync to git for emerge --sync?

2021-10-12 Thread Grant Edwards
On 2021-10-12, Rich Freeman  wrote:
> On Tue, Oct 12, 2021 at 4:02 PM Grant Edwards  
> wrote:
>>
>> Despite what multiple blog and wiki pages claim, it seems it's not as
>> simple as editing you gentoo.conf file. Do I need to wipe the contents
>> of /usr/portage and start with an emptry directory there?
>
> I believe so.  I'd just rename the directory and let it get
> re-created.  Then you can delete the old one when you are confident
> you don't need it.

Yep, I renamed the old one, switched the repo conf to the new /var/db
location, and let emrge --sync clone a new repo directory using
git.

The 'git clone' finished OK, but the sync still failed (with a very
obtuse Python exception and stack dump) when it got to the news
processing step. After a bit of googling I found a hint that failure
happens when there is no profile selected. I ran 'eselet profile set
N'. After that, the sync completed OK.

That seems like something that should be documented somewhere...

I'll see if I can find an appropriate spot in the Wiki.





Re: [gentoo-user] Migrate from rsync to git for emerge --sync?

2021-10-12 Thread Rich Freeman
On Tue, Oct 12, 2021 at 4:02 PM Grant Edwards  wrote:
>
> Despite what multiple blog and wiki pages claim, it seems it's not as
> simple as editing you gentoo.conf file. Do I need to wipe the contents
> of /usr/portage and start with an emptry directory there?

I believe so.  I'd just rename the directory and let it get
re-created.  Then you can delete the old one when you are confident
you don't need it.

-- 
Rich



[gentoo-user] Migrate from rsync to git for emerge --sync?

2021-10-12 Thread Grant Edwards
How do you migrate from rsync to git for 'emerge --sync'?

I changed my /etc/porttage/repos.conf/gentoo.conf file as shown in
various places, but when I try to do a sync, git barfs:

 # emerge --sync >>> Syncing repository 'gentoo' into '/usr/portage'...
 /usr/bin/git clone --depth 1 https://github.com/gentoo-mirror/gentoo.git .
 fatal: destination path '.' already exists and is not an empty directory.
 !!! git clone error in /usr/portage

Despite what multiple blog and wiki pages claim, it seems it's not as
simple as editing you gentoo.conf file. Do I need to wipe the contents
of /usr/portage and start with an emptry directory there?




Re: [gentoo-user] compton got masked?

2021-10-12 Thread Ionen Wolkens
On Tue, Oct 12, 2021 at 07:32:09PM +, caveman رَجُلُ الْكَهْفِ 穴居人 wrote:
> why?
> 
> ty,
> cm.
> 

Why not? It's a dead project that was forked as x11-misc/picom (aka
same codebase except it has an active upstream).

Compton itself was also a fork, there's long history of such and it's
better to just move on.
-- 
ionen


signature.asc
Description: PGP signature


Re: [gentoo-user] compton got masked?

2021-10-12 Thread Canek Peláez Valdés
‪On Tue, Oct 12, 2021 at 2:32 PM ‫caveman رَجُلُ الْكَهْفِ 穴居人‬‎ <
toraboracave...@protonmail.com> wrote:‬

> why?
>

>From [1]:

Development stopped by upstream. Switch to its actively developed fork,
x11-misc/picom.

Regards.
[1] https://gitweb.gentoo.org/repo/gentoo.git/tree/profiles/package.mask#n77
-- 
Dr. Canek Peláez Valdés
Profesor de Carrera Asociado C
Departamento de Matemáticas
Facultad de Ciencias
Universidad Nacional Autónoma de México


Re: [gentoo-user] compton got masked?

2021-10-12 Thread Daniel Pielmeier

caveman رَجُلُ الْكَهْفِ 穴居人 schrieb am 12.10.21 um 21:32:

why?

ty,
cm.



Portage should tell you why in the mask message!

https://archives.gentoo.org/gentoo-dev-announce/message/d9f2e6c5b001239852b1c686bbab026b

--
Regards
Daniel