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: Leonardo Taccari <leot%NetBSD.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/53170: get_compiler fails to detect clang if it's not named "gcc" in $PATH
Date: Sun, 08 Apr 2018 19:33:35 +0200

 Hello Keivan,
 
 keivan%motavalli.me@localhost writes:
 > >Number:         53170
 > >Category:       pkg
 > >Synopsis:       get_compiler fails to detect clang if it's not named "g=
 cc" in $PATH
 > >Confidential:   no
 > >Severity:       serious
 > >Priority:       low
 > >Responsible:    pkg-manager
 > >State:          open
 > >Class:          sw-bug
 > >Submitter-Id:   net
 > >Arrival-Date:   Sun Apr 08 17:25:00 +0000 2018
 > >Originator:     keivan motavalli
 > >Release:        trunk/06-apr-2018
 > >Organization:
 > >Environment:
 > OpenBSD 6.3 GENERIC#100 amd64
 > >Description:
 > pkgsrc fails to bootstrap on recent OpenBSD releases because of a circul=
 ar dependency on gcc3-c when compiling cwrappers as part of the procedure.
 >
 > further fixes already discussed on pkgsrc-users are then needed to compi=
 le pkgtools/libarchive against LibreSSL >=3D 2.7, included in OpenBSD 6.3.
 >
 > a known workaround for the circular dependency problem is to run the boo=
 tstrap script with --compiler clang, default C compiler since OpenBSD 6.2
 >
 > modifying the bootstrap script to set check_compiler=3Dyes when running =
 in OpenBSD fails to detect clang and sets pkgsrc to use gcc.
 > [...]
 
 Can you please try the following?:
 
 
 Index: bootstrap
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 RCS file: /cvsroot/pkgsrc/bootstrap/bootstrap,v
 retrieving revision 1.248
 diff -u -p -r1.248 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=3D${CC:-cc}; export CC
 +	check_compiler=3Dyes
  	;;
  OSF1)
  	root_group=3Dsystem
 
 
 (it is less intrusive and should do the trick!)
 
 
 Please let us know if this make pkgsrc bootstrap-able on recent OpenBSD!
 Thank you!
 


Home | Main Index | Thread Index | Old Index