• WRKSRC and USE_RC_SUBR collision (was Re: WRKSRC problem in Go port pulling sources from Codeberg + Go Modules via GH_TUPLE)

    From Yusuf Yaman@nxjoseph@FreeBSD.org to muc.lists.freebsd.ports on Thu Nov 5 12:23:39 2026
    From Newsgroup: muc.lists.freebsd.ports

    Hi,

    I couldn't come up with a solution for the problem below.

    I see that Codeberg's release archives do extract like hydroxide-0.2.33/bla/bla but when using Forgejo, it seems it don't keep
    the versioning number, so just hydroxide/bla/bla. And I have a
    USE_RC_SUBR pointing to hydroxide, so a WRKSRC and USE_RC_SUBR collision happens.

    Thanks in advance.

    On 10/30/26 17:30, Yusuf Yaman wrote:
    The big problem is solved but currently my USE_RC_SUBR=${PORTNAME}
    conflicts with my WRKRSC=${PORTNAME}. I guess that would be easier to
    solve but I don't know yet.


    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Gleb Popov@arrowd@freebsd.org to muc.lists.freebsd.ports on Thu Nov 5 12:51:36 2026
    From Newsgroup: muc.lists.freebsd.ports

    On Thu, Nov 5, 2026 at 12:24rC>PM Yusuf Yaman <nxjoseph@freebsd.org> wrote:

    Hi,

    I couldn't come up with a solution for the problem below.

    I see that Codeberg's release archives do extract like hydroxide-0.2.33/bla/bla but when using Forgejo, it seems it don't keep
    the versioning number, so just hydroxide/bla/bla. And I have a
    USE_RC_SUBR pointing to hydroxide, so a WRKSRC and USE_RC_SUBR collision happens.
    What collision exactly? Any error message?
    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Gleb Popov@arrowd@freebsd.org to muc.lists.freebsd.ports on Thu Nov 5 13:10:29 2026
    From Newsgroup: muc.lists.freebsd.ports

    On Thu, Nov 5, 2026 at 1:03rC>PM Yusuf Yaman <nxjoseph@freebsd.org> wrote:

    Hi,

    Like this:

    Configuring for hydroxide-0.2.33
    /bin/sh: cannot create /userdata/usr/ports/mail/hydroxide/work/hydroxide: Is a directory

    Thanks.
    Ah, right, that's unfortunate. This is what we have in Mk/bsd.port.mk:
    . if defined(NO_WRKSUBDIR)
    # Some ports have DISTNAME=PORTNAME, and USE_RC_SUBR=PORTNAME, in those case,
    # the rc file will conflict with WRKSRC, as WRKSRC is artificial, make it the
    # most unlikely to conflict as we can.
    WRKSRC?= ${WRKDIR}/${PKGNAME}
    EXTRACT_WRKDIR:= ${WRKSRC}
    . else
    ...
    So it seems that defining NO_WRKSUBDIR=yes should fix your issue.
    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.22a-Linux NewsLink 1.2