[Engine-devel] Broken devel setup on Gentoo?
Alon Bar-Lev
alonbl at redhat.com
Wed Jan 1 11:15:24 UTC 2014
----- Original Message -----
> From: "Doron Fediuck" <dfediuck at redhat.com>
> To: "Alon Bar-Lev" <alonbl at redhat.com>
> Cc: engine-devel at ovirt.org
> Sent: Wednesday, January 1, 2014 1:09:48 PM
> Subject: Re: [Engine-devel] Broken devel setup on Gentoo?
>
>
> On 01/01/2014 11:23 AM, Alon Bar-Lev wrote:
> >
> > ----- Original Message -----
> >> From: "Doron Fediuck" <dfediuck at redhat.com>
> >> To: "Alon Bar-Lev" <alonbl at redhat.com>
> >> Cc: engine-devel at ovirt.org
> >> Sent: Wednesday, January 1, 2014 11:18:45 AM
> >> Subject: Re: [Engine-devel] Broken devel setup on Gentoo?
> >>
> >>
> >> On 01/01/2014 10:57 AM, Alon Bar-Lev wrote:
> >>> ----- Original Message -----
> >>>> From: "Doron Fediuck" <dfediuck at redhat.com>
> >>>> To: "Alon Bar-Lev" <alonbl at redhat.com>
> >>>> Cc: engine-devel at ovirt.org
> >>>> Sent: Wednesday, January 1, 2014 10:31:07 AM
> >>>> Subject: Re: [Engine-devel] Broken devel setup on Gentoo?
> >>>>
> >>>>
> >>>> On 12/31/2013 08:10 PM, Alon Bar-Lev wrote:
> >>>>> ----- Original Message -----
> >>>>>> From: "Doron Fediuck" <dfediuck at redhat.com>
> >>>>>> To: "Alon Bar-Lev" <alonbl at redhat.com>
> >>>>>> Cc: engine-devel at ovirt.org
> >>>>>> Sent: Tuesday, December 31, 2013 7:17:40 PM
> >>>>>> Subject: Re: [Engine-devel] Broken devel setup on Gentoo?
> >>>>>>
> >>>>>> An unrelated issue I noticed when moving from 3.3 branch to master I
> >>>>>> re-built everything,
> >>>>>> yet I was unable to login. I had to update the DB with a new password
> >>>>>> to
> >>>>>> login.
> >>>>>> I suspect theres another issue here.
> >>>>>>
> >>>>> I am unsure I follow, you cannot use the same prefix for both branches.
> >>>>> What the exact sequence?
> >>>> 1. Built everything on ovirt-3.3 branch.
> >>>> => works well.
> >>>>
> >>>> 2. git checkout origin/master && git reset --hard origin/master && rm
> >>>> -rf share bin etc usr var
> >>>> 3. Cherry pick patch from gerrit
> >>>> 4. make clean install-dev
> >>>> 5. run setup
> >>>>
> >>>> => I'd expect db to be recreated. If not then we cannot login to the
> >>>> system.
> >>>>
> >>> Are you removing the pki keys? the entire configuration? why not remove
> >>> the
> >>> entire PREFIX?
> >>>
> >>> Database will not re-created if already exist, there will be an attempt
> >>> to
> >>> upgrade it, and as you removed the pki keys the password is cannot be
> >>> decrypted.
> >>>
> >>> If you remove PREFIX you should also drop/create database to start
> >>> scratch,
> >>> or just use another empty database when installing.
> >>>
> >>> Regards,
> >>> Alon
> >> I'm not using PREFIX.
> >> What are the alternatives?
> >>
> > how come[1]?
> >
> > $ make clean install-dev PREFIX=$HOME/ovirt-engine
> >
> > so you are running it as root and install into /usr/local?
> >
> > the entire concept of devenv is to use it as non root and install to user
> > accessible directory (aka PREFIX).
> >
> > if you want to start fresh (by removing the PREFIX) then you should also
> > have fresh (empty) database.
> >
> > Regards,
> > Alon Bar-Lev
> >
> > [1]
> > http://gerrit.ovirt.org/gitweb?p=ovirt-engine.git;a=blob;f=README.developer;hb=HEAD#l70
> I'm not using root.
> There's a special user account which has ~/ovirt-engine including the
> git repo inside.
> So the prefix is the same as the git repo and removing it removes git...
So you are using PREFIX, there is no other way to avoid installing into /usr/local which this user has no permission to write into.
$ make install-dev
<snip>
install: cannot change permissions of ‘/usr/local/etc/’: No such file or directory
install: cannot create directory ‘/usr/local/etc’: Permission denied
make[2]: *** [copy-recursive] Error 1
and using mixed git and PREFIX is highly not recommended as you do not know which files are being touched, make install-dev may actually overwrite your sources.
Alon
More information about the Devel
mailing list