packages: rename elftoolchain to toolchain, add more things

Rename the existing "elftoolchain" package to "toolchain", and move
everything which is gated by MK_TOOLCHAIN (e.g. lex, yacc, ...) to the
toolchain package.

This means we have one package called "toolchain" which contains all the
development-related utilities which are not compilers or already part of
some other package (e.g., llvm).

Reviewed by:	des, emaste
Approved by:	des (mentor)
Differential Revision:	https://reviews.freebsd.org/D50286
This commit is contained in:
Lexi Winter 2025-05-27 08:21:51 +01:00
parent 76a612526c
commit f947f58ce6
24 changed files with 34 additions and 11 deletions

View file

@ -28,9 +28,15 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 15.x IS SLOW:
at runtime, run "ln -s 'abort:false,junk:false' /etc/malloc.conf".)
20250527:
ctld(8), ctladm(8) and ctlstat(8) have moved to the new FreeBSD-ctl
package. If you use pkgbase and you need the CAM Target Layer, you
should install the new package.
The CAM target layer userland, i.e. ctld(8), ctladm(8) and ctlstat(8),
has moved to the new FreeBSD-ctl package. If you use pkgbase and you
need the CAM Target Layer, you should install the new package.
Development-related tools (e.g. ar and nm) have moved to the new
"FreeBSD-toolchain" package, which subsumes and obsoletes the
existing "FreeBSD-elftoolchain" package. If you use pkgbase and
need to compile software, you should install the new package and
ensure the old FreeBSD-elftoolchain* packages are completely removed.
20250521:
Commit e64fe5ad3a23 removed in6_maxmtu and its setter in6_setmaxmtu().

View file

@ -63,8 +63,6 @@ ee_COMMENT= Easy Editor Utilities
ee_DESC= Easy Editor Utilities
efi-tools_COMMENT= UEFI Utilities
efi-tools_DESC= UEFI Utilities
elftoolchain_COMMENT= ElfToolchain programs and libraries
elftoolchain_DESC= ElfToolchain programs and libraries
examples_COMMENT= Examples in /usr/share/examples
examples_DESC= Examples in /usr/share/examples
fd_COMMENT= Floppy disk support
@ -175,6 +173,8 @@ telnet_COMMENT= Telnet client
telnet_DESC= Telnet client
tests_COMMENT= Test Suite
tests_DESC= Test Suite
toolchain_COMMENT= Utilities for program development
toolchain_DESC= Utilities for program development
ufs_COMMENT= UFS Libraries and Utilities
ufs_DESC= UFS Libraries and Utilities
unbound_COMMENT= Unbound DNS Resolver

View file

@ -1,6 +1,6 @@
.include <src.opts.mk>
PACKAGE= elftoolchain
PACKAGE= toolchain
ELFTCDIR= ${SRCTOP}/contrib/elftoolchain
ADDR2LINEDIR= ${ELFTCDIR}/addr2line

View file

@ -1,5 +1,6 @@
.include <src.opts.mk>
PACKAGE= toolchain
PROG= ar
SRCS= ar.c acplex.l acpyacc.y read.c util.c write.c y.tab.h

View file

@ -1,3 +1,4 @@
PACKAGE= toolchain
PROG= c89
.include <bsd.prog.mk>

View file

@ -1,3 +1,4 @@
PACKAGE= toolchain
PROG= c99
.include <bsd.prog.mk>

View file

@ -1,3 +1,4 @@
PACKAGE= toolchain
PROG= ctags
SRCS= C.c ctags.c fortran.c lisp.c print.c tree.c yacc.c
CFLAGS+=-I${.CURDIR}

View file

@ -1,6 +1,6 @@
.include <src.opts.mk>
PACKAGE= elftoolchain
PACKAGE= toolchain
ELFTCDIR= ${SRCTOP}/contrib/elftoolchain
SRCDIR= ${ELFTCDIR}/cxxfilt

View file

@ -1,6 +1,6 @@
.include <src.opts.mk>
PACKAGE= elftoolchain
PACKAGE= toolchain
ELFTCDIR= ${SRCTOP}/contrib/elftoolchain
ELFCOPYDIR= ${ELFTCDIR}/elfcopy

View file

@ -1,5 +1,6 @@
.include <src.opts.mk>
PACKAGE= toolchain
PROG= file2c
HAS_TESTS=

View file

@ -1,3 +1,4 @@
PACKAGE= toolchain
PROG= gprof
SRCS= gprof.c arcs.c dfn.c elf.c lookup.c hertz.c \
printgprof.c printlist.c kernel.c

View file

@ -1,5 +1,6 @@
.include <src.opts.mk>
PACKAGE= toolchain
PROG= indent
SRCS= indent.c io.c lexi.c parse.c pr_comment.c args.c

View file

@ -8,6 +8,7 @@
# Also note that flex.skel no longer gets installed.
#
PACKAGE= toolchain
PROG= lex
LINKS+= ${BINDIR}/lex ${BINDIR}/lex++
LINKS+= ${BINDIR}/lex ${BINDIR}/flex

View file

@ -1,5 +1,6 @@
.include <src.opts.mk>
PACKAGE=toolchain
SCRIPTS=lorder.sh
MAN= lorder.1

View file

@ -1,3 +1,4 @@
PACKAGE= toolchain
PROG= mkstr
WARNS?= 2

View file

@ -1,6 +1,6 @@
.include <src.opts.mk>
PACKAGE= elftoolchain
PACKAGE= toolchain
ELFTCDIR= ${SRCTOP}/contrib/elftoolchain
NMDIR= ${ELFTCDIR}/nm

View file

@ -1,6 +1,6 @@
.include <src.opts.mk>
PACKAGE= elftoolchain
PACKAGE= toolchain
ELFTCDIR= ${SRCTOP}/contrib/elftoolchain
READELFDIR= ${ELFTCDIR}/readelf

View file

@ -1,3 +1,4 @@
PACKAGE= toolchain
PROG= rpcgen
SRCS= rpc_main.c rpc_clntout.c rpc_cout.c rpc_hout.c rpc_parse.c \
rpc_sample.c rpc_scan.c rpc_svcout.c rpc_tblout.c rpc_util.c

View file

@ -1,6 +1,6 @@
.include <src.opts.mk>
PACKAGE= elftoolchain
PACKAGE= toolchain
ELFTCDIR= ${SRCTOP}/contrib/elftoolchain
SIZEDIR= ${ELFTCDIR}/size

View file

@ -1,5 +1,6 @@
.PATH: ${SRCTOP}/contrib/unifdef
PACKAGE= toolchain
PROG= unifdef
SCRIPTS=unifdefall.sh
MLINKS= unifdef.1 unifdefall.1

View file

@ -1,3 +1,4 @@
PACKAGE= toolchain
PROG= xstr
.include <bsd.prog.mk>

View file

@ -3,6 +3,7 @@
BYACC_SRC= ${SRCTOP}/contrib/byacc
.PATH: ${BYACC_SRC}
PACKAGE= toolchain
PROG= yacc
SRCS= closure.c error.c graph.c lalr.c lr0.c main.c mkpar.c mstring.c output.c \
reader.c yaccpar.c symtab.c verbose.c warshall.c

View file

@ -1,5 +1,6 @@
SRCDIR:=${.PARSEDIR:tA}
PACKAGE= toolchain
PROG_CXX= config
MAN= config.5 config.8
SRCS= config.y main.cc lang.l mkmakefile.cc mkheaders.c \

View file

@ -1,2 +1,4 @@
PACKAGE= toolchain
# modify to taste
BINDIR?= /usr/bin