getting PKGNAME from CONFLICTS

Mark Millard marklmi at yahoo.com
Tue Aug 14 19:05:28 UTC 2018


Dan Langille dan at langille.org wrote on
Tue Aug 14 17:54:01 UTC 2018 :

> . . .
> At https://dev.freshports.org/www/p5-CGI/ you can see:
> 
>     CONFLICTS: p5-CGI.pm-[1-3]*
> . . .
> To extract the PKGNAME values from the CONFLICTS I will need to remove everything after the trailing dash.
> . . .

p5-
vs.
p5-CGI.pm-
vs.
p5-CGI.pm-[1-

It looks to me like "trailing dash" probably has a
complicated definition where some "-"(s) may exist
that are to be ignored after the one of interest.
In the example I'm guessing that the middle
"-" is intended (so "p5-CGI.pm-").


===
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)



More information about the freebsd-ports mailing list