Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
ff4fe6c
new package: chroot-binutils to replace binutils during bootstrap
NyaaaWhatsUpDoc Apr 28, 2026
1301440
binutils: unset bootstrap flag
NyaaaWhatsUpDoc Apr 28, 2026
db15cee
chroot-git: remove optional curl dependency to prevent cycle
NyaaaWhatsUpDoc Apr 28, 2026
21fa108
gcc: replace binutils with chroot-binutils when ! $CHROOT_READY
NyaaaWhatsUpDoc Apr 28, 2026
75a3121
base-chroot: replace binutils with chroot-binutils
NyaaaWhatsUpDoc Apr 28, 2026
a2eb4ae
libunistring: update to 1.4.1
NyaaaWhatsUpDoc Apr 28, 2026
28c0995
gnunet: revbump for libunistring update
NyaaaWhatsUpDoc Apr 28, 2026
58e7d5b
gnutls: revbump for libunistring update
NyaaaWhatsUpDoc Apr 28, 2026
821a656
guile: revbump for libunistring update
NyaaaWhatsUpDoc Apr 28, 2026
bcff9f0
lagrange: revbump for libunistring update
NyaaaWhatsUpDoc Apr 28, 2026
fe3537f
libidn2: revbump for libunistring update
NyaaaWhatsUpDoc Apr 28, 2026
7912ec3
libpsl: revbump for libunistring update
NyaaaWhatsUpDoc Apr 28, 2026
c3da937
libratbag: revbump for libunistring update
NyaaaWhatsUpDoc Apr 28, 2026
a005a4c
libt3widget: revbump for libunistring update
NyaaaWhatsUpDoc Apr 28, 2026
0757e70
libt3window: revbump for libunistring update
NyaaaWhatsUpDoc Apr 28, 2026
2d94e34
lnav: revbump for libunistring update
NyaaaWhatsUpDoc Apr 28, 2026
1c59397
notcurses: revbump for libunistring update
NyaaaWhatsUpDoc Apr 28, 2026
0eb61a5
rygel: revbump for libunistring update
NyaaaWhatsUpDoc Apr 28, 2026
3dfeaaf
sssd: revbump for libunistring update
NyaaaWhatsUpDoc Apr 28, 2026
3b3452f
tilde: revbump for libunistring update
NyaaaWhatsUpDoc Apr 28, 2026
f422b3c
zmap: revbump for libunistring update
NyaaaWhatsUpDoc Apr 28, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion common/shlibs
Original file line number Diff line number Diff line change
Expand Up @@ -1362,7 +1362,7 @@ libgda-ui-5.0.so.4 libgda-5.2.9_4
libgda-xslt-5.0.so.4 libgda-5.2.9_4
libamtk-5.so.0 amtk-5.0.0_1
libdevhelp-3.so.6 devhelp-libs-3.30.0_1
libunistring.so.2 libunistring-0.9.4_1
libunistring.so.5 libunistring-1.4.1_1
libguile-3.0.so.1 libguile-3.0.10_1
libopts.so.25 libopts-5.18.4_6
libanjuta-3.so.0 anjuta-3.8.4_1
Expand Down
4 changes: 2 additions & 2 deletions srcpkgs/base-chroot/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'base-chroot'
pkgname=base-chroot
version=0.67
revision=4
revision=5
bootstrap=yes
metapackage=yes
short_desc="Minimal set of packages required for chroot with xbps-src"
Expand All @@ -17,7 +17,7 @@ case "$XBPS_TARGET_MACHINE" in
esac

depends+="
base-files binutils gcc gcc-ada libada-devel
base-files chroot-binutils gcc gcc-ada libada-devel
patch sed findutils diffutils make gzip coreutils
file bsdtar xbps mpfr ncurses libreadline8
chroot-bash chroot-grep chroot-gawk chroot-distcc
Expand Down
5 changes: 3 additions & 2 deletions srcpkgs/binutils/template
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Template file for 'binutils'
pkgname=binutils
version=2.44
revision=2
bootstrap=yes
revision=3
hostmakedepends="pkgconf tar"
makedepends="zlib-devel libzstd-devel"
short_desc="GNU binary utilities"
Expand All @@ -12,6 +11,8 @@ homepage="http://www.gnu.org/software/binutils/"
distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
checksum=ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237

conflicts="chroot-binutils>=0"

build_options="all_targets"
desc_option_all_targets="Enable all supported targets"

Expand Down
1 change: 1 addition & 0 deletions srcpkgs/chroot-binutils/patches
119 changes: 119 additions & 0 deletions srcpkgs/chroot-binutils/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
# Template file for 'chroot-binutils'
pkgname=chroot-binutils
version=2.44
revision=1
bootstrap=yes
hostmakedepends="pkgconf tar"
makedepends="zlib-devel libzstd-devel"
short_desc="GNU binary utilities"
maintainer="kim <grufwub@gmail.com>"
license="GPL-3.0-or-later"
homepage="http://www.gnu.org/software/binutils/"
distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
checksum=ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237

provides="binutils-${version}_${revision}"
conflicts="binutils>=0"



_get_triplet() {
if [ -z "$XBPS_TRIPLET" ]; then
echo $(
source "${XBPS_COMMONDIR}/build-profiles/${XBPS_MACHINE}.sh"
echo "$XBPS_TRIPLET"
)
else
echo "$XBPS_TRIPLET"
fi
}

do_configure() {
local conf

sed -i "
s;zlibinc=\$;&-I${XBPS_MASTERDIR}/usr/include;
s;zlibdir=\$;&-L${XBPS_MASTERDIR}/usr/lib;
" */configure

if [ "$CROSS_BUILD" ]; then
# we don't want --with-sysroot=${XBPS_CROSS_BASE} like gnu-configure
conf+=" --host=${XBPS_CROSS_TRIPLET} --with-build-sysroot=${XBPS_CROSS_BASE}"
# pkgconf adds sysroot includes to cflags and ldflags, which breaks binutils cross-compile with zstd
vsed -e '/PKG_CONFIG_SYSROOT_DIR/d' -i ${XBPS_WRAPPERDIR}/${XBPS_CROSS_TRIPLET}-pkg-config
fi

case "$XBPS_TARGET_MACHINE" in
ppc*)
conf+=" --enable-secureplt"
;;
x86_64*|i686*)
extra_targets=x86_64-pep
;;
esac

# target archs supported by Void
void_targets="aarch64,armv5tel,armv6l,armv7l,i686,mips,mipsel,ppc,ppcle,ppc64,ppc64le,riscv64,x86_64"
conf+=" --enable-targets=$(echo "$void_targets" | sed -E -e 's/(,|$)/-linux-gnu\1/g'),${extra_targets}"

# enable multilib on x86_64 glibc
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
conf+=" --enable-multilib"
else
conf+=" --disable-multilib"
fi

# ensure softfloat on sf mips targets and set the default hash style
case "$XBPS_TARGET_MACHINE" in
mips*hf*) conf+=" --enable-default-hash-style=sysv" ;;
mips*) conf+=" --without-fp --enable-default-hash-style=sysv" ;;
*) conf+=" --enable-default-hash-style=gnu";;
esac

mkdir build && cd build
../configure --build=$(_get_triplet) \
--prefix=/usr \
--libdir=/usr/lib \
--sysconfdir=/etc \
--disable-werror \
--disable-nls \
--enable-threads \
--enable-deterministic-archives \
--without-debuginfod \
--disable-gprofng \
--disable-shared \
--enable-64-bit-bfd \
--enable-ld=default \
--with-system-zlib \
--with-mmap \
--with-pic \
--with-zstd \
$conf
}

do_build() {
cd ${wrksrc}/build && make ${makejobs} ${_makeinfo}
}

do_install() {
cd ${wrksrc}/build

local _triplet=$(_get_triplet)
make DESTDIR=${DESTDIR} tooldir=/usr install ${_makeinfo}

cd ..

# Remove ld (hardlink) and make a symlink to ld.bfd.
rm -f ${DESTDIR}/usr/bin/ld
ln -sfr ${DESTDIR}/usr/bin/ld.bfd ${DESTDIR}/usr/bin/ld

# Remove useless manpages.
for f in dlltool nlmconv windres windmc; do
rm -f ${DESTDIR}/usr/share/man/man1/${f}.1
done

# Create triplet symlinks
for f in ${DESTDIR}/usr/bin/*; do
ln -s ${f##*/} ${DESTDIR}/usr/bin/${XBPS_CROSS_TRIPLET:-${_triplet}}-${f##*/}
done
}
10 changes: 1 addition & 9 deletions srcpkgs/chroot-git/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'chroot-git'
pkgname=chroot-git
version=2.49.0
revision=1
revision=2
bootstrap=yes
makedepends="zlib-devel"
short_desc="GIT Tree History Storage Tool -- for xbps-src use"
Expand All @@ -12,11 +12,6 @@ distfiles="https://www.kernel.org/pub/software/scm/git/git-${version}.tar.xz"
checksum=618190cf590b7e9f6c11f91f23b1d267cd98c3ab33b850416d8758f8b5a85628
repository=bootstrap

if [ "$CHROOT_READY" ]; then
checkdepends="perl gnupg"
makedepends+=" libcurl-devel"
fi

do_configure() {
cat <<-EOF >config.mak
prefix = /usr
Expand Down Expand Up @@ -60,9 +55,6 @@ do_configure() {

do_build() {
make ${makejobs} git
if [ "$CHROOT_READY" ]; then
make ${makejobs} git-http-fetch git-remote-http
fi
}

do_check() {
Expand Down
7 changes: 6 additions & 1 deletion srcpkgs/gcc/template
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

pkgname=gcc
version=14.2.1+20250405
revision=4
revision=5
bootstrap=yes
_patchver="${version%+*}"
_minorver="${version%.*}"
Expand Down Expand Up @@ -58,6 +58,11 @@
checkdepends="dejagnu"
subpackages="libgcc libgomp libgomp-devel libatomic libatomic-devel"

if [ ! "$CHROOT_READY" ]; then
# Use chroot-binutils when bootstrapping
depends="${depends/binutils/chroot-binutils}"
fi

build_options="ada gnatboot bindist gccbin"
build_options_default="ada"
desc_option_ada="Enable Ada build"
Expand Down Expand Up @@ -695,7 +700,7 @@
short_desc+=" - Fortran library"
pkg_install() {
vmove "usr/lib/libgfortran.so*"
vlicense COPYING.RUNTIME RUNTIME.LIBRARY.EXCEPTION

Check failure on line 703 in srcpkgs/gcc/template

View workflow job for this annotation

GitHub Actions / Lint templates

Template Lint

license GFDL-1.2-or-later GPL-3.0-or-later LGPL-2.1-or-later should not be installed
}
}

Expand Down
2 changes: 1 addition & 1 deletion srcpkgs/gnunet/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'gnunet'
pkgname=gnunet
version=0.12.2
revision=5
revision=6
build_style=gnu-configure
conf_files="/etc/gnunet/gnunet.conf"
hostmakedepends="automake gettext gettext-devel libtool pkg-config tar texinfo"
Expand Down
2 changes: 1 addition & 1 deletion srcpkgs/gnutls/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'gnutls'
pkgname=gnutls
version=3.8.10
revision=1
revision=2
build_style=gnu-configure
configure_args="--disable-static --disable-valgrind-tests
--disable-rpath
Expand Down
2 changes: 1 addition & 1 deletion srcpkgs/guile/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'guile'
pkgname=guile
version=3.0.11
revision=1
revision=2
build_style=gnu-configure
configure_args="--disable-static --disable-error-on-warning
--with-libgmp-prefix=${XBPS_CROSS_BASE}/usr
Expand Down
2 changes: 1 addition & 1 deletion srcpkgs/lagrange/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'lagrange'
pkgname=lagrange
version=1.20.4
revision=1
revision=2
build_style=cmake
configure_args="-DTFDN_ENABLE_SSE41=NO"
hostmakedepends="pkg-config zip"
Expand Down
2 changes: 1 addition & 1 deletion srcpkgs/libidn2/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'libidn2'
pkgname=libidn2
version=2.3.4
revision=1
revision=2
build_style=gnu-configure
hostmakedepends="gettext-devel libtool pkg-config gtk-doc"
makedepends="libunistring-devel"
Expand Down
2 changes: 1 addition & 1 deletion srcpkgs/libpsl/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'libpsl'
pkgname=libpsl
version=0.21.5
revision=1
revision=2
build_style=gnu-configure
configure_args="--enable-runtime=libidn2
--with-psl-distfile=/usr/share/publicsuffix/public_suffix_list.dafsa
Expand Down
2 changes: 1 addition & 1 deletion srcpkgs/libratbag/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'libratbag'
pkgname=libratbag
version=0.18
revision=1
revision=2
build_style=meson
configure_args="-Dtests=false -Dsystemd-unit-dir=''
-Dsystemd=false -Db_ndebug=false"
Expand Down
2 changes: 1 addition & 1 deletion srcpkgs/libt3widget/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'libt3widget'
pkgname=libt3widget
version=1.2.2
revision=2
revision=3
build_style=configure
configure_args="--prefix=/usr LIBTOOL=./hack/libtool"
hostmakedepends="pkg-config gettext autoconf automake libtool"
Expand Down
2 changes: 1 addition & 1 deletion srcpkgs/libt3window/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'libt3window'
pkgname=libt3window
version=0.4.2
revision=2
revision=3
build_style=configure
configure_args="--prefix=/usr LIBTOOL=./hack/libtool"
hostmakedepends="pkg-config gettext autoconf automake libtool"
Expand Down
4 changes: 2 additions & 2 deletions srcpkgs/libunistring/template
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Template file for 'libunistring'
pkgname=libunistring
version=1.0
version=1.4.1
revision=1
build_style=gnu-configure
short_desc="Library for manipulating Unicode strings and C strings"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-3.0-or-later"
homepage="https://www.gnu.org/software/libunistring"
distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=3c0184c0e492d7c208ce31d25dd1d2c58f0c3ed6cbbe032c5b248cddad318544
checksum=12542ad7619470efd95a623174dcd4b364f2483caf708c6bee837cb53a54cb9d

libunistring-devel_package() {
short_desc+=" - development files"
Expand Down
2 changes: 1 addition & 1 deletion srcpkgs/lnav/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'lnav'
pkgname=lnav
version=0.14.0
revision=1
revision=2
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="automake openssh zlib-devel"
Expand Down
2 changes: 1 addition & 1 deletion srcpkgs/notcurses/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'notcurses'
pkgname=notcurses
version=3.0.9
revision=3
revision=4
build_style=cmake
configure_args="-DUSE_STATIC=ON -DUSE_QRCODEGEN=On $(vopt_bool man USE_PANDOC)"
hostmakedepends="pkg-config $(vopt_if man pandoc)"
Expand Down
2 changes: 1 addition & 1 deletion srcpkgs/rygel/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'rygel'
pkgname=rygel
version=0.44.2
revision=2
revision=3
build_style=meson
build_helper="gir"
configure_args="-Dexamples=false -Dtests=false"
Expand Down
2 changes: 1 addition & 1 deletion srcpkgs/sssd/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'sssd'
pkgname=sssd
version=2.11.1
revision=1
revision=2
# upstream explicitly hardcodes to use glibc:
# https://github.com/SSSD/sssd/blob/2.8.2/src/util/nss_dl_load.c
archs="~*-musl"
Expand Down
2 changes: 1 addition & 1 deletion srcpkgs/tilde/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'tilde'
pkgname=tilde
version=1.1.3
revision=1
revision=2
build_style=configure
configure_args="--prefix=/usr"
hostmakedepends="pkg-config gettext"
Expand Down
2 changes: 1 addition & 1 deletion srcpkgs/zmap/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'zmap'
pkgname=zmap
version=4.3.4
revision=1
revision=2
build_style=cmake
hostmakedepends="flex byacc gengetopt pkg-config"
makedepends="libpcap-devel gmp-devel json-c-devel libunistring-devel
Expand Down
Loading