|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
|
|
|
# |
|
|
|
|
# Filename: package/.../musl/parse-config-9 |
|
|
|
|
# Copyright (C) 2012 The OpenSDE Project |
|
|
|
|
# Copyright (C) 2012 - 2013 The OpenSDE Project |
|
|
|
|
# |
|
|
|
|
# More information can be found in the files COPYING and README. |
|
|
|
|
# |
|
|
|
@ -111,11 +111,15 @@ if [ "$SDECFG_LIBC" == "musl" ]; then
|
|
|
|
|
touch $1 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
for x in fseterr.c freadahead.c ; do |
|
|
|
|
for x in fseterr.c freadahead.c fseeko.c; do |
|
|
|
|
empty_file "$dir/$x" |
|
|
|
|
done |
|
|
|
|
echo "void close_stdin(void) {}" > "$dir"/closein.c |
|
|
|
|
|
|
|
|
|
echo "#include <stdio_ext.h>" > "$dir"/fseterr.h |
|
|
|
|
echo "#define fseterr(fp) __fseterr (fp)" >> "$dir"/fseterr.h |
|
|
|
|
echo "#include "fseterr.h"" > "$dir"/fsetserr.c |
|
|
|
|
|
|
|
|
|
# fix stuff trying to reimplement libc |
|
|
|
|
culprits="accept4 acosl alloca alphasort asinl asprintf atanl \ |
|
|
|
|
atexit atoll bcopy btowc chown closedir cosl dirfd \ |
|
|
|
@ -156,13 +160,16 @@ if [ "$SDECFG_LIBC" == "musl" ]; then
|
|
|
|
|
libtool|lvm2|freetype|lua|iptables|autoconf|libtirpc) |
|
|
|
|
hook_add preconf 9 'musl_findall_fix_configsub' |
|
|
|
|
;; |
|
|
|
|
gzip|m4) |
|
|
|
|
gzip|m4|coreutils) |
|
|
|
|
hook_add preconf 9 'musl_findall_fix_configsub' |
|
|
|
|
hook_add preconf 9 'musl_fix_gnulib lib' |
|
|
|
|
;; |
|
|
|
|
gmp) |
|
|
|
|
hook_add postpatch 6 'musl_fix_configsub configfsf.sub' |
|
|
|
|
;; |
|
|
|
|
libunistring) |
|
|
|
|
hook_add preconf 9 'musl_fix_gnulib lib' |
|
|
|
|
;; |
|
|
|
|
findutils) |
|
|
|
|
hook_add preconf 9 'musl_fix_gnulib gnulib/lib' |
|
|
|
|
;; |
|
|
|
@ -259,7 +266,7 @@ if [ "$SDECFG_LIBC" == "musl" ]; then
|
|
|
|
|
linux*|linux-header) |
|
|
|
|
pkg_musl_pkg=linux ;; |
|
|
|
|
*) |
|
|
|
|
pkg_musl_pkg=${pkg//-/_} ;; |
|
|
|
|
pkg_musl_pkg=${pkg} ;; |
|
|
|
|
esac |
|
|
|
|
|
|
|
|
|
pkg_musl_patches=$( ls -1 $pkg_musl_dir/pkg_patch/$pkg_musl_pkg/*.patch 2> /dev/null | tr '\n' ' ' ) |
|
|
|
|