Saturday, January 29, 2022

Re: Cannot build with root, cannot build with user

I don't have such partition.
Only /usr and other /usr/dir-s such as local.

I have only recently started using OpenBSD and as such - I haven't
predicted the need for such partition for ports.. I do regret it, but I'll
see if I can just put shit in the local directory as Omar recommended,
since that is an partition, and it is mounted with wx allowed.

If all fails, there is this dangerous option:
I have a crypto disk and on it (BSD FS of course) the last partition is my
home directory, and that's .. well.. optional. And as such - I could
probably back it up and as it has more than necessary space - not even 1%
used - I could downsize it potentially.
There's this growfs utility.. and then create the ports partition, as
hackers intended.

Have you done such partition manipulation yourself? Anything I should
watch out for?

Thank you for your time.
Best regards,
fossy.

> Just mount /usr/ports with wxallowed.
>
> --
> Sent from a phone, apologies for poor formatting.
>
> On 29 January 2022 19:52:17 fossy@dnmx.org wrote:
>
>> Hello, hacker Omar.
>>
>>> If space is a concern, you can just move the pobj directory (by setting
>>> WRKOBJDIR in mk.conf.) For ports like 0ad you still need to have the
>>> partition that holds WRKOBJDIR mounted with wxallowed.
>>
>> Soo what do you think about /usr/local ? It has wxallowed :/
>> I think I tried something similar.. or not.. I have poor memory.
>>
>>> Best Regards,
>>>
>>> Omar Polo
>>
>> Thank you for your time,
>> fossy
>>
>>
>>> anyway, without the actual output is difficult to see what it went
>>> wrong. clean everything, try to fix the permissions (`make
>>> fix-permissions') and attach the build log
>>
>> I understand. I did read about the fix-permissions in the man page, but
>> didn't understand where it goes.. probably my fault for not reading 100%
>> of it.. thank you, I will try that tomorrow.
>>
>>> fossy@dnmx.org writes:
>>>
>>>> Okay, so.. I am new to this, but I did read a few man pages.
>>>> Everything seems to install well until the build process - it says
>>>> that
>>>> I
>>>> cannot run it as root because it would mess up permissions (which is
>>>> good
>>>> to stop there), but then I cannot even run it as a normal user because
>>>> the
>>>> directory ports/pobj/locks is owned by root:wheel..
>>>>
>>>> The package in-question is 0ad, which also seems to brake because it
>>>> cannot set a few things, on the 7.0 GENERIC.MP#232 amd64 release(?)
>>>> OS.
>>>>
>>>> I compiled another package just fine..
>>>> And this was when the ports directory was on /usr/ports, and with the
>>>> above (0AD) port, I got a new ports tree, to the /usr/local/ports
>>>> because
>>>> I have more storage space on that partition, and also because it has
>>>> the
>>>> "wxallowed" flag for whatever reason it was needed.
>>>
>>> 0ad needs wxallowed because of its bundled copy of spidermonkey which
>>> needs it :/
>>>
>>> not directly linked to your problem, but I'd suggest against moving
>>> PORTSDIR. There are some scripts in infrastructure/bin (portcheck
>>> IIRC)
>>> that doesn't handle a custom PORTSDIR (I may be wrong).
>>>
>>> If space is a concern, you can just move the pobj directory (by setting
>>> WRKOBJDIR in mk.conf.) For ports like 0ad you still need to have the
>>> partition that holds WRKOBJDIR mounted with wxallowed.
>>>
>>> anyway, without the actual output is difficult to see what it went
>>> wrong. clean everything, try to fix the permissions (`make
>>> fix-permissions') and attach the build log
>>>
>>>> /etc/mk.conf :
>>>> PORTSDIR=/usr/local/ports
>>>> DISTDIR=/usr/distfiles
>>>> PACKAGE_REPOSITORY=/usr/packages
>>>>
>>>> Have a nice day, I hope I helped, even if it's a bit.
>>>
>>> Best Regards,
>>>
>>> Omar Polo
>>>
>>>
>
>

No comments:

Post a Comment