pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/53170: get_compiler fails to detect clang if it's not named "gcc" in $PATH



The following reply was made to PR pkg/53170; it has been noted by GNATS.

From: Keivan Motavalli <keivan%motavalli.me@localhost>
To: Leonardo Taccari <leot%NetBSD.org@localhost>
Cc: gnats-bugs%NetBSD.org@localhost, openbsd-pkg-people%NetBSD.org@localhost,
 gnats-admin%netbsd.org@localhost, pkgsrc-bugs%netbsd.org@localhost
Subject: Re: pkg/53170: get_compiler fails to detect clang if it's not named
 "gcc" in $PATH
Date: Sun, 8 Apr 2018 20:35:20 +0200

 On Sun,  8 Apr 2018 17:50:01 +0000 (UTC)
 Leonardo Taccari <leot%NetBSD.org@localhost> wrote:
 
 
 >  Can you please try the following?:
 
 >  Index: bootstrap
 >  
 >  --- bootstrap	7 Mar 2018 07:34:07 -0000	1.248
 >  +++ bootstrap	8 Apr 2018 17:21:51 -0000
 >  @@ -777,6 +777,8 @@ OpenBSD)
 >   	need_sed=3Dno
 >   	set_opsys=3Dno
 >   	machine_arch=3D`arch -s`
 >  +	CC=${CC:-cc}; export CC
 >  +	check_compiler=yes
 >   	;;
 >  
 >  (it is less intrusive and should do the trick!)
 
 it does the trick on both OpenBSD 6.2 and 6.3, but on 6.3
 pkgtools/libarchive needs to be patched to avoid redefining functions
 already implemented in LibreSSL 2.7
 
 I also tested my patch as working on OpenBSD 6.2 and 6.3 and it doesn't
 break FreeBSD 11.1. I haven't tested for Darwin yet
 


Home | Main Index | Thread Index | Old Index