index : packages | |
Archlinux32 package modifications | gitolite user |
summaryrefslogtreecommitdiff |
author | Andreas Baumann <mail@andreasbaumann.cc> | 2019-01-28 21:43:43 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2019-01-28 21:43:43 +0100 |
commit | 0c37ad8eb9f60b0e2be5d3361ee2ff74a53462a8 (patch) | |
tree | 1b0043ceb8af7209d09f9b2c492a7fdfe44b593a | |
parent | 3a496e0d8ed2a6d80829092f50fdc0512bc43ec1 (diff) |
-rw-r--r-- | core/coreutils/PKGBUILD | 7 | ||||
-rw-r--r-- | core/coreutils/coreutils-8.30-uname-i486.patch | 12 |
diff --git a/core/coreutils/PKGBUILD b/core/coreutils/PKGBUILD new file mode 100644 index 00000000..b44c7b41 --- /dev/null +++ b/core/coreutils/PKGBUILD @@ -0,0 +1,7 @@ +# 486-specific +if [ "${CARCH}" = "i486" ]; then + # make uname return i486 instead of i686 when used with setarch + source+=('coreutils-8.30-uname-i486.patch') + md5sums+=('92eefec217ca59608a2e1b9ae7debf64') +fi + diff --git a/core/coreutils/coreutils-8.30-uname-i486.patch b/core/coreutils/coreutils-8.30-uname-i486.patch new file mode 100644 index 00000000..f7872693 --- /dev/null +++ b/core/coreutils/coreutils-8.30-uname-i486.patch @@ -0,0 +1,12 @@ +diff -rauN coreutils-8.30/src/uname.c coreutils-8.30-uname-patch-i486/src/uname.c +--- coreutils-8.30/src/uname.c 2018-05-14 06:20:24.000000000 +0200 ++++ coreutils-8.30-uname-patch-i486/src/uname.c 2019-01-28 21:12:09.151041534 +0100 +@@ -285,6 +285,8 @@ + + if (uname (&name) == -1) + die (EXIT_FAILURE, errno, _("cannot get system name")); ++ ++ strcpy(name.machine, "i486"); + + if (toprint & PRINT_KERNEL_NAME) + print_element (name.sysname); |