DPB can't do it's job in 6.0

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

DPB can't do it's job in 6.0

nothingness
Hi misc@


   I'm a bit disappointed with dpb in 6.0, I haven't tried the chrooting
stuff but was hoping it could still work as before. All I can get it to
do now is start downloading src tarballs, and more often than not fail
at that (manual make -j5 package will build anything). It can barely
build anything, much less x11/gnome. I'd love to know what I can to do
rectify this...


Cheers,


Noth

Reply | Threaded
Open this post in threaded view
|

Re: DPB can't do it's job in 6.0

Stuart Henderson
On 2016-08-19, Noth <[hidden email]> wrote:

> Hi misc@
>
>
>    I'm a bit disappointed with dpb in 6.0, I haven't tried the chrooting
> stuff but was hoping it could still work as before. All I can get it to
> do now is start downloading src tarballs, and more often than not fail
> at that (manual make -j5 package will build anything). It can barely
> build anything, much less x11/gnome. I'd love to know what I can to do
> rectify this...
>
>
> Cheers,
>
>
> Noth
>
>

The chroot support is currently optional, but you do need to create the
user accounts if sysmerge didn't do it for you (_pbuuld, _pfetch), and
start dpb as root.

Beyond that, we need command lines, logs and console output to help if
things aren't working.

Reply | Threaded
Open this post in threaded view
|

Re: DPB can't do it's job in 6.0

Christian Weisgerber
On 2016-08-19, Stuart Henderson <[hidden email]> wrote:

> The chroot support is currently optional, but you do need to create the
> user accounts if sysmerge didn't do it for you (_pbuuld, _pfetch), and
> start dpb as root.

No, running dpb as root is also optional.

--
Christian "naddy" Weisgerber                          [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: DPB can't do it's job in 6.0

patrick keshishian
On 8/19/16, Christian Weisgerber <[hidden email]> wrote:
> On 2016-08-19, Stuart Henderson <[hidden email]> wrote:
>
>> The chroot support is currently optional, but you do need to create the
>> user accounts if sysmerge didn't do it for you (_pbuuld, _pfetch), and
>> start dpb as root.
>
> No, running dpb as root is also optional.

true, but then it doesn't switch users to _p{build,fetch}. it runs
as user starting it.  Or am I missing a subtlety?

--patrick

Reply | Threaded
Open this post in threaded view
|

Re: DPB can't do it's job in 6.0

Christian Weisgerber
patrick keshishian:

> > No, running dpb as root is also optional.
>
> true, but then it doesn't switch users to _p{build,fetch}. it runs
> as user starting it.

That is correct.

Setting up your system so that dpb switches to different users is
great for bulk builds but renders ports development more or less
impossible.

--
Christian "naddy" Weisgerber                          [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: DPB can't do it's job in 6.0

nothingness
OK I've worked out most of the problem: permissions and ownership of course!

/usr/ports/distfiles must be owned by _pfetch:_pfetch
/usr/ports/logs /usr/ports/packages /usr/ports/plist /usr/ports/pobj
need to be owned by  _pbuild:_pbuild .

Also, if you're signing with your own key, it must also be owned by
_pbuild:_pbuild .

Once that's all sorted out building works as root with dpb subdir/port.
However I can't seem to make it use my list of ports to build, it just
complains about a bad pkgpath. This functionality worked in 5.9, doesn't
anymore, which is rather annoying.

Cheers,

Noth

Reply | Threaded
Open this post in threaded view
|

Re: DPB can't do it's job in 6.0

trondd-2
On Mon, August 22, 2016 11:17 am, Noth wrote:
> Once that's all sorted out building works as root with dpb subdir/port.
> However I can't seem to make it use my list of ports to build, it just
> complains about a bad pkgpath.

Where do you have the file containing the list?  Even on 5.9 you can't
have it in certain places (such as /root) because it'll interprete that as
a pkgpath.

Tim.

Reply | Threaded
Open this post in threaded view
|

Re: DPB can't do it's job in 6.0

nothingness
On 22/08/16 17:29, trondd wrote:

> On Mon, August 22, 2016 11:17 am, Noth wrote:
>> Once that's all sorted out building works as root with dpb subdir/port.
>> However I can't seem to make it use my list of ports to build, it just
>> complains about a bad pkgpath.
> Where do you have the file containing the list?  Even on 5.9 you can't
> have it in certain places (such as /root) because it'll interprete that as
> a pkgpath.
>
> Tim.
>
>
Hm it is in /root... If I move it to /home it's no longer an issue. Thanks!

Reply | Threaded
Open this post in threaded view
|

Re: DPB can't do it's job in 6.0

Marc Espie-2
In reply to this post by nothingness
On Fri, Aug 19, 2016 at 08:06:09PM +0200, Noth wrote:
> Hi misc@
>
>
>   I'm a bit disappointed with dpb in 6.0, I haven't tried the chrooting
> stuff but was hoping it could still work as before. All I can get it to do
> now is start downloading src tarballs, and more often than not fail at that
> (manual make -j5 package will build anything). It can barely build anything,
> much less x11/gnome. I'd love to know what I can to do rectify this...

That's shitty reporting.  Exactly zero useful info in there.

I'm impressed that my fellow developers did spend some time figuring
out all the stuff you didn't by yourself.

Thanks for wasting their time that they could have used to do something
useful instead.

Reply | Threaded
Open this post in threaded view
|

Re: DPB can't do it's job in 6.0

nothingness
On 25/08/16 14:39, Marc Espie wrote:

> On Fri, Aug 19, 2016 at 08:06:09PM +0200, Noth wrote:
>> Hi misc@
>>
>>
>>    I'm a bit disappointed with dpb in 6.0, I haven't tried the chrooting
>> stuff but was hoping it could still work as before. All I can get it to do
>> now is start downloading src tarballs, and more often than not fail at that
>> (manual make -j5 package will build anything). It can barely build anything,
>> much less x11/gnome. I'd love to know what I can to do rectify this...
> That's shitty reporting.  Exactly zero useful info in there.
>
> I'm impressed that my fellow developers did spend some time figuring
> out all the stuff you didn't by yourself.
>
> Thanks for wasting their time that they could have used to do something
> useful instead.
I apologize for wasting your time but surely it should be indicated
somewhere that some directories now need owning by _pfetch or _pbuild,
or better they should have proper ownership when dpb is run as root (a
check made on startup maybe?). I should have looked at the various logs
beforehand I agree. I'll do better next time...

Yours sincerely,

Noth

Reply | Threaded
Open this post in threaded view
|

Re: DPB can't do it's job in 6.0

trondd-2
On Thu, August 25, 2016 6:47 pm, Noth wrote:

>
> I apologize for wasting your time but surely it should be indicated
> somewhere that some directories now need owning by _pfetch or _pbuild,
> or better they should have proper ownership when dpb is run as root (a
> check made on startup maybe?). I should have looked at the various logs
> beforehand I agree. I'll do better next time...
>
> Yours sincerely,
>
> Noth
>

It's in the dpb man page under "The Security Model of DPB".

Tim.