On Sun Mar 23, 2025 at 11:27:24AM +0100, Theo Buehler wrote:
> On Sun, Mar 23, 2025 at 10:27:23AM +0100, Antoine Jacoutot wrote:
> > On Sun, 2025-03-23 at 01:01 -0600, Rafael Sadowski wrote:
> > > CVSROOT: /cvs
> > > Module name: ports
> > > Changes by: [email protected] 2025/03/23 01:01:30
> > >
> > > Log message:
> > > Import bear-3.1.5
> > >
> > > Comment:
> > > clang database generator
> > >
> > > Description:
> > > Bear is a tool that generates a compilation database for clang
> > > tooling.
> > >
> > > The JSON compilation database is used in the clang project to provide
> > > information on how a single compilation unit is processed. With this,
> > > it is
> > > easy to re-run the compilation with alternate programs.
> > >
> > > Some build system natively supports the generation of JSON compilation
> > > database. For projects which does not use such build tool, Bear
> > > generates the
> > > JSON file during the build process.
> > >
> > > Maintainer: Rafael Sadowski <[email protected]>
> > >
> > > WWW: https://github.com/rizsotto/Bear
> > >
> > > Feedback and OK tb@
> > >
> > > Status:
> > >
> > > Vendor Tag: rsadowski
> > > Release Tags: rsadowski_20250323
> > >
> > > N ports/devel/bear/Makefile
> > > N ports/devel/bear/distinfo
> > > N ports/devel/bear/pkg/README
> > > N ports/devel/bear/pkg/PLIST
> > > N ports/devel/bear/pkg/DESCR
> > >
> > > No conflicts created by this import
> > >
> >
> >
> > $ cd /usr/ports/devel/bear && make
> > *** Parse error in /usr/ports/devel/bear: Poisoned variable COMPILERS is
> > already set
> > (/usr/ports/infrastructure/templates/mk.conf.template:22)
>
> I renamed COMPILERS to ALL_COMPILERS to unbreak sqlports on exopi:
Ah sqlports ^^, thanks tb@ that's a leaning for me.
>
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/devel/bear/Makefile,v
> diff -u -p -r1.1.1.1 Makefile
> --- Makefile 23 Mar 2025 07:01:30 -0000 1.1.1.1
> +++ Makefile 23 Mar 2025 10:23:33 -0000
> @@ -71,13 +71,13 @@ CLANG_COMPILERS= 33 34 35 36 37 38 39 40
> 15 16 17 18 19 20
> GNU_COMPILERS= 34 42 43 44 45 46 47 48 49 5 6 7 8 9 10 11 12
> 13 14 15
>
> -COMPILERS= cc c++ CC clang clang++ ${CLANG_COMPILERS:S|^|clang|} \
> +ALL_COMPILERS= cc c++ CC clang clang++
> ${CLANG_COMPILERS:S|^|clang|} \
> ${CLANG_COMPILERS:S|^|clang++|} \
> ${CLANG_COMPILERS:S|^|cpp|} gcc g++ \
> ${GNU_COMPILERS:S|^|gcc|} ${GNU_COMPILERS:S|^|g++|} \
> ${GNU_COMPILERS:S|^|cpp|} icc icpc llvm-gcc llvm-c++ \
> llvm-g++
> -WRAPPERS= ${COMPILERS} R ar as bison ctangle cweave f77 flex \
> +WRAPPERS= ${ALL_COMPILERS} R ar as bison ctangle cweave f77 flex \
> gfortran ld lex lint m2c makeinfo nm objcopy objdump pc
> \
> ranlib readelf strip tangle tex tex2dvi weave yacc
>
>