build tools and several upgrades

This commit is contained in:
joborun linux 2022-08-07 14:17:14 +03:00
parent 37e661f7c1
commit fa013c72e6
67 changed files with 2102 additions and 217 deletions

View file

@ -7,27 +7,22 @@
# toolchain build order: linux-api-headers->glibc->binutils->gcc->glibc->binutils->gcc
pkgname=binutils
pkgver=2.38
_commit=9c67f6382ac2c90fbde5729feaf7d59ce662147a
pkgrel=06
pkgver=2.39
_commit=b51c2fec1da205ea3e7354cbb3e253018d64873c
pkgrel=02
pkgdesc='A set of programs to assemble and manipulate binary and object files'
arch=(x86_64)
#url='https://www.gnu.org/software/binutils'
url='https://ftp.gnu.org/gnu/binutils'
groups=( jobbot )
depends=(glibc zlib libelf)
depends=(glibc zlib libelf jansson)
makedepends=(git)
checkdepends=(dejagnu debuginfod bc)
optdepends=('debuginfod: for debuginfod server/client functionality')
conflicts=(binutils-multilib)
replaces=(binutils-multilib)
options=(staticlibs !distcc !ccache)
#options=(staticlibs !distcc !ccache debug)
#_commit=cb5f6a3e146cc70bc2d864989386df80acec5d3e
#source=(git+https://sourceware.org/git/binutils-gdb.git#commit=$_commit)
#source=($url/$pkgname-$pkgver.tar.xz{,.sig}
# gold-warn-unsupported.patch
# fix-incorrect-undefined-symbol.patch)
#options=(staticlibs !distcc !ccache debug) ## uncomment this line to have the debug pkg produced
source=(git+https://sourceware.org/git/binutils-gdb.git#commit=${_commit}
gold-warn-unsupported.patch)
@ -45,10 +40,6 @@ prepare() {
# unsupported targets. This allows the binutils to be built with
# BPF support enabled.
patch -Np1 -i "${srcdir}"/gold-warn-unsupported.patch
# # fix incorrect "undefined reference" errors
# # https://sourceware.org/bugzilla/show_bug.cgi?id=28879
# patch -Np1 -i "${srcdir}"/fix-incorrect-undefined-symbol.patch
}
build() {
@ -62,6 +53,7 @@ build() {
--enable-deterministic-archives \
--enable-gold \
--enable-install-libiberty \
--enable-jansson \
--enable-ld=default \
--enable-pgo-build=lto \
--enable-plugins \
@ -101,7 +93,7 @@ build() {
# CXXFLAGS="-O2 -no-pie -fno-PIC" \
# CFLAGS="-O2 -no-pie" \
# LDFLAGS="" \
# check
# check || true
#}
package() {
@ -130,7 +122,5 @@ license=('GPL3' 'GPL' 'FDL1.3' 'custom:FSFAP')
validpgpkeys=(3A24BC1E8FB409FA9F14371813FCEF89DD9E3C4F)
sha256sums=(SKIP
# e316477a914f567eccc34d5d29785b8b0f5a10208d36bbacedcc39048ecfe024 # binutils-2.38.tar.xz
# 41301d67da78df1ad6df04aefe9e7bea8235484b0323cee52caa8f7435385014 # binutils-2.38.tar.xz.sig
2d430b66f84a19c154725ec535280c493be1d34f1a90f95208dce02fecd0e4e4) # gold-warn-unsupported.patch
# fd33b2f8cac7561cecf3fdbb5a50fd2f2dfa6420516cbe57c47784a06fa16bf6) # fix-incorrect-undefined-symbol.patch

View file

@ -6,15 +6,15 @@
# toolchain build order: linux-api-headers->glibc->binutils->gcc->glibc->binutils->gcc
pkgname=binutils
pkgver=2.38
_commit=9c67f6382ac2c90fbde5729feaf7d59ce662147a
pkgrel=5
pkgver=2.39
_commit=b51c2fec1da205ea3e7354cbb3e253018d64873c
pkgrel=2
pkgdesc='A set of programs to assemble and manipulate binary and object files'
arch=(x86_64)
url='https://www.gnu.org/software/binutils/'
license=('GPL3' 'GPL' 'FDL1.3' 'custom:FSFAP')
groups=(base-devel)
depends=(glibc zlib libelf)
depends=(glibc zlib libelf jansson)
makedepends=(git)
checkdepends=(dejagnu debuginfod bc)
optdepends=('debuginfod: for debuginfod server/client functionality')
@ -54,6 +54,7 @@ build() {
--enable-deterministic-archives \
--enable-gold \
--enable-install-libiberty \
--enable-jansson \
--enable-ld=default \
--enable-pgo-build=lto \
--enable-plugins \
@ -89,7 +90,7 @@ check() {
CXXFLAGS="-O2 -no-pie -fno-PIC" \
CFLAGS="-O2 -no-pie" \
LDFLAGS="" \
check
check || true
}
package() {

File diff suppressed because it is too large Load diff

View file

@ -3,7 +3,7 @@ debuginfod
bc
libmicrohttpd
git
bison
jansson

View file

@ -12,3 +12,8 @@ real 13m35.011s
user 36m42.774s
sys 2m9.604s
2.38-07
real 24m17.915s
user 33m34.178s
sys 1m57.920s

47
dbus-broker/PKGBUILD Normal file
View file

@ -0,0 +1,47 @@
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=dbus-broker
pkgver=32
pkgrel=01
pkgdesc="Linux D-Bus Message Broker"
url="https://github.com/bus1/dbus-broker/wiki"
arch=(x86_64)
depends=(expat audit)
makedepends=(meson python-docutils)
#options=(debug) ### uncomment this line to have debug pkg produced
source=(https://github.com/bus1/dbus-broker/releases/download/v$pkgver/$pkgname-$pkgver.tar.xz)
prepare() {
cd $pkgname-$pkgver
}
build() {
arch-meson $pkgname-$pkgver build \
-D audit=true \
-D docs=true \
-D linux-4-17=true \
-D launcher=false \
-D system-console-users=gdm,sddm,lightdm,lxdm
meson compile -C build
}
check() {
meson test -C build --print-errorlogs
}
package() {
meson install -C build --destdir "$pkgdir"
}
#---- license gpg-key sha256sums ----
license=(Apache)
sha256sums=('bea7f653e7251063c5f427e9e3f93562d38a0d8667ae6d49fb56f113605985de')
sha256sums=(bea7f653e7251063c5f427e9e3f93562d38a0d8667ae6d49fb56f113605985de) # dbus-broker-32.tar.xz

38
dbus-broker/PKGBUILD-arch Normal file
View file

@ -0,0 +1,38 @@
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: David Herrmann <dh.herrmann@gmail.com>
pkgname=dbus-broker
pkgver=32
pkgrel=1
pkgdesc="Linux D-Bus Message Broker"
url="https://github.com/bus1/dbus-broker/wiki"
arch=(x86_64)
license=(Apache)
depends=(systemd-libs expat audit)
makedepends=(meson systemd python-docutils)
options=(debug)
source=(https://github.com/bus1/dbus-broker/releases/download/v$pkgver/$pkgname-$pkgver.tar.xz)
sha256sums=('bea7f653e7251063c5f427e9e3f93562d38a0d8667ae6d49fb56f113605985de')
prepare() {
cd $pkgname-$pkgver
}
build() {
arch-meson $pkgname-$pkgver build \
-D audit=true \
-D docs=true \
-D linux-4-17=true \
-D system-console-users=gdm,sddm,lightdm,lxdm
meson compile -C build
}
check() {
meson test -C build --print-errorlogs
}
package() {
meson install -C build --destdir "$pkgdir"
}
# vim:set sw=2 et:

Binary file not shown.

3
dbus-broker/deps Normal file
View file

@ -0,0 +1,3 @@
cmake
meson
python-docutils

5
dbus-broker/time Normal file
View file

@ -0,0 +1,5 @@
real 0m15.109s
user 0m37.205s
sys 0m3.692s

View file

@ -0,0 +1,24 @@
From c8587c717eedd4841c002b3751463a070c896f87 Mon Sep 17 00:00:00 2001
From: Christian Hesse <mail@eworm.de>
Date: Thu, 4 Aug 2022 12:15:46 +0200
Subject: [PATCH 1/1] [!99] replace `hostname` with `uname -n`
The former belongs to package `inetutils`, which has some security
implications, so let's use the latter.
---
client/scripts/linux | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/client/scripts/linux b/client/scripts/linux
index c4e51f6d..49eff40a 100755
--- a/client/scripts/linux
+++ b/client/scripts/linux
@@ -113,7 +113,7 @@ set_hostname() {
local current_hostname
if [ -n "$new_host_name" ]; then
- current_hostname=$(hostname)
+ current_hostname=$(uname -n)
# current host name is empty, '(none)' or 'localhost' or differs from new one from DHCP
if [ -z "$current_hostname" ] ||

View file

@ -11,16 +11,23 @@ pkgname=('dhcp' 'dhclient')
# separate patch levels with a period to maintain proper versioning.
_realver=4.4.3
pkgver=${_realver/-/.}
pkgrel=02
pkgrel=03
arch=('x86_64')
url='https://www.isc.org/dhcp/'
makedepends=('bash' 'iproute2' 'openldap')
# options=('!lto') ## remove # if you want the internationalization options to be included
source=("https://downloads.isc.org/isc/${pkgbase}/${_realver}/${pkgbase}-${_realver}.tar.gz"{,.asc}
'0001-99-replace-hostname-with-uname-n.patch'
'dhcp-sysusers.conf'
'dhcp-tmpfiles.conf')
prepare() {
cd "${srcdir}/${pkgbase}-${_realver}"
patch -Np1 < ../0001-99-replace-hostname-with-uname-n.patch
}
build() {
cd "${srcdir}/${pkgbase}-${_realver}"
# SEE "note"
@ -93,5 +100,7 @@ validpgpkeys=('7E1C91AC8030A5A59D1EFAB9750F3C87723E4012') # Internet Systems Con
sha256sums=(0e3ec6b4c2a05ec0148874bcd999a66d05518378d77421f607fb0bc9d0135818 # dhcp-4.4.3.tar.gz
7cc76060099bf5058364b38fce502e58e221c42ade909bba266cc1a97bfc3900 # dhcp-4.4.3.tar.gz.asc
f3dd5fe585eae18a982bfdbe163f3e3749057cb595ee59a154348094109351c2 # 0001-99-replace-hostname-with-uname-n.patch
b16083e6bb572ffacaa7cd97e7fde5fcfa1b6dbeb166f162e2ec6e8ec4b928d6 # dhcp-sysusers.conf
abcd30e9e8428e34d22ab4d3074ef4bd84c2b11f5868597111b47d6f56d204da) # dhcp-tmpfiles.conf

View file

@ -7,7 +7,7 @@ pkgname=('dhcp' 'dhclient')
# separate patch levels with a period to maintain proper versioning.
_realver=4.4.3
pkgver=${_realver/-/.}
pkgrel=1
pkgrel=2
arch=('x86_64')
license=('custom:isc-dhcp')
url='https://www.isc.org/dhcp/'
@ -15,6 +15,7 @@ makedepends=('bash' 'iproute2' 'openldap')
options=('!lto')
validpgpkeys=('7E1C91AC8030A5A59D1EFAB9750F3C87723E4012') # Internet Systems Consortium, Inc. (Signing key, 2021-2022) <codesign@isc.org>
source=("https://downloads.isc.org/isc/${pkgbase}/${_realver}/${pkgbase}-${_realver}.tar.gz"{,.asc}
'0001-99-replace-hostname-with-uname-n.patch'
'dhcp-sysusers.conf'
'dhcp-tmpfiles.conf'
'dhcpd4.service'
@ -22,12 +23,19 @@ source=("https://downloads.isc.org/isc/${pkgbase}/${_realver}/${pkgbase}-${_real
'dhclient@.service')
sha256sums=('0e3ec6b4c2a05ec0148874bcd999a66d05518378d77421f607fb0bc9d0135818'
'SKIP'
'f3dd5fe585eae18a982bfdbe163f3e3749057cb595ee59a154348094109351c2'
'b16083e6bb572ffacaa7cd97e7fde5fcfa1b6dbeb166f162e2ec6e8ec4b928d6'
'abcd30e9e8428e34d22ab4d3074ef4bd84c2b11f5868597111b47d6f56d204da'
'03fce30efab819b2d928085b0bab962a33ce56fc376acae98ad9b30aa278c9c8'
'f98a4438f4f69cab7cc5cce6927df4790ee993ebc8f88a169e63043c53d25625'
'86cd0b1e0ea1d47ab096f6ee925eee60545116fb887a155761eda589b30e4f0e')
prepare() {
cd "${srcdir}/${pkgbase}-${_realver}"
patch -Np1 < ../0001-99-replace-hostname-with-uname-n.patch
}
build() {
cd "${srcdir}/${pkgbase}-${_realver}"

169
dhclient/configure vendored Normal file
View file

@ -0,0 +1,169 @@
`configure' configures DHCP 4.4.3 to adapt to many kinds of systems.
Usage: ./configure [OPTION]... [VAR=VALUE]...
To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE. See below for descriptions of some of the useful variables.
Defaults for the options are specified in brackets.
Configuration:
-h, --help display this help and exit
--help=short display options specific to this package
--help=recursive display the short help of all the included packages
-V, --version display version information and exit
-q, --quiet, --silent do not print `checking ...' messages
--cache-file=FILE cache test results in FILE [disabled]
-C, --config-cache alias for `--cache-file=config.cache'
-n, --no-create do not create output files
--srcdir=DIR find the sources in DIR [configure dir or `..']
Installation directories:
--prefix=PREFIX install architecture-independent files in PREFIX
[/usr/local]
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
[PREFIX]
By default, `make install' will install all the files in
`/usr/local/bin', `/usr/local/lib' etc. You can specify
an installation prefix other than `/usr/local' using `--prefix',
for instance `--prefix=$HOME'.
For better control, use the options below.
Fine tuning of the installation directories:
--bindir=DIR user executables [EPREFIX/bin]
--sbindir=DIR system admin executables [EPREFIX/sbin]
--libexecdir=DIR program executables [EPREFIX/libexec]
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
--runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
--libdir=DIR object code libraries [EPREFIX/lib]
--includedir=DIR C header files [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc [/usr/include]
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
--infodir=DIR info documentation [DATAROOTDIR/info]
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
--mandir=DIR man documentation [DATAROOTDIR/man]
--docdir=DIR documentation root [DATAROOTDIR/doc/dhcp]
--htmldir=DIR html documentation [DOCDIR]
--dvidir=DIR dvi documentation [DOCDIR]
--pdfdir=DIR pdf documentation [DOCDIR]
--psdir=DIR ps documentation [DOCDIR]
Program names:
--program-prefix=PREFIX prepend PREFIX to installed program names
--program-suffix=SUFFIX append SUFFIX to installed program names
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
System types:
--build=BUILD configure for building on BUILD [guessed]
--host=HOST cross-compile to build programs to run on HOST [BUILD]
Optional Features:
--disable-option-checking ignore unrecognized --enable/--with options
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-silent-rules less verbose build output (undo: "make V=1")
--disable-silent-rules verbose build output (undo: "make V=0")
--enable-maintainer-mode
enable make rules and dependencies not useful (and
sometimes confusing) to the casual installer
--enable-dependency-tracking
do not reject slow dependency extractors
--disable-dependency-tracking
speeds up one-time build
--enable-debug create a debug-only version of the software (default
is no).
--enable-failover enable support for failover (default is yes)
--enable-execute enable support for execute() in config (default is
yes)
--enable-tracing enable support for server activity tracing (default
is yes)
--enable-delayed-ack queues multiple DHCPACK replies (default is yes)
--enable-dhcpv6 enable support for DHCPv6 (default is yes)
--enable-dhcpv4o6 enable support for DHCPv4-over-DHCPv6 (default is
no)
--enable-relay-port enable support for relay port (default is no)
--enable-paranoia enable support for chroot/setuid (default is no)
--enable-early-chroot enable chrooting prior to configuration (default is
no)
--enable-ipv4-pktinfo enable use of pktinfo on IPv4 sockets (default is
no)
--enable-use-sockets use the standard BSD socket API (default is no)
--enable-log-pid Include PIDs in syslog messages (default is no).
--enable-binary-leases enable support for binary insertion of leases
(default is no)
--enable-kqueue use BSD kqueue (default is no)
--enable-epoll use Linux epoll (default is no)
--enable-devpoll use /dev/poll (default is no)
--enable-libtool use GNU libtool for dynamic shared libraries
(default is no).
--enable-bind-install install bind includes and libraries (default is no).
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--with-atf=PATH specify location where atf was installed
--with-srv-conf-file=PATH
Default file containing dhcpd configuration (default
is typically /etc/dhcpd.conf)
--with-srv-lease-file=PATH
File for dhcpd leases (default is
LOCALSTATEDIR/db/dhcpd.leases)
--with-srv6-lease-file=PATH
File for dhcpd6 leases (default is
LOCALSTATEDIR/db/dhcpd6.leases)
--with-cli-lease-file=PATH
File for dhclient leases (default is
LOCALSTATEDIR/db/dhclient.leases)
--with-cli6-lease-file=PATH
File for dhclient6 leases (default is
LOCALSTATEDIR/db/dhclient6.leases)
--with-srv-pid-file=PATH
File for dhcpd process information (default is
LOCALSTATEDIR/run/dhcpd.pid)
--with-srv6-pid-file=PATH
File for dhcpd6 process information (default is
LOCALSTATEDIR/run/dhcpd6.pid)
--with-cli-pid-file=PATH
File for dhclient process information (default is
LOCALSTATEDIR/run/dhclient.pid)
--with-cli6-pid-file=PATH
File for dhclient6 process information (default is
LOCALSTATEDIR/run/dhclient6.pid)
--with-relay-pid-file=PATH
File for dhcrelay process information (default is
LOCALSTATEDIR/run/dhcrelay.pid)
--with-relay6-pid-file=PATH
File for dhcrelay6 process information (default is
LOCALSTATEDIR/run/dhcrelay6.pid)
--with-randomdev=PATH Path for random device (default is /dev/random)
--with-bind-extra-config
configure bind librairies with some extra options
(default is none)
--with-libbind=PATH bind includes and libraries are in PATH
--with-ldap enable OpenLDAP support in dhcpd (default is no)
--with-ldapcrypto enable OpenLDAP crypto support in dhcpd (default is
no)
--with-ldap-gssapi enable krb5/gssapi authentication for OpenLDAP in
dhcpd (default is no)
--with-ldapcasa enable LDAP CASA auth support in dhcpd (default is
no)
Some influential environment variables:
CC C compiler command
CFLAGS C compiler flags
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
nonstandard directory <lib dir>
LIBS libraries to pass to the linker, e.g. -l<library>
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
you have headers in a nonstandard directory <include dir>
CPP C preprocessor
Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.
Report bugs to <dhcp-users@isc.org>.

View file

@ -1 +1,2 @@
openldap

View file

@ -5,11 +5,15 @@
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
# toolchain build order: linux-api-headers->glibc->binutils->gcc->glibc->binutils->gcc
# toolchain build order: linux-api-headers->glibc->binutils->gcc->libtool->glibc->binutils->gcc
# NOTE: libtool requires rebuilt with each new gcc version
# Joborun NOTE: We have decided during this remake of core build toolset to revert to linux-5.10 for
# the linux-api-headers and stick to that kernel strictly for now, instead of chasing Arch's latest
# kernel and strange sourcing. At least the build environment and tools will be more consistent.
# Unfortunately we have no extra time to research the evolution of the latest kernels.
pkgname=(gcc gcc-libs lib32-gcc-libs gcc-fortran gcc-objc gcc-ada gcc-go gcc-d lto-dump libgccjit)
pkgver=12.1.0
pkgver=12.1.1
_majorver=${pkgver%%.*}
pkgrel=04
pkgdesc='The GNU Compiler Collection'
@ -39,12 +43,14 @@ checkdepends=(
#options=(!emptydirs !lto debug)
options=(!emptydirs !lto)
_libdir=usr/lib/gcc/$CHOST/${pkgver%%+*}
_commit=681c73db9bd156f9b65a73ccc6c4a0a697fe70d6
# _commit=6beb39ee6c465c21d0cc547fd66b445100cdcc35
# source=(git://gcc.gnu.org/git/gcc.git#commit=$_commit
source=(https://sourceware.org/pub/gcc/releases/gcc-${pkgver}/gcc-${pkgver}.tar.xz{,.sig}
c89 c99
gcc-ada-repro.patch
)
#source=(https://sourceware.org/pub/gcc/releases/gcc-${pkgver}/gcc-${pkgver}.tar.xz{,.sig}
source=(git+https://sourceware.org/git/gcc.git#commit=${_commit}
c89
c99
gcc-ada-repro.patch)
prepare() {
[[ ! -d gcc ]] && ln -s gcc-${pkgver/+/-} gcc
@ -484,8 +490,7 @@ validpgpkeys=(F3691687D867B81B51CE07D9BBE43771487328A9 # bpiotrowski@archlinux.
13975A70E63C361C73AE69EF6EEB81F8981C74C7 # richard.guenther@gmail.com
D3A93CAD751C2AF4F8C7AD516C35B99309B5FA62) # Jakub Jelinek <jakub@redhat.com>
sha256sums=(62fd634889f31c02b64af2c468f064b47ad1ca78411c45abe6ac4b5f8dd19c7b # gcc-12.1.0.tar.xz
f5dba6de2221ea625acae85f97be9dcf550c8125f545372dbaf53e83ebcbeb0d # gcc-12.1.0.tar.xz.sig
sha256sums=(SKIP
de48736f6e4153f03d0a5d38ceb6c6fdb7f054e8f47ddd6af0a3dbf14f27b931 # c89
2513c6d9984dd0a2058557bf00f06d8d5181734e41dcfe07be7ed86f2959622a # c99
1773f5137f08ac1f48f0f7297e324d5d868d55201c03068670ee4602babdef2f) # gcc-ada-repro.patch

View file

@ -8,9 +8,10 @@
# NOTE: libtool requires rebuilt with each new gcc version
pkgname=(gcc gcc-libs lib32-gcc-libs gcc-fortran gcc-objc gcc-ada gcc-go gcc-d lto-dump libgccjit)
pkgver=12.1.0
pkgver=12.1.1
_commit=681c73db9bd156f9b65a73ccc6c4a0a697fe70d6
_majorver=${pkgver%%.*}
pkgrel=3
pkgrel=4
pkgdesc='The GNU Compiler Collection'
arch=(x86_64)
license=(GPL3 LGPL FDL custom)
@ -40,7 +41,7 @@ options=(!emptydirs !lto debug)
_libdir=usr/lib/gcc/$CHOST/${pkgver%%+*}
# _commit=6beb39ee6c465c21d0cc547fd66b445100cdcc35
# source=(git://gcc.gnu.org/git/gcc.git#commit=$_commit
source=(https://sourceware.org/pub/gcc/releases/gcc-${pkgver}/gcc-${pkgver}.tar.xz{,.sig}
source=(git+https://sourceware.org/git/gcc.git#commit=${_commit}
c89 c99
gcc-ada-repro.patch
)
@ -48,8 +49,7 @@ validpgpkeys=(F3691687D867B81B51CE07D9BBE43771487328A9 # bpiotrowski@archlinux.
86CFFCA918CF3AF47147588051E8B148A9999C34 # evangelos@foutrelis.com
13975A70E63C361C73AE69EF6EEB81F8981C74C7 # richard.guenther@gmail.com
D3A93CAD751C2AF4F8C7AD516C35B99309B5FA62) # Jakub Jelinek <jakub@redhat.com>
sha256sums=('62fd634889f31c02b64af2c468f064b47ad1ca78411c45abe6ac4b5f8dd19c7b'
'SKIP'
sha256sums=('SKIP'
'de48736f6e4153f03d0a5d38ceb6c6fdb7f054e8f47ddd6af0a3dbf14f27b931'
'2513c6d9984dd0a2058557bf00f06d8d5181734e41dcfe07be7ed86f2959622a'
'1773f5137f08ac1f48f0f7297e324d5d868d55201c03068670ee4602babdef2f')

View file

@ -1 +1 @@
rm -rvf {src,pkg,*tar.xz*}
rm -rvf {src,pkg,gcc}

View file

@ -9,5 +9,4 @@ expect
inetutils
python-pytest
tcl
gcc-d

View file

@ -24,3 +24,9 @@ real 269m12.212s
user 936m18.400s
sys 21m50.486s
12.1.1-03
real 381m28.689s
user 770m48.494s
sys 17m52.060s

View file

@ -5,14 +5,14 @@
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
# toolchain build order: linux-api-headers->glibc->binutils->gcc->glibc->binutils->gcc
# toolchain build order: linux-api-headers->glibc->binutils->gcc->libtool->glibc->binutils->gcc
# NOTE: valgrind requires rebuilt with each major glibc version
pkgbase=glibc
pkgname=(glibc lib32-glibc)
pkgver=2.35
_commit=d7d1eebd4d5806be55ffacbf18917ad68d4ae7fd
pkgrel=06
pkgver=2.36
_commit=c804cd1c00adde061ca51711f63068c103e94eef
pkgrel=01
arch=(x86_64)
url='https://www.gnu.org/software/libc'
makedepends=(git gd lib32-gcc-libs python)
@ -111,9 +111,22 @@ build() {
# pregenerate C.UTF-8 locale until it is built into glibc
# (https://sourceware.org/glibc/wiki/Proposals/C.UTF-8, FS#74864)
locale/localedef -c -f ../glibc/localedata/charmaps/UTF-8 -i ../glibc/localedata/locales/C ../C.UTF-8/
# locale/localedef -c -f ../glibc/localedata/charmaps/UTF-8 -i ../glibc/localedata/locales/C ../C.UTF-8/
localedef -c -f ../glibc/localedata/charmaps/UTF-8 -i ../glibc/localedata/locales/C ../C.UTF-8/
}
### Note by Joborun:
#
#Summary of test results:
# 4 FAIL
# 4971 PASS
# 191 UNSUPPORTED
# 14 XFAIL
# 8 XPASS
#make[1]: *** [Makefile:647: tests] Error 1
#make[1]: Leaving directory '/src/pkg/jobcore/glibc/src/glibc'
#make: *** [Makefile:9: check] Error 2
#
## Credits for skip_test() and check() @allanmcrae
## https://github.com/allanmcrae/toolchain/blob/f18604d70c5933c31b51a320978711e4e6791cf1/glibc/PKGBUILD
#skip_test() {
@ -135,20 +148,21 @@ build() {
# # The following tests fail due to restrictions in the Arch build system
# # The correct fix is to add the following to the systemd-nspawn call:
# # --system-call-filter="@clock @memlock @pkey"
# skip_test test-errno-linux sysdeps/unix/sysv/linux/Makefile
# skip_test tst-ntp_gettime sysdeps/unix/sysv/linux/Makefile
# skip_test tst-ntp_gettimex sysdeps/unix/sysv/linux/Makefile
# skip_test tst-mlock2 sysdeps/unix/sysv/linux/Makefile
# skip_test tst-pkey sysdeps/unix/sysv/linux/Makefile
# skip_test tst-adjtime time/Makefile
# skip_test tst-clock2 time/Makefile
# skip_test test-errno-linux sysdeps/unix/sysv/linux/Makefile
# skip_test tst-mlock2 sysdeps/unix/sysv/linux/Makefile
# skip_test tst-ntp_gettime sysdeps/unix/sysv/linux/Makefile
# skip_test tst-ntp_gettimex sysdeps/unix/sysv/linux/Makefile
# skip_test tst-pkey sysdeps/unix/sysv/linux/Makefile
# skip_test tst-process_mrelease sysdeps/unix/sysv/linux/Makefile
# skip_test tst-adjtime time/Makefile
# skip_test tst-clock2 time/Makefile
#
# make -O check
#}
package_glibc() {
pkgdesc='GNU C Library w/o systemd'
depends=('linux-api-headers>=4.10' tzdata filesystem)
depends=('linux-api-headers<=5.11' tzdata filesystem)
optdepends=('gd: for memusagestat'
'perl: for mtrace')
install=glibc.install
@ -222,14 +236,10 @@ validpgpkeys=(7273542B39962DF7B299931416792B4EA25340F8 # Carlos O'Donell
BC7C7372637EC10C57D7AA6579C43DFBF1CF2187) # Siddhesh Poyarekar
sha256sums=(SKIP
#5123732f6b67ccd319305efd399971d58592122bcc2a6518a1bd2510dd0cf52e # glibc-2.35.tar.xz
# 853aaaf17d7366817e814057a467625ee7c0b26240e8b878db0f33c389c7bcb6 # glibc-2.35.tar.xz.sig
d42648cea552ba5353a32e264686e992263289d5cc86207314dffc54ab514981 # locale.gen.txt
83f108f915863c7ed0338e2d3e8f2e071a531a090ef8f8b2eb3a956a3c4f04d7 # locale-gen
8c5cc09018cbd65e8570430f872e118caa2644e311d6200b7d5f0cba837fbba4 # locale-gen
c27424154a6096ae32c0824b785e05de6acef33d9224fd6147d1936be9b4962b # lib32-glibc.conf
774061aff612a377714a509918a9e0e0aafce708b87d2d7e06b1bd1f6542fe70 # sdt.h
774061aff612a377714a509918a9e0e0aafce708b87d2d7e06b1bd1f6542fe70 # sdt.h
cdc234959c6fdb43f000d3bb7d1080b0103f4080f5e67bcfe8ae1aaf477812f0 # sdt-config.h
f5df8fc95592cce7825744aeb8c9699a5b4b5b7ccf7bcf554355167c3a7e375e) # disable-clone3.diff
# 0fbfee1dbe867c1e1d135d3bdc6fbe32d5629aa5eff555123355d21341271a82 # 0001-localedef-Update-LC_MONETARY-handling-Bug-28845.patch
# 2a3da2150c45d2ee811d6e837838029927eb40e50c901452e155545fa5144c54 # 0001-localedata-Do-not-generate-output-if-warnings-were-p.patch
# 85e19a5bb247a7c523781efb28509420a67f32bae0c13633c1c22dc921187840) # 0001-elf-Fix-DFS-sorting-algorithm-for-LD_TRACE_LOADED_OB.patch

View file

@ -8,9 +8,9 @@
pkgbase=glibc
pkgname=(glibc lib32-glibc)
pkgver=2.35
_commit=d7d1eebd4d5806be55ffacbf18917ad68d4ae7fd
pkgrel=6
pkgver=2.36
_commit=c804cd1c00adde061ca51711f63068c103e94eef
pkgrel=1
arch=(x86_64)
url='https://www.gnu.org/software/libc'
license=(GPL LGPL)
@ -141,13 +141,14 @@ check() {
# The following tests fail due to restrictions in the Arch build system
# The correct fix is to add the following to the systemd-nspawn call:
# --system-call-filter="@clock @memlock @pkey"
skip_test test-errno-linux sysdeps/unix/sysv/linux/Makefile
skip_test tst-ntp_gettime sysdeps/unix/sysv/linux/Makefile
skip_test tst-ntp_gettimex sysdeps/unix/sysv/linux/Makefile
skip_test tst-mlock2 sysdeps/unix/sysv/linux/Makefile
skip_test tst-pkey sysdeps/unix/sysv/linux/Makefile
skip_test tst-adjtime time/Makefile
skip_test tst-clock2 time/Makefile
skip_test test-errno-linux sysdeps/unix/sysv/linux/Makefile
skip_test tst-mlock2 sysdeps/unix/sysv/linux/Makefile
skip_test tst-ntp_gettime sysdeps/unix/sysv/linux/Makefile
skip_test tst-ntp_gettimex sysdeps/unix/sysv/linux/Makefile
skip_test tst-pkey sysdeps/unix/sysv/linux/Makefile
skip_test tst-process_mrelease sysdeps/unix/sysv/linux/Makefile
skip_test tst-adjtime time/Makefile
skip_test tst-clock2 time/Makefile
make -O check
}

View file

@ -1 +1 @@
rm -rvf {src,pkg,*tar.xz*}
rm -rvf {src,pkg,glibc}

View file

@ -4,3 +4,4 @@ lib32-gcc-libs
python
bison

View file

@ -13,7 +13,7 @@ fi
# Remove all old locale dir and locale-archive before generating new
# locale data.
rm -rf /usr/lib/locale/* || true
rm -rf /usr/lib/locale/locale-archive || true
umask 022

10
glibc/recent-failed-tests Normal file
View file

@ -0,0 +1,10 @@
Summary of test results:
4 FAIL
4971 PASS
191 UNSUPPORTED
14 XFAIL
8 XPASS
make[1]: *** [Makefile:647: tests] Error 1
make[1]: Leaving directory '/src/pkg/jobcore/glibc/src/glibc'
make: *** [Makefile:9: check] Error 2

View file

@ -1,5 +1,5 @@
real 19m42.989s
user 35m4.366s
sys 4m27.027s
real 22m8.296s
user 19m48.961s
sys 2m52.720s

View file

@ -6,7 +6,7 @@
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=iproute2
pkgver=5.18.0
pkgver=5.19.0
pkgrel=01
pkgdesc='IP Routing Utilities'
arch=('x86_64')
@ -66,9 +66,7 @@ license=('GPL2')
validpgpkeys=('9F6FC345B05BE7E766B83C8F80A77F6095CDE47E') # Stephen Hemminger
sha256sums=(5ba3d464d51c8c283550d507ffac3d10f7aec587b7c66b0ccb6950643646389e # iproute2-5.18.0.tar.xz
8553c61f64f0e198ec51251242b0dc0638efbdefffae59358296b5809195f5d0 # iproute2-5.18.0.tar.sign
sha256sums=(26b7a34d6a7fd2f7a42e2b39c5a90cb61bac522d1096067ffeb195e5693d7791 # iproute2-5.19.0.tar.xz
6a25f5d6c2b0d099adce2722e2f891cc0d12347a14950d251c9be158d10aedce # iproute2-5.19.0.tar.sign
758b82bd61ed7512d215efafd5fab5ae7a28fbfa6161b85e2ce7373285e56a5d) # 0001-make-iproute2-fhs-compliant.patch
# 837a64189b949afae951655546967cc8f17f2f2cf370faabff00575364f0fcf7) # 0002-iproute2.patch

View file

@ -3,7 +3,7 @@
# Contributor: Judd Vinet <jvinet@zeroflux.org>
pkgname=iproute2
pkgver=5.18.0
pkgver=5.19.0
pkgrel=1
pkgdesc='IP Routing Utilities'
arch=('x86_64')
@ -28,7 +28,7 @@ options=('staticlibs' 'debug')
validpgpkeys=('9F6FC345B05BE7E766B83C8F80A77F6095CDE47E') # Stephen Hemminger
source=("https://www.kernel.org/pub/linux/utils/net/${pkgname}/${pkgname}-${pkgver}.tar."{xz,sign}
'0001-make-iproute2-fhs-compliant.patch')
sha256sums=('5ba3d464d51c8c283550d507ffac3d10f7aec587b7c66b0ccb6950643646389e'
sha256sums=('26b7a34d6a7fd2f7a42e2b39c5a90cb61bac522d1096067ffeb195e5693d7791'
'SKIP'
'758b82bd61ed7512d215efafd5fab5ae7a28fbfa6161b85e2ce7373285e56a5d')

39
jansson/PKGBUILD Normal file
View file

@ -0,0 +1,39 @@
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=jansson
pkgver=2.14
pkgrel=02
pkgdesc='C library for encoding, decoding and manipulating JSON data'
arch=('x86_64')
url='https://www.digip.org/jansson/'
depends=('glibc')
options=('staticlibs')
source=("https://github.com/akheron/jansson/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz"{,.asc})
build() {
cd "$srcdir/$pkgname-$pkgver"
CFLAGS+=' -ffat-lto-objects' \
./configure --prefix=/usr
make
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
#---- license gpg-key sha256sums ----
license=('MIT')
validpgpkeys=('B5D6953E6D5059ED7ADA0F2FD3657D24D058434C') # Petri Lehtinen <petri@digip.org>
sha256sums=(5798d010e41cf8d76b66236cfb2f2543c8d082181d16bc3085ab49538d4b9929 # jansson-2.14.tar.gz
a29cab18600e0439b5ef08cd71c9b8241c6467ec02a8af52a25ed3b95d109c1c) # jansson-2.14.tar.gz.asc

31
jansson/PKGBUILD-arch Normal file
View file

@ -0,0 +1,31 @@
# Maintainer: Kyle Keen <keenerd@gmail.com>
# Contributor: Dave Reisner <d@falconindy.com>
pkgname=jansson
pkgver=2.14
pkgrel=2
pkgdesc='C library for encoding, decoding and manipulating JSON data'
arch=('x86_64')
url='https://www.digip.org/jansson/'
depends=('glibc')
license=('MIT')
options=('staticlibs')
source=("https://github.com/akheron/jansson/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz"{,.asc})
sha256sums=('5798d010e41cf8d76b66236cfb2f2543c8d082181d16bc3085ab49538d4b9929'
'SKIP')
validpgpkeys=('B5D6953E6D5059ED7ADA0F2FD3657D24D058434C') # Petri Lehtinen <petri@digip.org>
build() {
cd "$srcdir/$pkgname-$pkgver"
CFLAGS+=' -ffat-lto-objects' \
./configure --prefix=/usr
make
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
# vim:set ts=2 sw=2 et:

1
jansson/clean Normal file
View file

@ -0,0 +1 @@
rm -rf {src,pkg,jansson*.tar.gz*}

1
jansson/deps Normal file
View file

@ -0,0 +1 @@

1
jansson/key Normal file
View file

@ -0,0 +1 @@
gpg -v --recv-keys D3657D24D058434C

4
jansson/time Normal file
View file

@ -0,0 +1,4 @@
real 0m8.246s
user 0m7.639s
sys 0m1.163s

View file

@ -7,7 +7,7 @@
pkgname=jobbot
pkgdesc='Minimal set of packages to maintain the building chroot for JOBORun Linux'
pkgver=0.2
pkgver=0.3
pkgrel=01
groups=( jobbot )
arch=(x86_64)
@ -16,7 +16,7 @@ depends=( acl archlinux-keyring obarun-keyring joborun-keyring attr audit bash
binutils brotli bzip2 ca-certificates ca-certificates-mozilla ca-certificates-utils
coreutils cower curl db dbus diffutils e2fsprogs elfutils expat fakeroot file
filesystem findutils flex gawk gc gcc gcc-libs gdbm glib2 glibc gmp gnupg gnutls gpgme
grep groff guile gzip hwdata iana-etc icu iproute2 iptables iputils keyutils
grep groff guile gzip hwdata iana-etc icu iproute2 iptables iputils jansson keyutils
kmod krb5 less libarchive libassuan libcap libcap-ng libelf libeudev libffi libgcrypt
libgpg-error libidn2 libisl libksba libldap libmnl libmpc libnetfilter_conntrack
libnfnetlink libnftnl libnghttp2 libnl libp11-kit libpcap libpsl libsasl libseccomp
@ -41,6 +41,6 @@ package() {
license=('ISC')
sha256sums=(7f0b1d6bff4b8ce726c9acf68e86f6cc88dc9c7e60b6567048427c9f26dd3bfd # README-jobbot.txt
65b9591fd06623fef36cb41933a19f3571d730aac99fe3712c94429a1cd77c11 # Qsq
bcfa9d7c4f2e926050ca80b28be3c393ec8538d8be1f33df04f28ede6dc3c78c # Qsq
50febbb21bb779f43b93c7f8e65ba4cbff0c6b32cddd45ecb9118fc801581d99) # ckchroot

View file

@ -45,6 +45,7 @@ icu
iproute2
iptables
iputils
jansson
jobbot
joborun-keyring
keyutils

View file

@ -0,0 +1,37 @@
From f5ad737d73ed18b95ce63f1d8e933a89a26653e9 Mon Sep 17 00:00:00 2001
From: Azat Khuzhin <azat@libevent.org>
Date: Sat, 9 Jul 2022 14:22:38 +0300
Subject: [PATCH] Add -Wundef for cmake and fix EVENT__SIZEOF_TIME_T usage
Note, autotools already supports it.
---
CMakeLists.txt | 1 +
event-config.h.cmake | 3 +++
2 files changed, 4 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5ee0df2f7..9237252c7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -295,6 +295,7 @@ if (${GNUC})
list(APPEND __FLAGS
-Wall -Wextra -Wno-unused-parameter -Wstrict-aliasing -Wstrict-prototypes
+ -Wundef
-fno-strict-aliasing # gcc 2.9.5+
-Wmissing-prototypes
diff --git a/event-config.h.cmake b/event-config.h.cmake
index 9fff34877..4a6267017 100644
--- a/event-config.h.cmake
+++ b/event-config.h.cmake
@@ -485,6 +485,9 @@
/* The size of 'void *', as computer by sizeof */
#define EVENT__SIZEOF_VOID_P @EVENT__SIZEOF_VOID_P@
+/* The size of 'time_t', as computer by sizeof */
+#define EVENT__SIZEOF_TIME_T @EVENT__SIZEOF_TIME_T@
+
/* Define to `__inline__' or `__inline' if that's what the C compiler
calls it, or to nothing if 'inline' is not supported under any name. */
#ifndef __cplusplus

View file

@ -4,32 +4,58 @@
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=libevent
pkgbase=libevent
pkgname=(libevent libevent-docs)
pkgver=2.1.12
pkgrel=01
pkgrel=02
pkgdesc="An event notification library"
arch=('x86_64')
url="https://libevent.org/"
depends=('openssl')
makedepends=('cmake' 'python')
optdepends=('python: to use event_rpcgen.py')
source=(https://github.com/libevent/libevent/releases/download/release-$pkgver-stable/$pkgname-$pkgver-stable.tar.gz{,.asc})
makedepends=(cmake ninja python zlib doxygen)
#options=(debug) ### uncomment this line to have the debug pkg produced
source=(https://github.com/libevent/libevent/releases/download/release-$pkgver-stable/$pkgbase-$pkgver-stable.tar.gz{,.asc}
EVENT__SIZEOF_TIME_T.patch)
prepare() {
cd libevent-$pkgver-stable
# Fix Firefox build
patch -Np1 -i ../EVENT__SIZEOF_TIME_T.patch
}
build() {
cd ${pkgname}-${pkgver}-stable
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DEVENT__LIBRARY_TYPE=SHARED -S . -B build
cmake -S ${pkgbase}-${pkgver}-stable -B build -G Ninja \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_SKIP_INSTALL_RPATH=TRUE \
-DEVENT__LIBRARY_TYPE=SHARED \
-DEVENT__DISABLE_REGRESS=OFF \
-DEVENT__DOXYGEN=ON
cmake --build build
}
#check() {
# cd ${pkgname}-${pkgver}-stable
# cmake --build build --target test
# cd build
# ctest --output-on-failure --stop-on-failure -j$(nproc)
#}
package() {
cd ${pkgname}-${pkgver}-stable
cmake --build build --target install -- DESTDIR="$pkgdir"
install -Dm 644 LICENSE "${pkgdir}"/usr/share/licenses/libevent/LICENSE
package_libevent() {
provides=(libevent{,_core,_extra,_openssl,_pthreads}-2.1.so)
optdepends=('python: event_rpcgen.py')
DESTDIR="$pkgdir" cmake --install build
mkdir -p doc/usr/share
mv {"$pkgdir",doc}/usr/share/doc
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 libevent-$pkgver-stable/LICENSE
}
package_libevent-docs() {
pkgdesc+=" (documentation)"
depends=()
mv doc/* "$pkgdir"
}
#---- license gpg-key sha256sums ----
@ -39,5 +65,8 @@ license=('BSD')
validpgpkeys=('B35BF85BF19489D04E28C33C21194EBB165733EA'
'9E3AC83A27974B84D1B3401DB86086848EF8686D')
sha256sums=(92e6de1be9ec176428fd2367677e61ceffc2ee1cb119035037a27d346b0403bb # libevent-2.1.12-stable.tar.gz
3cd3d764777540305813495912cd5f7ea7d16edb456d6c88b331a1aa8974dfc2) # libevent-2.1.12-stable.tar.gz.asc
3cd3d764777540305813495912cd5f7ea7d16edb456d6c88b331a1aa8974dfc2 # libevent-2.1.12-stable.tar.gz.asc
945fc885b15692721bc7ae52f5774ef4fab8cc0f6108baa8860ab368de8675cf) # EVENT__SIZEOF_TIME_T.patch

View file

@ -1,35 +1,65 @@
# Maintainer: Tom Gundersen <teg@jklm.no>
# Contributor: Tom Gundersen <teg@jklm.no>
# Contributor: Judd <jvinet@zeroflux.org>
pkgname=libevent
pkgbase=libevent
pkgname=(libevent libevent-docs)
pkgver=2.1.12
pkgrel=1
pkgdesc="An event notification library"
arch=('x86_64')
pkgrel=2
pkgdesc="Event notification library"
url="https://libevent.org/"
license=('BSD')
depends=('openssl')
makedepends=('cmake' 'python')
optdepends=('python: to use event_rpcgen.py')
source=(https://github.com/libevent/libevent/releases/download/release-$pkgver-stable/$pkgname-$pkgver-stable.tar.gz{,.asc})
arch=(x86_64)
license=(BSD)
depends=(openssl)
makedepends=(cmake ninja python zlib doxygen)
options=(debug)
source=(
https://github.com/libevent/libevent/releases/download/release-$pkgver-stable/libevent-$pkgver-stable.tar.gz{,.asc}
EVENT__SIZEOF_TIME_T.patch
)
sha256sums=('92e6de1be9ec176428fd2367677e61ceffc2ee1cb119035037a27d346b0403bb'
'SKIP')
'SKIP'
'945fc885b15692721bc7ae52f5774ef4fab8cc0f6108baa8860ab368de8675cf')
validpgpkeys=('B35BF85BF19489D04E28C33C21194EBB165733EA'
'9E3AC83A27974B84D1B3401DB86086848EF8686D')
prepare() {
cd libevent-$pkgver-stable
# Fix Firefox build
patch -Np1 -i ../EVENT__SIZEOF_TIME_T.patch
}
build() {
cd ${pkgname}-${pkgver}-stable
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DEVENT__LIBRARY_TYPE=SHARED -S . -B build
cmake -S libevent-$pkgver-stable -B build -G Ninja \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_SKIP_INSTALL_RPATH=TRUE \
-DEVENT__LIBRARY_TYPE=SHARED \
-DEVENT__DISABLE_REGRESS=OFF \
-DEVENT__DOXYGEN=ON
cmake --build build
}
check() {
cd ${pkgname}-${pkgver}-stable
cmake --build build --target test
cd build
ctest --output-on-failure --stop-on-failure -j$(nproc)
}
package() {
cd ${pkgname}-${pkgver}-stable
cmake --build build --target install -- DESTDIR="$pkgdir"
install -Dm 644 LICENSE "${pkgdir}"/usr/share/licenses/libevent/LICENSE
package_libevent() {
provides=(libevent{,_core,_extra,_openssl,_pthreads}-2.1.so)
optdepends=('python: event_rpcgen.py')
DESTDIR="$pkgdir" cmake --install build
mkdir -p doc/usr/share
mv {"$pkgdir",doc}/usr/share/doc
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 libevent-$pkgver-stable/LICENSE
}
package_libevent-docs() {
pkgdesc+=" (documentation)"
depends=()
mv doc/* "$pkgdir"
}

View file

@ -1 +1,5 @@
cmake python
ninja
doxygen

View file

@ -7,8 +7,8 @@
pkgname=libtool
pkgver=2.4.7
pkgrel=02
_gccver=12.1.0
pkgrel=03
_gccver=12.1.1
pkgdesc='A generic library support script'
arch=(x86_64)
url='https://www.gnu.org/software/libtool'
@ -75,4 +75,3 @@ sha256sums=(SKIP
SKIP
693aabb24a6e7ce21fe0b5d14394e19edcb8476663b5afa4463f9fa0df24d946 # no_hostname.patch
b6dce6681f223b18a90614edbcdeb00f228abd1216e22c4bd07285321cd2ceb7) # disable-lto-link-order2.patch

View file

@ -8,8 +8,8 @@
pkgname=libtool
pkgver=2.4.7
pkgrel=2
_gccver=12.1.0
pkgrel=3
_gccver=12.1.1
pkgdesc='A generic library support script'
arch=(x86_64)
url='https://www.gnu.org/software/libtool'

View file

@ -8,8 +8,8 @@
# toolchain build order: linux-api-headers->glibc->binutils->gcc->binutils->glibc
pkgname=linux-api-headers
pkgver=5.17.5
pkgrel=02
pkgver=5.10.134
pkgrel=01
pkgdesc='Kernel headers sanitized for use in userspace'
arch=(any)
url='https://www.gnu.org/software/libc'
@ -38,5 +38,5 @@ license=(GPL2)
validpgpkeys=('ABAF11C65A2970B130ABE3C479BE3E4300411886' # Linus Torvalds
'647F28654894E3BD457199BE38DBBDC86092693E') # Greg Kroah-Hartman
sha256sums=(9bbcd185b94436f9c8fe977fa0e862f60d34003562327fcebb27c9fa342fe987 # linux-5.17.5.tar.xz
56fc82e97b63cca0a4ea8b916629900fc0ec72f25a89dcedc331f0d1194dd1fe) # linux-5.17.5.tar.sign
sha256sums=(ec3513acdf033dd8f8ac2545cd1bb826b0669e151185e5f70408a5c9fe273269 # linux-5.10.134.tar.xz
cb4dd522165166f5147d979a8434e34a75c97655b9e9c47dbc363e521f8e606a) # linux-5.10.134.tar.sign

View file

@ -6,15 +6,15 @@
# toolchain build order: linux-api-headers->glibc->binutils->gcc->glibc->binutils->gcc
pkgname=linux-api-headers
pkgver=5.17.5
pkgrel=2
pkgver=5.18.15
pkgrel=1
pkgdesc='Kernel headers sanitized for use in userspace'
arch=(any)
url='https://www.gnu.org/software/libc'
license=(GPL2)
makedepends=(rsync)
source=(https://www.kernel.org/pub/linux/kernel/v${pkgver:0:1}.x/linux-${pkgver}.tar.{xz,sign})
sha256sums=('9bbcd185b94436f9c8fe977fa0e862f60d34003562327fcebb27c9fa342fe987'
sha256sums=('69804febdc388a69dfb64493b7b58d402853de3a14144ea8db7fd67c30dcbe3c'
'SKIP')
validpgpkeys=('ABAF11C65A2970B130ABE3C479BE3E4300411886' # Linus Torvalds
'647F28654894E3BD457199BE38DBBDC86092693E') # Greg Kroah-Hartman

View file

@ -1,2 +1,3 @@
rsync

View file

@ -0,0 +1,123 @@
From 7eec2b56f54c778d5bd6e7aea49ee03e3b76e769 Mon Sep 17 00:00:00 2001
From: Peter Robinson <pbrobinson@gmail.com>
Date: Fri, 22 Jan 2021 20:36:23 +0000
Subject: [PATCH v2] Add support for compressing firmware in copy-firmware.sh
As of kernel 5.3 there's initial support for loading compressed firmware.
At this stage the only supported compression methis is "xz -C crc32" but
this option brings significant benefits.
Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
---
v2: quote filename for xz command
Makefile | 4 ++++
copy-firmware.sh | 47 +++++++++++++++++++++++++++++++----------------
2 files changed, 35 insertions(+), 16 deletions(-)
diff --git a/Makefile b/Makefile
index e1c362f..9a48471 100644
--- a/Makefile
+++ b/Makefile
@@ -11,3 +11,7 @@ check:
install:
mkdir -p $(DESTDIR)$(FIRMWAREDIR)
./copy-firmware.sh $(DESTDIR)$(FIRMWAREDIR)
+
+installcompress:
+ mkdir -p $(DESTDIR)$(FIRMWAREDIR)
+ ./copy-firmware.sh -C $(DESTDIR)$(FIRMWAREDIR)
diff --git a/copy-firmware.sh b/copy-firmware.sh
index 9b46b63..0dd2e5c 100755
--- a/copy-firmware.sh
+++ b/copy-firmware.sh
@@ -6,6 +6,7 @@
verbose=:
prune=no
+compress=no
while test $# -gt 0; do
case $1 in
@@ -19,6 +20,11 @@ while test $# -gt 0; do
shift
;;
+ -C | --compress)
+ compress=yes
+ shift
+ ;;
+
*)
if test "x$destdir" != "x"; then
echo "ERROR: unknown command-line options: $@"
@@ -31,40 +37,49 @@ while test $# -gt 0; do
esac
done
+if test "x$compress" = "xyes"; then
+ cmpxtn=.xz
+ grep '^File:' WHENCE | sed -e's/^File: *//g' -e's/"//g' | while read f; do
+ test -f "$f" || continue
+ $verbose "compressing $f"
+ xz -C crc32 "$f"
+ done
+fi
+
grep '^File:' WHENCE | sed -e's/^File: *//g' -e's/"//g' | while read f; do
- test -f "$f" || continue
- $verbose "copying file $f"
- install -d $destdir/$(dirname "$f")
- cp -d "$f" $destdir/"$f"
+ test -f "$f$cmpxtn" || continue
+ $verbose "copying file $f$cmpxtn"
+ install -d $destdir/$(dirname "$f$cmpxtn")
+ cp -d "$f$cmpxtn" $destdir/"$f$cmpxtn"
done
grep -E '^Link:' WHENCE | sed -e's/^Link: *//g' -e's/-> //g' | while read f d; do
- if test -L "$f"; then
- test -f "$destdir/$f" && continue
- $verbose "copying link $f"
- install -d $destdir/$(dirname "$f")
+ if test -L "$f$cmpxtn"; then
+ test -f "$destdir/$f$cmpxtn" && continue
+ $verbose "copying link $f$cmpxtn"
+ install -d $destdir/$(dirname "$f$cmpxtn")
cp -d "$f" $destdir/"$f"
if test "x$d" != "x"; then
- target=`readlink "$f"`
+ target=`readlink "$f$cmpxtn"`
if test "x$target" != "x$d"; then
$verbose "WARNING: inconsistent symlink target: $target != $d"
else
if test "x$prune" != "xyes"; then
- $verbose "WARNING: unneeded symlink detected: $f"
+ $verbose "WARNING: unneeded symlink detected: $f$cmpxtn"
else
- $verbose "WARNING: pruning unneeded symlink $f"
- rm -f "$f"
+ $verbose "WARNING: pruning unneeded symlink $f$cmpxtn"
+ rm -f "$f$cmpxtn"
fi
fi
else
- $verbose "WARNING: missing target for symlink $f"
+ $verbose "WARNING: missing target for symlink $f$cmpxtn"
fi
else
- $verbose "creating link $f -> $d"
- install -d $destdir/$(dirname "$f")
- ln -sf "$d" "$destdir/$f"
+ $verbose "creating link $f$cmpxtn -> $d$cmpxtn"
+ install -d $destdir/$(dirname "$f$cmpxtn")
+ ln -sf "$d$cmpxtn" "$destdir/$f$cmpxtn"
fi
done
--
2.29.2

View file

@ -6,7 +6,7 @@
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgbase=linux-lts
pkgver=5.10.132
pkgver=5.10.134
pkgrel=01
pkgdesc='LTS Linux 5.10 w/o zstd & ipv6'
_url="https://www.kernel.org/"
@ -62,7 +62,7 @@ build() {
_package() {
pkgdesc="The $pkgdesc kernel and modules w/o zstd ipv6 touchscreen"
depends=(coreutils kmod initramfs)
optdepends=('crda: to set the correct wireless channels of your country'
optdepends=('wireless-regdb: to set the correct wireless channels of your country'
'linux-firmware: firmware images needed for some devices')
provides=(VIRTUALBOX-GUEST-MODULES WIREGUARD-MODULE)
replaces=(wireguard-lts)
@ -80,8 +80,7 @@ _package() {
echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"
echo "Installing modules..."
make INSTALL_MOD_PATH="$pkgdir/usr