FreeBSD Bugzilla – Attachment 229785 Details for
Bug 260110
devel/dub: fix build with LLVM 13.0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for devel/dub
dub.diff (text/plain), 1.46 KB, created by
Hiroo Ono
on 2021-11-29 11:11:48 UTC
(
hide
)
Description:
patch for devel/dub
Filename:
MIME Type:
Creator:
Hiroo Ono
Created:
2021-11-29 11:11:48 UTC
Size:
1.46 KB
patch
obsolete
>diff --git a/devel/dub/Makefile b/devel/dub/Makefile >index 14c363c6c..7a23eacb8 100644 >--- a/devel/dub/Makefile >+++ b/devel/dub/Makefile >@@ -1,5 +1,6 @@ > PORTNAME= dub > PORTVERSION= 1.14.0 >+PORTREVISION= 1 > DISTVERSIONPREFIX= v > CATEGORIES= devel > >@@ -17,8 +18,15 @@ GH_ACCOUNT= dlang > > PLIST_FILES= bin/${PORTNAME} > >+.include <bsd.port.pre.mk> >+ > post-patch: > @${REINPLACE_CMD} -e 's|%%PORTVERSION%%|${PORTVERSION}|g' ${WRKSRC}/source/dub/version_.d >+.if (${OSVERSION} >= 1400042) >+ @${REINPLACE_CMD} -e 's|%%LDFLAGS%%|-L=-Wl,-z,nostart-stop-gc|g' ${WRKSRC}/build.sh >+.else >+ @${REINPLACE_CMD} -e 's|%%LDFLAGS%%||g' ${WRKSRC}/build.sh >+.endif > > do-build: > @cd ${WRKSRC} && ${SH} build.sh >@@ -26,4 +34,4 @@ do-build: > do-install: > ${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}/${PREFIX}/bin/${PORTNAME} > >-.include <bsd.port.mk> >+.include <bsd.port.post.mk> >diff --git a/devel/dub/files/patch-build.sh b/devel/dub/files/patch-build.sh >index 10c9c43d7..83d01b851 100644 >--- a/devel/dub/files/patch-build.sh >+++ b/devel/dub/files/patch-build.sh >@@ -21,7 +21,7 @@ > > echo Running $DMD... > -$DMD -ofbin/dub -g -O -w -version=DubUseCurl -version=DubApplication -Isource $* $LIBS @build-files.txt >-+$DMD -ofbin/dub -O -w -version=DubUseCurl -version=DubApplication -Isource $* $LIBS @build-files.txt >++$DMD -ofbin/dub -O -w -version=DubUseCurl -version=DubApplication -Isource %%LDFLAGS%% $* $LIBS @build-files.txt > bin/dub --version > echo DUB has been built as bin/dub. > echo
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 260110
:
229785
|
231648