Update several packages, various fixes to compilation, various boot fixes

This commit is contained in:
Nathan Fisher 2022-08-26 10:33:22 -04:00
parent 828f465435
commit 2f9598382b
50 changed files with 177 additions and 30413 deletions

View file

@ -47,6 +47,7 @@ subdirs += gettext
#subdirs += argp-standalone
subdirs += elfutils
subdirs += libffi
subdirs += gawk
#subdirs += libressl
subdirs += openssl
subdirs += wget

10
world/gawk/Makefile Normal file
View file

@ -0,0 +1,10 @@
# Makefile - hhl - /usr/src/world/gawk
# Copyright 2020 Nathan Fisher <nfisher.sr@gmail.com>
#
distname = gawk
include world.mk
config_opts += --host=$(tgt)
config_opts += --with-sysroot=$(build)
include targets.mk

View file

@ -1,17 +1,17 @@
diff -Naur libcap-2.47.orig/Make.Rules libcap-2.47/Make.Rules
--- libcap-2.47.orig/Make.Rules 2021-01-23 21:06:05.000000000 -0500
+++ libcap-2.47/Make.Rules 2021-02-02 23:53:56.595677007 -0500
@@ -76,7 +76,7 @@
BUILD_GPERF := $(shell which gperf >/dev/null 2>/dev/null && echo yes)
diff -Naur libcap-2.65.orig/Make.Rules libcap-2.65/Make.Rules
--- libcap-2.65.orig/Make.Rules 2022-08-25 21:32:12.478981513 -0400
+++ libcap-2.65/Make.Rules 2022-08-25 21:33:55.027444454 -0400
@@ -63,7 +63,7 @@
KERNEL_HEADERS := $(topdir)/libcap/include/uapi
LIBCAP_INCLUDES = -I$(KERNEL_HEADERS) -I$(topdir)/libcap/include
DEFINES := -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
-SYSTEM_HEADERS = /usr/include
+SYSTEM_HEADERS = $(SYSROOT)/usr/include
INCS=$(topdir)/libcap/include/sys/capability.h
LDFLAGS += -L$(topdir)/libcap
CFLAGS += -Dlinux $(WARNINGS) $(DEBUG)
@@ -89,7 +89,7 @@
# DYNAMIC controls how capsh etc are linked - to shared or static libraries
SUDO := sudo
CC := $(CROSS_COMPILE)gcc
@@ -121,7 +121,7 @@
# Force enabled with "make DYNAMIC=yes ...".
DYNAMIC := $(shell if [ ! -d "$(topdir)/.git" ]; then echo $(SHARED); else echo no ; fi)
-PAM_CAP ?= $(shell if [ -f /usr/include/security/pam_modules.h ]; then echo $(SHARED) ; else echo no ; fi)

View file

@ -2,8 +2,9 @@
# Copyright 2020 Nathan Fisher <nfisher.sr@gmail.com>
#
distname = man-pages
patches += man-pages-destdir.patch
no_objdir = 1
use_configure = 0
include world.mk
build_cmd =
install_cmd = $(MAKE) DESTDIR=$(DESTDIR) prefix=/usr -C $(objdir) install
include targets.mk

View file

@ -1,22 +0,0 @@
diff -Naur man-pages-5.10.orig/Makefile man-pages-5.10/Makefile
--- man-pages-5.10.orig/Makefile 2020-12-21 10:20:40.000000000 -0500
+++ man-pages-5.10/Makefile 2021-02-01 15:42:12.024004277 -0500
@@ -1,6 +1,5 @@
-DESTDIR=
prefix?=/usr
-MANDIR=$(prefix)/share/man
+MANDIR=$(DESTDIR)$(prefix)/share/man
all: remove install
@@ -24,8 +23,8 @@
install:
for i in man?; do \
- install -d -m 755 $(DESTDIR)$(MANDIR)/"$$i" || exit $$?; \
- install -m 644 "$$i"/* $(DESTDIR)$(MANDIR)/"$$i" || exit $$?; \
+ install -d -m 755 $(MANDIR)/"$$i" || exit $$?; \
+ install -m 644 "$$i"/* $(MANDIR)/"$$i" || exit $$?; \
done
# Check if groff reports warnings (may be words of sentences not displayed)

View file

@ -2,7 +2,6 @@
# Copyright 2020 Nathan Fisher <nfisher.sr@gmail.com>
#
distname = psmisc
patches += psmisc-malloc.patch
include world.mk
config_opts += --host=$(tgt)
export CFLAGS = --sysroot=$(DESTDIR)

View file

@ -1,55 +0,0 @@
diff -Naur psmisc-23.3.orig/configure psmisc-23.3/configure
--- psmisc-23.3.orig/configure 2019-10-24 06:25:15.231547509 -0400
+++ psmisc-23.3/configure 2021-02-03 00:15:16.265839933 -0500
@@ -9658,25 +9658,9 @@
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
-if test $ac_cv_func_malloc_0_nonnull = yes; then :
$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
-else
- $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
-
- case " $LIBOBJS " in
- *" malloc.$ac_objext "* ) ;;
- *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
- ;;
-esac
-
-
-$as_echo "#define malloc rpl_malloc" >>confdefs.h
-
-fi
-
-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
$as_echo_n "checking for working memcmp... " >&6; }
if ${ac_cv_func_memcmp_working+:} false; then :
@@ -9787,25 +9771,9 @@
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
-if test $ac_cv_func_realloc_0_nonnull = yes; then :
$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
-else
- $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
-
- case " $LIBOBJS " in
- *" realloc.$ac_objext "* ) ;;
- *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
- ;;
-esac
-
-
-$as_echo "#define realloc rpl_realloc" >>confdefs.h
-
-fi
-
-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
$as_echo_n "checking whether stat accepts an empty string... " >&6; }
if ${ac_cv_func_stat_empty_string_bug+:} false; then :

Binary file not shown.

View file

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1,5 @@
#!/bin/execlineb -P
if { pipeline { redirfd -w 2 /dev/null s6-rc -a list } grep -qFx mount-filesystems }
envfile /etc/s6/sv/getty-tty1/conf
importas -iu SPAWN SPAWN
exec getty tty1

View file

@ -0,0 +1,5 @@
#!/bin/execlineb -P
if { pipeline { redirfd -w 2 /dev/null s6-rc -a list } grep -qFx mount-filesystems }
envfile /etc/s6/sv/getty-tty2/conf
importas -iu SPAWN SPAWN
exec getty tty2

View file

@ -0,0 +1,5 @@
#!/bin/execlineb -P
if { pipeline { redirfd -w 2 /dev/null s6-rc -a list } grep -qFx mount-filesystems }
envfile /etc/s6/sv/getty-tty3/conf
importas -iu SPAWN SPAWN
exec getty tty3

View file

@ -0,0 +1,5 @@
#!/bin/execlineb -P
if { pipeline { redirfd -w 2 /dev/null s6-rc -a list } grep -qFx mount-filesystems }
envfile /etc/s6/sv/getty-tty4/conf
importas -iu SPAWN SPAWN
exec getty tty4

View file

@ -0,0 +1,5 @@
#!/bin/execlineb -P
if { pipeline { redirfd -w 2 /dev/null s6-rc -a list } grep -qFx mount-filesystems }
envfile /etc/s6/sv/agetty-tty5/conf
importas -iu SPAWN SPAWN
exec getty tty5

View file

@ -0,0 +1,5 @@
#!/bin/execlineb -P
if { pipeline { redirfd -w 2 /dev/null s6-rc -a list } grep -qFx mount-filesystems }
envfile /etc/s6/sv/agetty-tty6/conf
importas -iu SPAWN SPAWN
exec getty tty6

View file

@ -0,0 +1 @@
../../uid/0/env

View file

@ -0,0 +1 @@
S6_FDHOLDER_STORE_REGEX

View file

@ -0,0 +1,17 @@
#!/usr/bin/execlineb -P
pipeline -dw --
{
if --
{
forstdin -x0 -- i
exit 0
}
if -nt --
{
redirfd -r 0 ./data/autofilled
s6-ipcclient -l0 -- s
/usr/libexec/s6-rc-fdholder-filler -1 --
}
s6-svc -t .
}
s6-fdholder-daemon -1 -i data/rules -- s

View file

@ -0,0 +1,8 @@
#!/usr/bin/execlineb -P
fdmove -c 2 1
fdmove 1 3
s6-ipcserver-socketbinder -- s
s6-ipcserverd -1 --
s6-ipcserver-access -v0 -E -l0 -i data/rules --
s6-sudod -t 30000 --
/usr/libexec/s6-rc-oneshot-run -l ../.. --

View file

@ -0,0 +1,3 @@
#!/usr/bin/execlineb -P
s6-fdholder-retrieve ../s6rc-fdholder/s "pipe:s6rc-r-udevd-log"
./run.user

View file

@ -0,0 +1,5 @@
#!/bin/execlineb -P
foreground { if -n -t { test -d /var/log/udevd } install -d -m 0755 -o s6log -g s6log /var/log/udevd }
envfile /etc/s6/sv/udevd-log/conf
importas -sCiu DIRECTIVES DIRECTIVES
s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /var/log/udevd

View file

@ -0,0 +1,5 @@
#!/usr/bin/execlineb -P
fdmove 1 0
s6-fdholder-retrieve ../s6rc-fdholder/s "pipe:s6rc-w-udevd-log"
fdswap 0 1
./run.user

View file

@ -0,0 +1,3 @@
#!/bin/execlineb -P
fdmove -c 2 1
exec udevd -D

View file

@ -1,8 +1,8 @@
# Makefile - hhl - /usr/src/world/usr.bin
# Copyright 2020 Nathan Fisher <nfisher.sr@gmail.com>
#
#
subdirs = $(shell find . -maxdepth 1 -mindepth 1 -type d | grep -v file)
subdirs = $(shell find . -maxdepth 1 -mindepth 1 -type d | grep -v file | grep -v awk)
all: ${subdirs}