From c98392259786ea8ff8d30d9f4dcc8e7864d075ac Mon Sep 17 00:00:00 2001 From: Auri Date: Thu, 29 Oct 2020 11:47:37 +0200 Subject: [PATCH] dmd2.081: backport clean ld exit. --- srcpkgs/dmd2.081/patches/backport-ld-exit.patch | 11 +++++++++++ srcpkgs/dmd2.081/template | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/dmd2.081/patches/backport-ld-exit.patch diff --git a/srcpkgs/dmd2.081/patches/backport-ld-exit.patch b/srcpkgs/dmd2.081/patches/backport-ld-exit.patch new file mode 100644 index 00000000000..a3012be7bee --- /dev/null +++ b/srcpkgs/dmd2.081/patches/backport-ld-exit.patch @@ -0,0 +1,11 @@ +--- dmd/src/dmd/link.d ++++ dmd/src/dmd/link.d +@@ -685,7 +685,7 @@ public int runLINK() + close(fds[0]); + execvp(argv[0], cast(char**)argv.tdata()); + perror(argv[0]); // failed to execute +- return -1; ++ _exit(-1); + } + else if (childpid == -1) + { diff --git a/srcpkgs/dmd2.081/template b/srcpkgs/dmd2.081/template index 6bb0d3160ab..79aad094008 100644 --- a/srcpkgs/dmd2.081/template +++ b/srcpkgs/dmd2.081/template @@ -1,7 +1,7 @@ # Template file for 'dmd2.081' pkgname=dmd2.081 version=2.081.1 -revision=2 +revision=3 create_wrksrc=yes hostmakedepends="which" makedepends="dmd-bootstrap"