tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg_add -m/parse_cross() documentation



> Date: Sat, 4 Jan 2025 17:36:06 +0100
> From: Edgar Fuß <ef%math.uni-bonn.de@localhost>
> 
> I was going to add an option to pkg_add to allow it to install packages 
> (meant for use with -P, of course) for a different NetBSD version, found out 
> where to add it, looked at -current to see an even more general approach is 
> already there.
> 
> But there seems to be no documentation on this feature (besides the one in *.c 
> format).

Sorry, looks like I forgot to update the man page when I added this!

> If I read that documentation correctly, I would need to use
> 	-m "NetBSD/eniac 0.8.15"
> is there any reason for not allowing
> 	-m "NetBSD 0.8.15"
> other than it appears strange for an option originally specifying the arch 
> only to possibly specify everything /but/ the arch?

Mainly because:

(a) I didn't think of just specifying the versioned-OS without the
    machine architecture and didn't have a need for that,

(b) I did have a need for the full syntax in pkgsrc cross-builds and I
    wanted to make the criterion for recognizing the full syntax
    simple so it would be low-risk to adopt.

But it would probably be reasonable to look for a space instead of a
slash.  Also it looks like when I fixed one instance of strchr abuse I
didn't fix the other for some reason, oops.  I think a patch to add
the versioned-OS syntax would be fine (and a fix for the strchr
abuse).


Home | Main Index | Thread Index | Old Index