Hmm... Seemingly Forgejo's architectural bug (or mis-configurtion
in Codeberg).
Downloaded 0.2.32 from GitHub and 0.2.33 from Codeerg,
0.2.32 on GitHub has top directory name "hydroxide-0.2.32"
while 0.2.33 on Codeberg has top directory ame "hydroxide".
Renaming the directory as ${PORTNAME}-${DISTVERSIONFULL}
after extract (using post-extract: target) could help, but maybe
cause another issue in Mk/bsd.sites.mk...
Not sure, but if you can put rc.d script in some newly created
subdirectory under ${WRKDIR} and stage it from there, possbily
better. (I've never managed to maintain ports having rc.d scripts.)
Regards.
On Thu, 5 Nov 2026 20:51:11 +0300
Yusuf Yaman <[email protected]> wrote:
> Hi.
>
> Thanks but unfortunately that doesn't help either :/
>
> Also you get to have some delay after first `make`.
>
> /!\ hydroxide-0.2.33: Makefile warnings, please consider fixing /!\
>
> You are using USE_FORGEJO and WRKSRC is set which is wrong. Set FJ_PROJECT
> correctly or set WRKSRC_SUBDIR and remove WRKSRC entirely.
>
> On 11/5/26 20:36, Tomoaki AOKI wrote:
> > Hi.
> >
> > Just an idea (not tested), but does overriding something like
> >
> > WRKSRC= ${WRKDIR}/dist/${PKGNAME}
> >
> > in ports Makefile help?
> >
> > Regards.
> >
> >
> > On Thu, 5 Nov 2026 19:59:14 +0300
> > Yusuf Yaman <[email protected]> wrote:
> >
> >> Yes, I was given a look to that code block but I guess I am out of luck.
> >>
> >> Hmm, just tried with NO_WRKSUBDIR and this happens:
> >>
> >> mv: rename /userdata/usr/ports/mail/hydroxide/work/bbolt-1.5.0 to
> >> /userdata/usr/ports/mail/hydroxide/work/hydroxide/vendor/go.etcd.io/bbolt:
> >> No such file or directory
> >>
> >> yusuf@freebsd:~/doc/git/ports/mail/hydroxide $ find work/ -maxdepth 2
> >> work/
> >> work/hydroxide
> >> work/hydroxide/hydroxide
> >> work/hydroxide/go-crypto-1.5.2
> >> work/hydroxide/circl-1.6.5
> >> work/hydroxide/go-bcrypt-6e724a1baa63
> >> work/hydroxide/go-imap-1.2.1
> >> work/hydroxide/go-mbox-1.0.4
> >> work/hydroxide/go-message-0.18.2
> >> work/hydroxide/go-sasl-b788ff22d5a6
> >> work/hydroxide/go-smtp-0.25.0
> >> work/hydroxide/go-vcard-0.1.0
> >> work/hydroxide/go-webdav-0.7.0
> >> work/hydroxide/bbolt-1.5.0
> >> work/hydroxide/crypto-0.58.0
> >> work/hydroxide/sys-0.49.0
> >> work/hydroxide/term-0.47.0
> >> work/hydroxide/text-0.43.0
> >> work/hydroxide/vendor
> >>
> >> On 11/5/26 13:10, Gleb Popov wrote:
> >>> On Thu, Nov 5, 2026 at 1:03 PM Yusuf Yaman<[email protected]> 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.
> >
>
--
Tomoaki AOKI <[email protected]>