Build most utils from coreutils-5.0.
This commit is contained in:
parent
e0335ce910
commit
d26463ffa2
|
@ -113,6 +113,9 @@ get_file https://ftp.gnu.org/gnu/make/make-3.80.tar.gz
|
||||||
# bzip2 1.0.8
|
# bzip2 1.0.8
|
||||||
get_file ftp://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz
|
get_file ftp://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz
|
||||||
|
|
||||||
|
# coreutils 5.0
|
||||||
|
get_file https://ftp.gnu.org/gnu/coreutils/coreutils-5.0.tar.bz2
|
||||||
|
|
||||||
# grep 2.4
|
# grep 2.4
|
||||||
get_file https://ftp.gnu.org/gnu/grep/grep-2.4.tar.gz
|
get_file https://ftp.gnu.org/gnu/grep/grep-2.4.tar.gz
|
||||||
|
|
||||||
|
|
|
@ -118,19 +118,25 @@ cd ${pkg}
|
||||||
kaem --file ${pkg}.kaem
|
kaem --file ${pkg}.kaem
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
# Part 15: grep
|
# Part 15: coreutils
|
||||||
|
pkg="coreutils-5.0"
|
||||||
|
cd ${pkg}
|
||||||
|
kaem --file ${pkg}.kaem
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
# Part 16: grep
|
||||||
pkg="grep-2.4"
|
pkg="grep-2.4"
|
||||||
cd ${pkg}
|
cd ${pkg}
|
||||||
kaem --file ${pkg}.kaem
|
kaem --file ${pkg}.kaem
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
# Part 16: bash
|
# Part 17: bash
|
||||||
pkg="bash-2.05b"
|
pkg="bash-2.05b"
|
||||||
cd ${pkg}
|
cd ${pkg}
|
||||||
kaem --file ${pkg}.kaem
|
kaem --file ${pkg}.kaem
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
# Part 17: m4
|
# Part 18: m4
|
||||||
pkg="m4-1.4"
|
pkg="m4-1.4"
|
||||||
cd ${pkg}
|
cd ${pkg}
|
||||||
kaem --file ${pkg}.kaem
|
kaem --file ${pkg}.kaem
|
||||||
|
|
|
@ -0,0 +1,24 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
cd build
|
||||||
|
|
||||||
|
# Extract
|
||||||
|
bunzip2 ../src/${pkg}.tar.bz2
|
||||||
|
tar xf ../src/${pkg}.tar
|
||||||
|
cd ${pkg}
|
||||||
|
cp ../../mk/main.mk Makefile
|
||||||
|
|
||||||
|
# Patch and prepare
|
||||||
|
cp lib/fnmatch_.h lib/fnmatch.h
|
||||||
|
cp lib/ftw_.h lib/ftw.h
|
||||||
|
cp lib/search_.h lib/search.h
|
||||||
|
catm config.h
|
||||||
|
|
||||||
|
patch -Np0 -i ../../patches/modechange.patch
|
||||||
|
patch -Np0 -i ../../patches/mbstate.patch
|
||||||
|
|
||||||
|
# Build and install
|
||||||
|
/after/bin/make -f Makefile
|
||||||
|
/after/bin/make -f Makefile install
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,36 @@
|
||||||
|
--- lib/quotearg.c 2002-11-23 07:08:10.000000000 +0000
|
||||||
|
+++ lib/quotearg.c 2021-01-17 19:41:59.461095532 +0000
|
||||||
|
@@ -21,6 +21,7 @@
|
||||||
|
# include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+#include "mbstate_t.h"
|
||||||
|
#include "quotearg.h"
|
||||||
|
|
||||||
|
#include "xalloc.h"
|
||||||
|
--- lib/mbstate_t.h 1970-01-01 01:00:00.000000000 +0100
|
||||||
|
+++ lib/mbstate_t.h 2021-01-17 19:42:21.341658668 +0000
|
||||||
|
@@ -0,0 +1,23 @@
|
||||||
|
+#ifndef ____mbstate_t_defined
|
||||||
|
+#define ____mbstate_t_defined 1
|
||||||
|
+
|
||||||
|
+/* Integral type unchanged by default argument promotions that can
|
||||||
|
+ hold any value corresponding to members of the extended character
|
||||||
|
+ set, as well as at least one value that does not correspond to any
|
||||||
|
+ member of the extended character set. */
|
||||||
|
+#ifndef __WINT_TYPE__
|
||||||
|
+# define __WINT_TYPE__ unsigned int
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
+/* Conversion state information. */
|
||||||
|
+typedef struct
|
||||||
|
+{
|
||||||
|
+ int __count;
|
||||||
|
+ union
|
||||||
|
+ {
|
||||||
|
+ __WINT_TYPE__ __wch;
|
||||||
|
+ char __wchb[4];
|
||||||
|
+ } __value; /* Value so far. */
|
||||||
|
+} mbstate_t;
|
||||||
|
+
|
||||||
|
+#endif
|
|
@ -0,0 +1,12 @@
|
||||||
|
--- lib/modechange.c 2001-12-09 22:54:19.000000000 +0000
|
||||||
|
+++ lib/modechange.c 2021-01-17 18:34:22.016427148 +0000
|
||||||
|
@@ -28,8 +28,8 @@
|
||||||
|
# include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
-#include "modechange.h"
|
||||||
|
#include <sys/stat.h>
|
||||||
|
+#include "modechange.h"
|
||||||
|
#include "xstrtol.h"
|
||||||
|
|
||||||
|
#if STDC_HEADERS
|
Loading…
Reference in New Issue