Saturday, August 08, 2026

Re: Handle /usr/ports/infrastructure/db/user.list locally

Just pick a number higher or lower than the range in use and add it locally. Suggest doing this sat the top or middle of the list rather than the end to reduce the chance of merge conflicts in user.list


-- 
  Sent from a phone, apologies for poor formatting.


On 8 August 2026 13:28:37 Christian Schulte <cs@schulte.it> wrote:

Hi porters,

the Porting Guide [1] mentions this:

"20. If the application needs to create a user or a group, choose the
lowest free id from /usr/ports/infrastructure/db/user.list for your port
to use and don't forget to include that file in your commit."

I would like to create a port e.g. at /usr/ports/localhost/localport
which needs to add a user. How to handle the user.list file, if it is
not going to get committed? Whatever user id I would choose, it will
certainly lead to conflicts whenever some other port starts using the
same ids. How to handle this locally without conflicting with others?

Regards,
-- 
Christian

[1] <https://www.openbsd.org/faq/ports/guide.html>

No comments:

Post a Comment