mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-13 14:55:24 +01:00
Add sysb and sysc scaffolding.
Now that we have the Linux Kernel built, we move to a full-disk (rather than initramfs) setup in sysc. However, we cannot assume the seed kernel has support for mounting hard drives. So, first we need to kexec into sysb, which is used as a jumping off point to create the hard drive for sysc. Additionally, since 2.6.16 does not have support for on-demand initramfs (initramfs must be built into kernel), we will have to rebuild the linux kernel within sysb without the initramfs. All of this process is not performed for chroot mode. Instead, we skip sysb and jump straight to sysc, copying over appropriate data. The python scripts have been changed slightly. Each sys* inherits SysGeneral, which contains various functions which are not specific to any sys* and simplifies those files. rootfs now also handles sysb and sysc. bootstrap.cfg also gives an indication whether we are running in a chroot to avoid attempting to kexec/mount within a chroot.
This commit is contained in:
parent
925ce198c1
commit
5c88f1c87f
75 changed files with 624 additions and 176 deletions
107
sysc/coreutils-8.32/checksums
Normal file
107
sysc/coreutils-8.32/checksums
Normal file
|
|
@ -0,0 +1,107 @@
|
|||
4b1cb2c39577f107feb8def55982f789594ed26cac2440dbd794d0efc1060113 /image/bin/[
|
||||
226c2c0185f322f375bcdc0723fd306b2b68fe532168926b19fc90de4be3db60 /image/bin/b2sum
|
||||
9c4fe4ce411f086c3daaa0e85a96d15214482e1e8cbe66286594dc02620ddd97 /image/bin/base32
|
||||
fd6dcb61a183b9a0342276f77a310a4faf14b20e9aa58c8d9755d49db263aba3 /image/bin/base64
|
||||
fe7d1f2f778a2e4f1cb100e901472cdbf50bb66ed0e64ef0e0899198e9795464 /image/bin/basename
|
||||
40abb4ddaee9f983a38599d1a11816fe376a842e09194bd0c3708afc20185cb0 /image/bin/basenc
|
||||
5921f992032733277031c65ba4b5ac03a2168d731c90513e2cffd2f6defc013e /image/bin/cat
|
||||
cd2187495f4f5adf59e48b62ad92d01c8d7c8b3d4f5bb76fc7c790217ab9bcce /image/bin/chcon
|
||||
944e56b469d9dca8e888b0a6a8bb90d126279e6a19a40e71c077ce6fe668c0a2 /image/bin/chgrp
|
||||
6e7aa98b4f221282e1fef34d8e266239e095ee9c7e76847e3a91412ba2c0b7c8 /image/bin/chmod
|
||||
453cb0c1cba85966823d91dfcb79fe494736839656bd757b790de7c3b1403d8c /image/bin/chown
|
||||
6b90b8354b9fe3c8804384a8c028f01b6b04df764c3af5e8a8fbe1fa38aeca0c /image/bin/chroot
|
||||
1cf4e54e3bf96739b5cd184dad44f40ed19f3a8b0aafd19f72997cef9b473db6 /image/bin/cksum
|
||||
786a7661c0ab957e276218acdffc2b6dcbca521267b3857b7b9920e80da83fe1 /image/bin/comm
|
||||
8e1ef24a88b8e032c2e1af3186a206212e8939fe011ff9c6fe278bbae5536d47 /image/bin/cp
|
||||
d46f3c060d5edbea25a2fcf7c65dcbeed3d0084eb2f1a15c1b8f8eeed6642d67 /image/bin/csplit
|
||||
fb8faa5610e38b9e3c186aa9cdfcbe7ca07809c3569e3dafe3890678c36ebeac /image/bin/cut
|
||||
8146b6270016150120854b3eec6382d52d44e72f80abbde00c6c8238a78839b6 /image/bin/date
|
||||
2d70f5bda07a63a645db04b7c0908ca96873f075e8a1d89422b90f48bffb04fa /image/bin/dd
|
||||
7831d760c20670064963fa41b0939ac19932d8b04a4c7b56aabfd4d917962675 /image/bin/df
|
||||
44499ede5dc7080ffb123b87645b5c8a3b9b53bef1c2e0edd93e810d3d9a3d12 /image/bin/dir
|
||||
5601dc48fe224812071c2c1de6a73223aaf90921ec90c6575596f4fbeb92a570 /image/bin/dircolors
|
||||
2ba169c8791696adc37779dcc35eb689af5bebce3ea05ba46d3c1b667dc6bc04 /image/bin/dirname
|
||||
ce57fade16775a802e3b14643dd3e2d41db8bd6fe8a5005cc8ba2290c9d2be91 /image/bin/du
|
||||
1613e25b9b8ead7db666b9c77ec0e4f37239a5d847bb475ba89881231e8050c9 /image/bin/echo
|
||||
bb822886e49633840975978af4cada542a951522ac753dfc0b67b5054d5be0d8 /image/bin/env
|
||||
7240ea8a4139df493be025d41503d827c64b6051ac3651c0d2448694991f4051 /image/bin/expand
|
||||
10e7908eda22cf34ae2fb7b578497c60aca01adb9b93865af4b24659ed4731ad /image/bin/expr
|
||||
f21cd98cbae3c93ba86893cbde49177f068b097aa75b9dad63bc233b8c0eff55 /image/bin/factor
|
||||
2e31dcb31b02e1665d95948ef9fba420c3d03f77f15314b8dc39b82e09112821 /image/bin/false
|
||||
993f48bf28d51ef0631c54c5d43692db891959950ccff7b012c9fe622a4dc23f /image/bin/fmt
|
||||
0dcdbcd7578726d424d5873d1b0907867db67430b456bbb6d617a7769013af95 /image/bin/fold
|
||||
072b49fe3e8c3ed889cb9756d23bb3040a633b44889e2e8f2d033ea795f16e32 /image/bin/groups
|
||||
8af0f46e031b8c6aa13367cfaf24dc3d7861d7a92785e3483e1b4e7d0d1035ef /image/bin/head
|
||||
b14cae09e34d8ff404fff1d44c9d5eb28ace744b25e18c097b2304b475195b49 /image/bin/hostid
|
||||
a064920bb701620402aca4e73e53b0aa92dd98003d265f1b90e7d71e53bdd9ee /image/bin/id
|
||||
efc206df123a0fc345347ca9d67a0c257af9751f860707f32729f7c4c0a713ee /image/bin/install
|
||||
e4b88f6a1d9d63a5f765690b019aac1aa9e01641666444e6c41e2d8ae1f1be39 /image/bin/join
|
||||
e0a9c45e9ecd9a50fec3bf50246ddf77c3e6220e295928878166fab92dea41bb /image/bin/kill
|
||||
daa02c83dd3ab0d5e9fd3945500aae8838fd660f102f3e9826858235101c0e3c /image/bin/link
|
||||
b2c4f2b084743a12c9bad0fa5403484c5ead4192eab69fc9b2f84971294eef8d /image/bin/ln
|
||||
37dc27b546188d9a7525002c3557480fd53189819f5cea0e3ec9a5d0bf4edc4f /image/bin/logname
|
||||
0c00c6773636fce64f37bf7bda1ab5bef9c4342a182a89b829d7903d63d39726 /image/bin/ls
|
||||
1efa01b8f1295fa476366b7d1a15c823e9763a4f4d67195b27c2ba542d3e1048 /image/bin/md5sum
|
||||
cf4c167f97ee4c120371b34759f2742e2eb35bb457585742d47c064d1cd20d20 /image/bin/mkdir
|
||||
3b0b76786a1f2259f50eb479caf8389535522578e286780d0de0d8b5f5504d98 /image/bin/mkfifo
|
||||
753351bf70cf50988318b4c3e75178d77dbf0af453764a92b9d0813accf92438 /image/bin/mknod
|
||||
b2e5fac44cd937921a96eab1d6de49158d794b69d98904c6197eb927f49eee3f /image/bin/mktemp
|
||||
4e4e8125a649146c92b6d663f4a503e296c238549a56084666e2dc96a43cf280 /image/bin/mv
|
||||
fd8f3a5773c1e5ec53afdb566c40a48d48cf522136cd1be7e6007cb32168347b /image/bin/nice
|
||||
119d0a16ffb5249299fe4a1016e854b55c4664e89428f34afba489c050b6616c /image/bin/nl
|
||||
2f0ba52b0cea906e5bed48634a0a72962cbc37ca7a4d9018f14f36a9a7078aff /image/bin/nohup
|
||||
adb3a4ee51b6142640052983cf61ab1c1a8cd949d0cb087baa53b7e68bc7d2eb /image/bin/nproc
|
||||
9b2e9da81d9cdd5ee6b0c824a89841855dc52c9ca2650be9a28b9e13bac2d2e0 /image/bin/numfmt
|
||||
5085d336706f08f3bad923aa897de93ac438374f9852f0d2dec9b1e6e6dad1d7 /image/bin/od
|
||||
7ed640050e9868ad1fed9e7834b40277b9d3b42d873b3b28c01192fce33b12c9 /image/bin/paste
|
||||
53636efdd4fc5c4dcda3888e572dfbe1c39c7574e16fb88219e8fee12397305e /image/bin/pathchk
|
||||
2c33685f31ef55afefb5e2878ec6ad16a1731d00cf6fdc391fcdfc32633a9630 /image/bin/pinky
|
||||
3db5a930e2e8e2d2d9fe5babce7ece1187a8e43fd3b3a73de46b7536c07488f6 /image/bin/pr
|
||||
1b1505e75514d057d8819391abbb6cdd30fcca89cda0b852393d62059476f6e1 /image/bin/printenv
|
||||
369d7b4d49b4d7710e284c4d0713c7abdfa01ee5e0239f8e8be6c7cc521a5723 /image/bin/printf
|
||||
2bc17d7bdfc3a855be1e1c82089809e1339aa8a09701b2d8fe0d33219336d905 /image/bin/ptx
|
||||
5ee1f648fdd305f478e1dd71e4befbc524cac46c23708c0649b1f055ff305286 /image/bin/pwd
|
||||
61a30394510e94c5f7be84fa341948a6f4cf65f5931a9107dd23d0cd66a2b82a /image/bin/readlink
|
||||
319c34f870304012d3c491853c16f6e0d5255ef7ceaffd118dcf0acd57f88606 /image/bin/realpath
|
||||
dd51e28c1a922c459d81f08d6a596614cf1f9383b856623f8e02b6de94cbe22a /image/bin/rm
|
||||
7b342e22dfd4e51c063bb434b330ac650b452878555543a54d7c8becbec64a71 /image/bin/rmdir
|
||||
0da00f19781fca93b3b12c8a1e86348b139a087ca3fcc8d30bbd52c1ac7f1470 /image/bin/runcon
|
||||
2cafd71e25c88b7641655890146f2899c71459f9bd1ac902aa4fbcf45d485ea6 /image/bin/seq
|
||||
9825fb6c054dd81fee7bac2b21e34f46ffbd7e06d4101846ea83387395ce74ef /image/bin/sha1sum
|
||||
159f7650b7367309df6b4a3dff65c7815211a21a35bff9c44a083ac257d5c984 /image/bin/sha224sum
|
||||
bbedf99768efbd9f3c1e8b3ad5537109ef0a0c0832e5f1255aa07278b7791ab5 /image/bin/sha256sum
|
||||
3d23b8a7faf5b86b4330c787adeb9a234fea32480b05cd1a47ea8e59ffb41a76 /image/bin/sha384sum
|
||||
b0ee23e6205993d8c148641f40e71a0d532454b60ce4af81ee31ed9efa0b6c2c /image/bin/sha512sum
|
||||
e5121aee699f38aaffd1f13396cc511d0cbdf2ce6f99cd2a383ab44b13ac560f /image/bin/shred
|
||||
62a7ca82d151ca73d4bca464bd89c1fe32caa5aaa6f0bd22ac43ae304b9cd074 /image/bin/shuf
|
||||
60788da914956ef6308bb48fe98ea0bb6b993c4cffa99bd23bc901252a688105 /image/bin/sleep
|
||||
f16532ea0aebadfa626ed21c759f5429c0f3f86ad1c6d4390e957154784a34a0 /image/bin/sort
|
||||
8bf2bdb2ad64a52bd8c40cb5388de9420acd776e24eb9f41087fcbb5f88d2705 /image/bin/split
|
||||
6f67d8777f310cb65ef069e95619f1baa7a577d64b4e56e9bf4da55c572da1be /image/bin/stat
|
||||
614b2c0b19e34d3ba2cb093ec5723bff27c8ac0e7b3accf4de69168f93fdfca1 /image/bin/stdbuf
|
||||
a2895039858ebe3c0675c9a5d5846ecd802f0e2b776df3358eda4b9a40294ed0 /image/bin/stty
|
||||
be5ae441381df95c156fdda4e9b7a9909327d81a119e8563a133ffaa00c4bf76 /image/bin/sum
|
||||
6b71e4f6a51f9f3f3abd10dfe177217fb8ddcadff6edbb75fbf84296d00645e0 /image/bin/sync
|
||||
e3dcdfedfe4fda19b07411e7ae7e8c32aae797932ca8c5bbf95ebd85ee1e0934 /image/bin/tac
|
||||
34bb92fda0e49f488322742f9527fbb840b85feea084cba8cc252b697f6ade45 /image/bin/tail
|
||||
945739b04260b4114ebb9757bc13a582c3dde6f00bffc5de25703e851fa112fd /image/bin/tee
|
||||
a2e22163aaf77d89293567393ad4d9b198b712e824591241c639f69a5cf671b5 /image/bin/test
|
||||
365a00f40d8e6e5e07aa9e00bd2819c0b7e15e74d4c99aeea52337d168cd54ab /image/bin/timeout
|
||||
484e588f4e5c38f10cf5dd70c4087b19c6049bb728f07c43801d80bd263d1b15 /image/bin/touch
|
||||
cf704419a2d480bce878e244ec394b5504d06e7bc5357483f01e89f9745dfdd9 /image/bin/tr
|
||||
062ab3a391741063b4c33b990b9e3eefc5d9e9bbe6e283ac515724efd9785e66 /image/bin/true
|
||||
c4fe5e836e2371ad66cf2123c656de3761d79fce1b4eff4e5add9aed6cc954e4 /image/bin/truncate
|
||||
a683492998ae6cdeb221f6f0c404fe1bffae42024e91531060bc03a72a06ef09 /image/bin/tsort
|
||||
ff52caff909a08bf23ad85acf30a5019b5569846cda014d64d30c0336b9758a6 /image/bin/tty
|
||||
0128ce2ff9556dba801c0acc35a727de8525e7ceefc6ff518b88de8a3463857f /image/bin/uname
|
||||
28a13bdd01fc216f35bb39b28254038e64563571bea1dc5b56c9b88cee758e8f /image/bin/unexpand
|
||||
73ea7c3aa47e17d398762c7d0a6594564792a1cba251eef865ad5d83af0b8488 /image/bin/uniq
|
||||
008ec49612fb884c43505fefbab0609c768d8169648df51b4411776a18089b41 /image/bin/unlink
|
||||
7497fb11caa2bb7ce43d3673b5045baf5caecac9208366ec28620a3981669c55 /image/bin/uptime
|
||||
fe64d199e3fdbda804a00d4f5ca988a90efc7afb41b7a53171d1c6406c724623 /image/bin/users
|
||||
e57a3d39e4ae7ba093b5996676fa5c123a1f72eec4b615d18b5c184aa12166b3 /image/bin/vdir
|
||||
aa143b5801454739d12007fc535651ab7ce76bbfba49018723f98b77e32b17da /image/bin/wc
|
||||
56ce0dbe4150ccef579e042adf1a0970928a44e29d96bd36bb5a586eead3a2cf /image/bin/who
|
||||
090e03584c0b9754c76ba23689321a8b114fdbeb3d158e15da4e700a78b33eed /image/bin/whoami
|
||||
829c9904baeeb08f8f074223b7f0a8d7dfc375779cca0626a020c1323d4f7abb /image/bin/yes
|
||||
02ae56360b3c7a21a83c0bffba077f82f851fbf08ac26e740779060bebb2e006 /image/libexec/coreutils/libstdbuf.so
|
||||
44
sysc/coreutils-8.32/coreutils-8.32.sh
Executable file
44
sysc/coreutils-8.32/coreutils-8.32.sh
Executable file
|
|
@ -0,0 +1,44 @@
|
|||
# SPDX-FileCopyrightText: 2021 Melg Eight <public.melg8@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
regenerate_files() {
|
||||
build-aux/gen-lists-of-programs.sh --autoconf > m4/cu-progs.m4
|
||||
build-aux/gen-lists-of-programs.sh --automake > src/cu-progs.mk
|
||||
build-aux/gen-single-binary.sh src/local.mk > src/single-binary.mk
|
||||
touch ChangeLog
|
||||
cp ../gnulib-d279bc/build-aux/po/Makefile.in.in po/Makefile.in.in
|
||||
|
||||
. ../../import-gnulib.sh
|
||||
|
||||
# Disable generation of man pages due to lack of needed perl 5.8
|
||||
# dependency.
|
||||
cp man/dummy-man man/help2man
|
||||
|
||||
VERSION=$(basename ${BASH_SOURCE[0]} .sh | sed 's/coreutils-//')
|
||||
echo $VERSION > .tarball-version
|
||||
|
||||
# We don't have autopoint from gettext yet.
|
||||
AUTOPOINT=true autoreconf-2.69 -fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
regenerate_files
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# FORCE_UNSAFE_CONFIGURE disables "you should not run configure as root"
|
||||
# error from configuration system of coreutils.
|
||||
FORCE_UNSAFE_CONFIGURE=1 ./configure CFLAGS="-static" \
|
||||
--prefix="${PREFIX}" \
|
||||
--build=i386-unknown-linux-musl
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
make PREFIX="${PREFIX}" MAKEINFO="true"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make install PREFIX="${PREFIX}" MAKEINFO="true" DESTDIR="${DESTDIR}"
|
||||
}
|
||||
298
sysc/coreutils-8.32/import-gnulib.sh
Normal file
298
sysc/coreutils-8.32/import-gnulib.sh
Normal file
|
|
@ -0,0 +1,298 @@
|
|||
#!/bin/sh
|
||||
|
||||
# SPDX-FileCopyrightText: 2021 Melg Eight <public.melg8@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
../gnulib-d279bc/gnulib-tool --import --local-dir=gl \
|
||||
--lib=libcoreutils \
|
||||
--source-base=lib \
|
||||
--m4-base=m4 \
|
||||
--doc-base=doc \
|
||||
--tests-base=gnulib-tests \
|
||||
--aux-dir=build-aux \
|
||||
--with-tests \
|
||||
--makefile-name=gnulib.mk \
|
||||
--no-conditional-dependencies \
|
||||
--no-libtool \
|
||||
--macro-prefix=gl \
|
||||
--avoid=canonicalize-lgpl \
|
||||
--avoid=dummy \
|
||||
acl \
|
||||
alignof \
|
||||
alloca \
|
||||
announce-gen \
|
||||
areadlink-with-size \
|
||||
argmatch \
|
||||
argv-iter \
|
||||
assert \
|
||||
autobuild \
|
||||
backup-rename \
|
||||
backupfile \
|
||||
base32 \
|
||||
base64 \
|
||||
btowc \
|
||||
buffer-lcm \
|
||||
c-strcase \
|
||||
calloc-gnu \
|
||||
canon-host \
|
||||
canonicalize \
|
||||
chmodat \
|
||||
chown \
|
||||
chownat \
|
||||
cl-strtod \
|
||||
cl-strtold \
|
||||
cloexec \
|
||||
closein \
|
||||
closeout \
|
||||
config-h \
|
||||
configmake \
|
||||
crypto/md5 \
|
||||
crypto/sha1 \
|
||||
crypto/sha256 \
|
||||
crypto/sha512 \
|
||||
cycle-check \
|
||||
d-ino \
|
||||
d-type \
|
||||
di-set \
|
||||
diacrit \
|
||||
dirfd \
|
||||
dirname \
|
||||
do-release-commit-and-tag \
|
||||
dtoastr \
|
||||
dup2 \
|
||||
environ \
|
||||
error \
|
||||
euidaccess \
|
||||
exclude \
|
||||
exitfail \
|
||||
explicit_bzero \
|
||||
faccessat \
|
||||
fadvise \
|
||||
fchdir \
|
||||
fclose \
|
||||
fcntl \
|
||||
fcntl-safer \
|
||||
fd-reopen \
|
||||
fdatasync \
|
||||
fdl \
|
||||
fdopen \
|
||||
fdutimensat \
|
||||
file-has-acl \
|
||||
file-type \
|
||||
fileblocks \
|
||||
filemode \
|
||||
filenamecat \
|
||||
filevercmp \
|
||||
flexmember \
|
||||
fnmatch-gnu \
|
||||
fopen-safer \
|
||||
fprintftime \
|
||||
freopen \
|
||||
freopen-safer \
|
||||
fseeko \
|
||||
fstatat \
|
||||
fsusage \
|
||||
fsync \
|
||||
ftoastr \
|
||||
ftruncate \
|
||||
fts \
|
||||
full-read \
|
||||
full-write \
|
||||
getgroups \
|
||||
gethrxtime \
|
||||
getline \
|
||||
getloadavg \
|
||||
getlogin \
|
||||
getndelim2 \
|
||||
getopt-gnu \
|
||||
getpagesize \
|
||||
getpass-gnu \
|
||||
gettext-h \
|
||||
gettime \
|
||||
gettimeofday \
|
||||
getugroups \
|
||||
getusershell \
|
||||
git-version-gen \
|
||||
gitlog-to-changelog \
|
||||
gnu-make \
|
||||
gnu-web-doc-update \
|
||||
gnumakefile \
|
||||
gnupload \
|
||||
group-member \
|
||||
hard-locale \
|
||||
hash \
|
||||
hash-pjw \
|
||||
heap \
|
||||
host-os \
|
||||
human \
|
||||
idcache \
|
||||
ignore-value \
|
||||
inttostr \
|
||||
inttypes \
|
||||
isapipe \
|
||||
isatty \
|
||||
isblank \
|
||||
largefile \
|
||||
lchmod \
|
||||
lchown \
|
||||
ldtoastr \
|
||||
lib-ignore \
|
||||
linebuffer \
|
||||
link \
|
||||
link-follow \
|
||||
linkat \
|
||||
long-options \
|
||||
lstat \
|
||||
maintainer-makefile \
|
||||
malloc-gnu \
|
||||
manywarnings \
|
||||
mbrlen \
|
||||
mbrtowc \
|
||||
mbsalign \
|
||||
mbschr \
|
||||
mbslen \
|
||||
mbswidth \
|
||||
memcasecmp \
|
||||
memchr \
|
||||
memcmp2 \
|
||||
mempcpy \
|
||||
memrchr \
|
||||
mgetgroups \
|
||||
minmax \
|
||||
mkancesdirs \
|
||||
mkdir \
|
||||
mkdir-p \
|
||||
mkfifo \
|
||||
mknod \
|
||||
mkostemp \
|
||||
mkstemp \
|
||||
mktime \
|
||||
modechange \
|
||||
mountlist \
|
||||
mpsort \
|
||||
netinet_in \
|
||||
non-recursive-gnulib-prefix-hack \
|
||||
nproc \
|
||||
nstrftime \
|
||||
obstack \
|
||||
open \
|
||||
openat-safer \
|
||||
parse-datetime \
|
||||
pathmax \
|
||||
perl \
|
||||
physmem \
|
||||
pipe-posix \
|
||||
pipe2 \
|
||||
posix-shell \
|
||||
posixtm \
|
||||
posixver \
|
||||
priv-set \
|
||||
progname \
|
||||
pthread-cond \
|
||||
pthread-mutex \
|
||||
pthread-thread \
|
||||
pthread_sigmask \
|
||||
putenv \
|
||||
quote \
|
||||
quotearg \
|
||||
randint \
|
||||
randperm \
|
||||
read-file \
|
||||
readlink \
|
||||
readtokens \
|
||||
readtokens0 \
|
||||
readutmp \
|
||||
realloc-gnu \
|
||||
regex \
|
||||
remove \
|
||||
rename \
|
||||
renameat \
|
||||
renameatu \
|
||||
rmdir \
|
||||
root-dev-ino \
|
||||
rpmatch \
|
||||
safe-read \
|
||||
same \
|
||||
save-cwd \
|
||||
savedir \
|
||||
savewd \
|
||||
select \
|
||||
selinux-at \
|
||||
setenv \
|
||||
settime \
|
||||
sig2str \
|
||||
sigaction \
|
||||
smack \
|
||||
ssize_t \
|
||||
stat-macros \
|
||||
stat-size \
|
||||
stat-time \
|
||||
statat \
|
||||
stdbool \
|
||||
stdlib-safer \
|
||||
stpcpy \
|
||||
stpncpy \
|
||||
strdup-posix \
|
||||
strncat \
|
||||
strnumcmp \
|
||||
strsignal \
|
||||
strtoimax \
|
||||
strtoumax \
|
||||
symlinkat \
|
||||
sys_ioctl \
|
||||
sys_resource \
|
||||
sys_stat \
|
||||
sys_wait \
|
||||
tempname \
|
||||
termios \
|
||||
time_rz \
|
||||
timer-time \
|
||||
timespec \
|
||||
tzset \
|
||||
uname \
|
||||
unistd-safer \
|
||||
unlink-busy \
|
||||
unlinkat \
|
||||
unlinkdir \
|
||||
unlocked-io \
|
||||
unsetenv \
|
||||
update-copyright \
|
||||
uptime \
|
||||
useless-if-before-free \
|
||||
userspec \
|
||||
utimecmp \
|
||||
utimens \
|
||||
vasprintf-posix \
|
||||
vc-list-files \
|
||||
verify \
|
||||
verror \
|
||||
version-etc-fsf \
|
||||
wchar-single \
|
||||
wcswidth \
|
||||
wcwidth \
|
||||
winsz-ioctl \
|
||||
winsz-termios \
|
||||
write-any-file \
|
||||
xalloc \
|
||||
xbinary-io \
|
||||
xdectoint \
|
||||
xfts \
|
||||
xgetcwd \
|
||||
xgetgroups \
|
||||
xgethostname \
|
||||
xmemcoll \
|
||||
xnanosleep \
|
||||
xprintf \
|
||||
xprintf-posix \
|
||||
xreadlink \
|
||||
xstrtod \
|
||||
xstrtoimax \
|
||||
xstrtol \
|
||||
xstrtol-error \
|
||||
xstrtold \
|
||||
xstrtoumax \
|
||||
year2038 \
|
||||
yesno
|
||||
|
||||
../gnulib-d279bc/build-aux/prefix-gnulib-mk --lib-name=libcoreutils lib/gnulib.mk
|
||||
38
sysc/coreutils-8.32/patches/force_to_use_nanosleep.patch
Normal file
38
sysc/coreutils-8.32/patches/force_to_use_nanosleep.patch
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
SPDX-FileCopyrightText: 2021 Melg Eight <public.melg8@gmail.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
Replace test for support of correct values produced by nanosleep.
|
||||
We always assume that kernel doesn't have correct implementation and
|
||||
instead use function from gnulib with fix. That fixes reproducibility
|
||||
problem across different kernels.
|
||||
|
||||
--- ../gnulib-d279bc/m4/nanosleep.m4
|
||||
+++ ../gnulib-d279bc/m4/nanosleep.m4
|
||||
@@ -85,23 +85,9 @@ AC_DEFUN([gl_FUNC_NANOSLEEP],
|
||||
ts_sleep.tv_nsec = 1;
|
||||
#if HAVE_DECL_ALARM
|
||||
{
|
||||
- static struct sigaction act;
|
||||
- act.sa_handler = check_for_SIGALRM;
|
||||
- sigemptyset (&act.sa_mask);
|
||||
- sigaction (SIGALRM, &act, NULL);
|
||||
- alarm (1);
|
||||
- if (nanosleep (&ts_sleep, NULL) != 0)
|
||||
- return 3;
|
||||
- /* Test for a minor problem: the handling of large arguments. */
|
||||
- ts_sleep.tv_sec = TYPE_MAXIMUM (time_t);
|
||||
- ts_sleep.tv_nsec = 999999999;
|
||||
- alarm (1);
|
||||
- if (nanosleep (&ts_sleep, &ts_remaining) != -1)
|
||||
- return 4;
|
||||
- if (errno != EINTR)
|
||||
- return 5;
|
||||
- if (ts_remaining.tv_sec <= TYPE_MAXIMUM (time_t) - 10)
|
||||
- return 6;
|
||||
+ /* Force to use HAVE_BUG_BIG_NANOSLEEP 1 across kernels even
|
||||
+ if it correctly handles big nanosleeps. */
|
||||
+ return 6;
|
||||
}
|
||||
#else /* A simpler test for native Windows. */
|
||||
if (nanosleep (&ts_sleep, &ts_remaining) < 0)
|
||||
50
sysc/coreutils-8.32/patches/gperf_dependency.patch
Normal file
50
sysc/coreutils-8.32/patches/gperf_dependency.patch
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
SPDX-FileCopyrightText: 2021 Melg Eight <public.melg8@gmail.com>
|
||||
SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
Remove dependency on gperf. This drops support for outputting unicode
|
||||
characters. We do that, because inclusion of unicodeio.h and propername.h
|
||||
from gnulib brings dependencies on gperf generated files. We don't have
|
||||
gperf at this stage so we can't regenerate them.
|
||||
|
||||
--- ./src/printf.c
|
||||
+++ ./src/printf.c
|
||||
@@ -59,7 +59,6 @@
|
||||
#include "die.h"
|
||||
#include "error.h"
|
||||
#include "quote.h"
|
||||
-#include "unicodeio.h"
|
||||
#include "xprintf.h"
|
||||
|
||||
/* The official name of this program (e.g., no 'g' prefix). */
|
||||
@@ -292,8 +291,12 @@ print_esc (const char *escstart, bool octal_0)
|
||||
|| (uni_value >= 0xd800 && uni_value <= 0xdfff))
|
||||
die (EXIT_FAILURE, 0, _("invalid universal character name \\%c%0*x"),
|
||||
esc_char, (esc_char == 'u' ? 4 : 8), uni_value);
|
||||
-
|
||||
- print_unicode_char (stdout, uni_value, 0);
|
||||
+ putchar ('\\');
|
||||
+ if (*p)
|
||||
+ {
|
||||
+ putchar (*p);
|
||||
+ p++;
|
||||
+ }
|
||||
}
|
||||
else
|
||||
{
|
||||
--- ./src/system.h
|
||||
+++ ./src/system.h
|
||||
@@ -361,13 +361,13 @@ enum
|
||||
#include "version-etc.h"
|
||||
#undef emit_bug_reporting_address
|
||||
|
||||
-#include "propername.h"
|
||||
/* Define away proper_name (leaving proper_name_utf8, which affects far
|
||||
fewer programs), since it's not worth the cost of adding ~17KB to
|
||||
the x86_64 text size of every single program. This avoids a 40%
|
||||
(almost ~2MB) increase in the on-disk space utilization for the set
|
||||
of the 100 binaries. */
|
||||
#define proper_name(x) (x)
|
||||
+#define proper_name_utf8(x, y) (x, y)
|
||||
|
||||
#include "progname.h"
|
||||
|
||||
31
sysc/coreutils-8.32/patches/remove_gettext.patch
Normal file
31
sysc/coreutils-8.32/patches/remove_gettext.patch
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
SPDX-FileCopyrightText: 2021 Melg Eight <public.melg8@gmail.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
Remove dependency on gettext, because we don't have it at this stage
|
||||
of the build.
|
||||
|
||||
--- ./configure.ac
|
||||
+++ ./configure.ac
|
||||
@@ -624,8 +624,8 @@ AM_CONDITIONAL([CROSS_COMPILING], [test "$cross_compiling" = yes])
|
||||
|
||||
# As long as "grep 'PRI[diouxX]' po/*.pot" reports matches in
|
||||
# translatable strings, we must use need-formatstring-macros here.
|
||||
-AM_GNU_GETTEXT([external], [need-formatstring-macros])
|
||||
-AM_GNU_GETTEXT_VERSION([0.19.2])
|
||||
+# AM_GNU_GETTEXT([external], [need-formatstring-macros])
|
||||
+# AM_GNU_GETTEXT_VERSION([0.19.2])
|
||||
|
||||
# For a test of uniq: it uses the $LOCALE_FR envvar.
|
||||
gt_LOCALE_FR
|
||||
--- ./Makefile.am
|
||||
+++ ./Makefile.am
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
ALL_RECURSIVE_TARGETS =
|
||||
|
||||
-SUBDIRS = po . gnulib-tests
|
||||
+SUBDIRS = . gnulib-tests
|
||||
|
||||
EXTRA_DIST = \
|
||||
.mailmap \
|
||||
Loading…
Add table
Add a link
Reference in a new issue