Re: Ports r459270 upsets "make index"

2018-02-12 Thread Jan Beich
Peter Jeremy  writes:

> r459270 created hard references to clang38 and clang++38 in
> misc/sword/Makefile and, as a result, "make index" is reporting warnings:
>
> --- describe.misc ---
> sh: clang38: not found
> make[5]: "/usr/ports/Mk/Uses/compiler.mk" line 69: warning: "clang38 
> --version"
> +returned non-zero status
> make[5]: "/usr/ports/Mk/Uses/compiler.mk" line 112: warning: "clang++38 -###
> +/dev/null 2>&1" returned non-zero status
>
> Is there a cleaner way to define the required compiler?

Maybe someone can help testing bug 225276 fix. Otherwise, see below for
a workaround that adds blame churn.

>From 55d31c036a47e66b7ab65b4cf59aec3ea241f594 Mon Sep 17 00:00:00 2001
From: Jan Beich 
Date: Mon, 12 Feb 2018 11:20:32 +
Subject: [PATCH] misc/sword: workaround CC vs. USES=compiler conflict after
 r461290

$ make describe >/dev/null
sh: clang38: not found
make: "/usr/ports/Mk/Uses/compiler.mk" line 69: warning: "clang38 --version" 
returned non-zero status
make: "/usr/ports/Mk/Uses/compiler.mk" line 112: warning: "clang++38 -### 
/dev/null 2>&1" returned non-zero status

Reported by:many
---
 misc/sword/Makefile | 16 ++--
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/misc/sword/Makefile b/misc/sword/Makefile
index ea1da73cbb89..a9ae209aba2a 100644
--- a/misc/sword/Makefile
+++ b/misc/sword/Makefile
@@ -15,11 +15,6 @@ LICENSE= GPLv2
 
 BUILD_DEPENDS= cppunit-config:devel/cppunit
 
-# Workaround for for FreeBSD_11+.
-BUILD_DEPENDS+= clang38:lang/clang38
-CC=clang38
-CXX=   clang++38
-
 GNU_CONFIGURE= yes
 CONFIGURE_ARGS=--with-conf --with-zlib
 INSTALL_TARGET=install-strip
@@ -52,6 +47,15 @@ CONFIGURE_ARGS+= --with-clucene=${LOCALBASE} --with-icu
 CONFIGURE_ARGS+=   --without-clucene --without-icu
 .endif
 
+.include 
+
+.if ${CHOSEN_COMPILER_TYPE} == clang
+# Workaround for for FreeBSD_11+.
+BUILD_DEPENDS+= clang38:lang/clang38
+CC=clang38
+CXX=   clang++38
+.endif
+
 post-patch:
@${REINPLACE_CMD} 's|-O3||' ${WRKSRC}/configure
 
@@ -60,4 +64,4 @@ post-install:
${MV} ${STAGEDIR}${PREFIX}/etc/sword.conf \
${STAGEDIR}${PREFIX}/etc/sword.conf.sample
 
-.include 
+.include 
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: Ports r459270 upsets "make index"

2018-02-12 Thread Walter Schwarzenfeld

There seems more problems like this

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225847

seems compiler.mk needs a check (line 69 and 112) if the compiler is 
installed.


___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: Ports r459270 upsets "make index"

2018-02-12 Thread Walter Schwarzenfeld

It is only need to committed

https://bugs.freebsd.org/bugzilla/attachment.cgi?id=189853=diff

___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: Ports r459270 upsets "make index"

2018-02-12 Thread Walter Schwarzenfeld

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225802

___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Ports r459270 upsets "make index"

2018-02-11 Thread Peter Jeremy
r459270 created hard references to clang38 and clang++38 in
misc/sword/Makefile and, as a result, "make index" is reporting warnings:

--- describe.misc ---
sh: clang38: not found
make[5]: "/usr/ports/Mk/Uses/compiler.mk" line 69: warning: "clang38 --version"
+returned non-zero status
make[5]: "/usr/ports/Mk/Uses/compiler.mk" line 112: warning: "clang++38 -###
+/dev/null 2>&1" returned non-zero status

Is there a cleaner way to define the required compiler?

-- 
Peter Jeremy


signature.asc
Description: PGP signature