Add a bootstrap procedure, so that the CVS version contains fewer
files and we bootstrap the rest from gnulib, gettext, etc.
* README-cvs: New file.
* bootstrap: New file.
* bootstrap.conf: New file.
* .x-sc_trailing_blank: Remove config-log, .gdb-history. Add .po.
* configure.ac (AC_PREREQ): Move here from m4/*.m4, for benefit
of gnulib-tool.
(gl_DEFAULT_POSIX2_VERSION, gl_USE_SYSTEM_EXTENSIONS, gl_PERL):
(gl_IGNORE_UNUSED_LIBRARIES): Remove; now done by gnulib.
(gl_EARLY): Add.
(gl_MACROS): Call just after gl_EARLY, just for clarity.
* src/c99-to-c98.diff: Remove patch to ls.c; no longer needed.
* src/kill.c (strtoimax): Remove decl.
* src/ls.c: Include "wcwidth.h" instead of rolling it ourselves.
* src/wc.c: Likewise.
* src/ls.c (sort_files): Rewrite to avoid need for C99-style
declaration, so that we don't need to patch this file.
* src/printf.c (strtoimax, strtoumax): Remove decls.
* src/su.c: Include getpass.h.
(getpass): remove.
* src/system.h: Include mempcpy.h, stpcpy.h, strpbrk.h.
Include inttypes.h unconditionally; remove decls it handles.
* lib/Makefile.am: include gnulib.mk, so that we can remove most of
this file.
(AM_CPPFLAGS): Don't mention -I$(srcdir), since that's now done
for us.
(noinst_LIBRARIES, LDDADD, DEFS): Remove.
(libcoreutils_a_SOURCES): Trim down greatly, just to the files
that aren't in gnulib.
Remove defns gnulib does for us.
* m4/check-decl.m4 (gl_CHECK_DECLS):
Don't include stdio.h, string.h, stdlib.h, unistd.h, sys/time.h,
time.h. Use AC_CHECK_DECLS_ONCE for free, getenv, geteuid, getlogin,
getuid, lseek, malloc, memchr, realloc. Don't check for getutent,
memrchr, nanosleep, stpcpy, strndup, strnlen, strstr, strtoul,
strtoull.
(_gl_DECL_HEADERS): Remove; all uses removed.
* m4/jm-macros.m4 (gl_MACROS): Move AC_PREREQ into configure.ac
for the benefit of gnulib-tool. Call gl_INIT.
Do not call or require macros that gnulib will handle for us.
Don't check for fchmod, hasmntopt, isascii, lchown, listmntent,
mempcpy, realpath, wcrtomb, tzset.
(gl_CHECK_ALL_HEADERS): Don't check for sys/statvfs.h, sys/vfs.h,
sys/mount.h.
(gl_CHECK_ALL_TYPES): Require AC_TYPE_UNSIGNED_LONG_LONG_INT.
Don't check for struct stat.st_blksize.
Don't require AC_STRUCT_ST_DM_MODE, gt_TYPE_SSIZE_T,
gl_AC_TYPE_UINT32_T, gl_AC_TYPE_UINTMAX_T, gl_AC_TYPE_UINTPTR_T,
gl_AC_TYPE_UNSIGNED_LONG_LONG.
* m4/prereq.m4 (gl_PREREQ): Require gl_FUNC_XFTS, gl_ROOT_DEV_INO.
Don't require macros that gnulib does for us.
* m4/stat-prog.m4 (cu_PREREQ_STAT_PROG): Don't check for
sys/sysmacros.h. Don't check for statvfs. Use AC_CHECK_HEADERS_ONCE
for netinet/in.h, nfs/nfs_clnt.h, nfs/vfs.h.
Don't require gl_AC_TYPE_LONG_LONG, gt_HEADER_INTTYPES_H.
2006-08-21 07:30:45 +00:00
|
|
|
# Bootstrap configuration.
|
|
|
|
|
|
2017-01-01 22:38:02 +00:00
|
|
|
# Copyright (C) 2006-2017 Free Software Foundation, Inc.
|
Add a bootstrap procedure, so that the CVS version contains fewer
files and we bootstrap the rest from gnulib, gettext, etc.
* README-cvs: New file.
* bootstrap: New file.
* bootstrap.conf: New file.
* .x-sc_trailing_blank: Remove config-log, .gdb-history. Add .po.
* configure.ac (AC_PREREQ): Move here from m4/*.m4, for benefit
of gnulib-tool.
(gl_DEFAULT_POSIX2_VERSION, gl_USE_SYSTEM_EXTENSIONS, gl_PERL):
(gl_IGNORE_UNUSED_LIBRARIES): Remove; now done by gnulib.
(gl_EARLY): Add.
(gl_MACROS): Call just after gl_EARLY, just for clarity.
* src/c99-to-c98.diff: Remove patch to ls.c; no longer needed.
* src/kill.c (strtoimax): Remove decl.
* src/ls.c: Include "wcwidth.h" instead of rolling it ourselves.
* src/wc.c: Likewise.
* src/ls.c (sort_files): Rewrite to avoid need for C99-style
declaration, so that we don't need to patch this file.
* src/printf.c (strtoimax, strtoumax): Remove decls.
* src/su.c: Include getpass.h.
(getpass): remove.
* src/system.h: Include mempcpy.h, stpcpy.h, strpbrk.h.
Include inttypes.h unconditionally; remove decls it handles.
* lib/Makefile.am: include gnulib.mk, so that we can remove most of
this file.
(AM_CPPFLAGS): Don't mention -I$(srcdir), since that's now done
for us.
(noinst_LIBRARIES, LDDADD, DEFS): Remove.
(libcoreutils_a_SOURCES): Trim down greatly, just to the files
that aren't in gnulib.
Remove defns gnulib does for us.
* m4/check-decl.m4 (gl_CHECK_DECLS):
Don't include stdio.h, string.h, stdlib.h, unistd.h, sys/time.h,
time.h. Use AC_CHECK_DECLS_ONCE for free, getenv, geteuid, getlogin,
getuid, lseek, malloc, memchr, realloc. Don't check for getutent,
memrchr, nanosleep, stpcpy, strndup, strnlen, strstr, strtoul,
strtoull.
(_gl_DECL_HEADERS): Remove; all uses removed.
* m4/jm-macros.m4 (gl_MACROS): Move AC_PREREQ into configure.ac
for the benefit of gnulib-tool. Call gl_INIT.
Do not call or require macros that gnulib will handle for us.
Don't check for fchmod, hasmntopt, isascii, lchown, listmntent,
mempcpy, realpath, wcrtomb, tzset.
(gl_CHECK_ALL_HEADERS): Don't check for sys/statvfs.h, sys/vfs.h,
sys/mount.h.
(gl_CHECK_ALL_TYPES): Require AC_TYPE_UNSIGNED_LONG_LONG_INT.
Don't check for struct stat.st_blksize.
Don't require AC_STRUCT_ST_DM_MODE, gt_TYPE_SSIZE_T,
gl_AC_TYPE_UINT32_T, gl_AC_TYPE_UINTMAX_T, gl_AC_TYPE_UINTPTR_T,
gl_AC_TYPE_UNSIGNED_LONG_LONG.
* m4/prereq.m4 (gl_PREREQ): Require gl_FUNC_XFTS, gl_ROOT_DEV_INO.
Don't require macros that gnulib does for us.
* m4/stat-prog.m4 (cu_PREREQ_STAT_PROG): Don't check for
sys/sysmacros.h. Don't check for statvfs. Use AC_CHECK_HEADERS_ONCE
for netinet/in.h, nfs/nfs_clnt.h, nfs/vfs.h.
Don't require gl_AC_TYPE_LONG_LONG, gt_HEADER_INTTYPES_H.
2006-08-21 07:30:45 +00:00
|
|
|
|
2007-07-23 14:35:58 +02:00
|
|
|
# This program is free software: you can redistribute it and/or modify
|
Add a bootstrap procedure, so that the CVS version contains fewer
files and we bootstrap the rest from gnulib, gettext, etc.
* README-cvs: New file.
* bootstrap: New file.
* bootstrap.conf: New file.
* .x-sc_trailing_blank: Remove config-log, .gdb-history. Add .po.
* configure.ac (AC_PREREQ): Move here from m4/*.m4, for benefit
of gnulib-tool.
(gl_DEFAULT_POSIX2_VERSION, gl_USE_SYSTEM_EXTENSIONS, gl_PERL):
(gl_IGNORE_UNUSED_LIBRARIES): Remove; now done by gnulib.
(gl_EARLY): Add.
(gl_MACROS): Call just after gl_EARLY, just for clarity.
* src/c99-to-c98.diff: Remove patch to ls.c; no longer needed.
* src/kill.c (strtoimax): Remove decl.
* src/ls.c: Include "wcwidth.h" instead of rolling it ourselves.
* src/wc.c: Likewise.
* src/ls.c (sort_files): Rewrite to avoid need for C99-style
declaration, so that we don't need to patch this file.
* src/printf.c (strtoimax, strtoumax): Remove decls.
* src/su.c: Include getpass.h.
(getpass): remove.
* src/system.h: Include mempcpy.h, stpcpy.h, strpbrk.h.
Include inttypes.h unconditionally; remove decls it handles.
* lib/Makefile.am: include gnulib.mk, so that we can remove most of
this file.
(AM_CPPFLAGS): Don't mention -I$(srcdir), since that's now done
for us.
(noinst_LIBRARIES, LDDADD, DEFS): Remove.
(libcoreutils_a_SOURCES): Trim down greatly, just to the files
that aren't in gnulib.
Remove defns gnulib does for us.
* m4/check-decl.m4 (gl_CHECK_DECLS):
Don't include stdio.h, string.h, stdlib.h, unistd.h, sys/time.h,
time.h. Use AC_CHECK_DECLS_ONCE for free, getenv, geteuid, getlogin,
getuid, lseek, malloc, memchr, realloc. Don't check for getutent,
memrchr, nanosleep, stpcpy, strndup, strnlen, strstr, strtoul,
strtoull.
(_gl_DECL_HEADERS): Remove; all uses removed.
* m4/jm-macros.m4 (gl_MACROS): Move AC_PREREQ into configure.ac
for the benefit of gnulib-tool. Call gl_INIT.
Do not call or require macros that gnulib will handle for us.
Don't check for fchmod, hasmntopt, isascii, lchown, listmntent,
mempcpy, realpath, wcrtomb, tzset.
(gl_CHECK_ALL_HEADERS): Don't check for sys/statvfs.h, sys/vfs.h,
sys/mount.h.
(gl_CHECK_ALL_TYPES): Require AC_TYPE_UNSIGNED_LONG_LONG_INT.
Don't check for struct stat.st_blksize.
Don't require AC_STRUCT_ST_DM_MODE, gt_TYPE_SSIZE_T,
gl_AC_TYPE_UINT32_T, gl_AC_TYPE_UINTMAX_T, gl_AC_TYPE_UINTPTR_T,
gl_AC_TYPE_UNSIGNED_LONG_LONG.
* m4/prereq.m4 (gl_PREREQ): Require gl_FUNC_XFTS, gl_ROOT_DEV_INO.
Don't require macros that gnulib does for us.
* m4/stat-prog.m4 (cu_PREREQ_STAT_PROG): Don't check for
sys/sysmacros.h. Don't check for statvfs. Use AC_CHECK_HEADERS_ONCE
for netinet/in.h, nfs/nfs_clnt.h, nfs/vfs.h.
Don't require gl_AC_TYPE_LONG_LONG, gt_HEADER_INTTYPES_H.
2006-08-21 07:30:45 +00:00
|
|
|
# it under the terms of the GNU General Public License as published by
|
2007-07-23 14:35:58 +02:00
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
# (at your option) any later version.
|
Add a bootstrap procedure, so that the CVS version contains fewer
files and we bootstrap the rest from gnulib, gettext, etc.
* README-cvs: New file.
* bootstrap: New file.
* bootstrap.conf: New file.
* .x-sc_trailing_blank: Remove config-log, .gdb-history. Add .po.
* configure.ac (AC_PREREQ): Move here from m4/*.m4, for benefit
of gnulib-tool.
(gl_DEFAULT_POSIX2_VERSION, gl_USE_SYSTEM_EXTENSIONS, gl_PERL):
(gl_IGNORE_UNUSED_LIBRARIES): Remove; now done by gnulib.
(gl_EARLY): Add.
(gl_MACROS): Call just after gl_EARLY, just for clarity.
* src/c99-to-c98.diff: Remove patch to ls.c; no longer needed.
* src/kill.c (strtoimax): Remove decl.
* src/ls.c: Include "wcwidth.h" instead of rolling it ourselves.
* src/wc.c: Likewise.
* src/ls.c (sort_files): Rewrite to avoid need for C99-style
declaration, so that we don't need to patch this file.
* src/printf.c (strtoimax, strtoumax): Remove decls.
* src/su.c: Include getpass.h.
(getpass): remove.
* src/system.h: Include mempcpy.h, stpcpy.h, strpbrk.h.
Include inttypes.h unconditionally; remove decls it handles.
* lib/Makefile.am: include gnulib.mk, so that we can remove most of
this file.
(AM_CPPFLAGS): Don't mention -I$(srcdir), since that's now done
for us.
(noinst_LIBRARIES, LDDADD, DEFS): Remove.
(libcoreutils_a_SOURCES): Trim down greatly, just to the files
that aren't in gnulib.
Remove defns gnulib does for us.
* m4/check-decl.m4 (gl_CHECK_DECLS):
Don't include stdio.h, string.h, stdlib.h, unistd.h, sys/time.h,
time.h. Use AC_CHECK_DECLS_ONCE for free, getenv, geteuid, getlogin,
getuid, lseek, malloc, memchr, realloc. Don't check for getutent,
memrchr, nanosleep, stpcpy, strndup, strnlen, strstr, strtoul,
strtoull.
(_gl_DECL_HEADERS): Remove; all uses removed.
* m4/jm-macros.m4 (gl_MACROS): Move AC_PREREQ into configure.ac
for the benefit of gnulib-tool. Call gl_INIT.
Do not call or require macros that gnulib will handle for us.
Don't check for fchmod, hasmntopt, isascii, lchown, listmntent,
mempcpy, realpath, wcrtomb, tzset.
(gl_CHECK_ALL_HEADERS): Don't check for sys/statvfs.h, sys/vfs.h,
sys/mount.h.
(gl_CHECK_ALL_TYPES): Require AC_TYPE_UNSIGNED_LONG_LONG_INT.
Don't check for struct stat.st_blksize.
Don't require AC_STRUCT_ST_DM_MODE, gt_TYPE_SSIZE_T,
gl_AC_TYPE_UINT32_T, gl_AC_TYPE_UINTMAX_T, gl_AC_TYPE_UINTPTR_T,
gl_AC_TYPE_UNSIGNED_LONG_LONG.
* m4/prereq.m4 (gl_PREREQ): Require gl_FUNC_XFTS, gl_ROOT_DEV_INO.
Don't require macros that gnulib does for us.
* m4/stat-prog.m4 (cu_PREREQ_STAT_PROG): Don't check for
sys/sysmacros.h. Don't check for statvfs. Use AC_CHECK_HEADERS_ONCE
for netinet/in.h, nfs/nfs_clnt.h, nfs/vfs.h.
Don't require gl_AC_TYPE_LONG_LONG, gt_HEADER_INTTYPES_H.
2006-08-21 07:30:45 +00:00
|
|
|
|
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
|
|
|
|
|
|
# You should have received a copy of the GNU General Public License
|
2007-07-23 14:35:58 +02:00
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
Add a bootstrap procedure, so that the CVS version contains fewer
files and we bootstrap the rest from gnulib, gettext, etc.
* README-cvs: New file.
* bootstrap: New file.
* bootstrap.conf: New file.
* .x-sc_trailing_blank: Remove config-log, .gdb-history. Add .po.
* configure.ac (AC_PREREQ): Move here from m4/*.m4, for benefit
of gnulib-tool.
(gl_DEFAULT_POSIX2_VERSION, gl_USE_SYSTEM_EXTENSIONS, gl_PERL):
(gl_IGNORE_UNUSED_LIBRARIES): Remove; now done by gnulib.
(gl_EARLY): Add.
(gl_MACROS): Call just after gl_EARLY, just for clarity.
* src/c99-to-c98.diff: Remove patch to ls.c; no longer needed.
* src/kill.c (strtoimax): Remove decl.
* src/ls.c: Include "wcwidth.h" instead of rolling it ourselves.
* src/wc.c: Likewise.
* src/ls.c (sort_files): Rewrite to avoid need for C99-style
declaration, so that we don't need to patch this file.
* src/printf.c (strtoimax, strtoumax): Remove decls.
* src/su.c: Include getpass.h.
(getpass): remove.
* src/system.h: Include mempcpy.h, stpcpy.h, strpbrk.h.
Include inttypes.h unconditionally; remove decls it handles.
* lib/Makefile.am: include gnulib.mk, so that we can remove most of
this file.
(AM_CPPFLAGS): Don't mention -I$(srcdir), since that's now done
for us.
(noinst_LIBRARIES, LDDADD, DEFS): Remove.
(libcoreutils_a_SOURCES): Trim down greatly, just to the files
that aren't in gnulib.
Remove defns gnulib does for us.
* m4/check-decl.m4 (gl_CHECK_DECLS):
Don't include stdio.h, string.h, stdlib.h, unistd.h, sys/time.h,
time.h. Use AC_CHECK_DECLS_ONCE for free, getenv, geteuid, getlogin,
getuid, lseek, malloc, memchr, realloc. Don't check for getutent,
memrchr, nanosleep, stpcpy, strndup, strnlen, strstr, strtoul,
strtoull.
(_gl_DECL_HEADERS): Remove; all uses removed.
* m4/jm-macros.m4 (gl_MACROS): Move AC_PREREQ into configure.ac
for the benefit of gnulib-tool. Call gl_INIT.
Do not call or require macros that gnulib will handle for us.
Don't check for fchmod, hasmntopt, isascii, lchown, listmntent,
mempcpy, realpath, wcrtomb, tzset.
(gl_CHECK_ALL_HEADERS): Don't check for sys/statvfs.h, sys/vfs.h,
sys/mount.h.
(gl_CHECK_ALL_TYPES): Require AC_TYPE_UNSIGNED_LONG_LONG_INT.
Don't check for struct stat.st_blksize.
Don't require AC_STRUCT_ST_DM_MODE, gt_TYPE_SSIZE_T,
gl_AC_TYPE_UINT32_T, gl_AC_TYPE_UINTMAX_T, gl_AC_TYPE_UINTPTR_T,
gl_AC_TYPE_UNSIGNED_LONG_LONG.
* m4/prereq.m4 (gl_PREREQ): Require gl_FUNC_XFTS, gl_ROOT_DEV_INO.
Don't require macros that gnulib does for us.
* m4/stat-prog.m4 (cu_PREREQ_STAT_PROG): Don't check for
sys/sysmacros.h. Don't check for statvfs. Use AC_CHECK_HEADERS_ONCE
for netinet/in.h, nfs/nfs_clnt.h, nfs/vfs.h.
Don't require gl_AC_TYPE_LONG_LONG, gt_HEADER_INTTYPES_H.
2006-08-21 07:30:45 +00:00
|
|
|
|
|
|
|
|
|
2009-01-02 17:30:42 +01:00
|
|
|
# We don't need these modules.
|
Add a bootstrap procedure, so that the CVS version contains fewer
files and we bootstrap the rest from gnulib, gettext, etc.
* README-cvs: New file.
* bootstrap: New file.
* bootstrap.conf: New file.
* .x-sc_trailing_blank: Remove config-log, .gdb-history. Add .po.
* configure.ac (AC_PREREQ): Move here from m4/*.m4, for benefit
of gnulib-tool.
(gl_DEFAULT_POSIX2_VERSION, gl_USE_SYSTEM_EXTENSIONS, gl_PERL):
(gl_IGNORE_UNUSED_LIBRARIES): Remove; now done by gnulib.
(gl_EARLY): Add.
(gl_MACROS): Call just after gl_EARLY, just for clarity.
* src/c99-to-c98.diff: Remove patch to ls.c; no longer needed.
* src/kill.c (strtoimax): Remove decl.
* src/ls.c: Include "wcwidth.h" instead of rolling it ourselves.
* src/wc.c: Likewise.
* src/ls.c (sort_files): Rewrite to avoid need for C99-style
declaration, so that we don't need to patch this file.
* src/printf.c (strtoimax, strtoumax): Remove decls.
* src/su.c: Include getpass.h.
(getpass): remove.
* src/system.h: Include mempcpy.h, stpcpy.h, strpbrk.h.
Include inttypes.h unconditionally; remove decls it handles.
* lib/Makefile.am: include gnulib.mk, so that we can remove most of
this file.
(AM_CPPFLAGS): Don't mention -I$(srcdir), since that's now done
for us.
(noinst_LIBRARIES, LDDADD, DEFS): Remove.
(libcoreutils_a_SOURCES): Trim down greatly, just to the files
that aren't in gnulib.
Remove defns gnulib does for us.
* m4/check-decl.m4 (gl_CHECK_DECLS):
Don't include stdio.h, string.h, stdlib.h, unistd.h, sys/time.h,
time.h. Use AC_CHECK_DECLS_ONCE for free, getenv, geteuid, getlogin,
getuid, lseek, malloc, memchr, realloc. Don't check for getutent,
memrchr, nanosleep, stpcpy, strndup, strnlen, strstr, strtoul,
strtoull.
(_gl_DECL_HEADERS): Remove; all uses removed.
* m4/jm-macros.m4 (gl_MACROS): Move AC_PREREQ into configure.ac
for the benefit of gnulib-tool. Call gl_INIT.
Do not call or require macros that gnulib will handle for us.
Don't check for fchmod, hasmntopt, isascii, lchown, listmntent,
mempcpy, realpath, wcrtomb, tzset.
(gl_CHECK_ALL_HEADERS): Don't check for sys/statvfs.h, sys/vfs.h,
sys/mount.h.
(gl_CHECK_ALL_TYPES): Require AC_TYPE_UNSIGNED_LONG_LONG_INT.
Don't check for struct stat.st_blksize.
Don't require AC_STRUCT_ST_DM_MODE, gt_TYPE_SSIZE_T,
gl_AC_TYPE_UINT32_T, gl_AC_TYPE_UINTMAX_T, gl_AC_TYPE_UINTPTR_T,
gl_AC_TYPE_UNSIGNED_LONG_LONG.
* m4/prereq.m4 (gl_PREREQ): Require gl_FUNC_XFTS, gl_ROOT_DEV_INO.
Don't require macros that gnulib does for us.
* m4/stat-prog.m4 (cu_PREREQ_STAT_PROG): Don't check for
sys/sysmacros.h. Don't check for statvfs. Use AC_CHECK_HEADERS_ONCE
for netinet/in.h, nfs/nfs_clnt.h, nfs/vfs.h.
Don't require gl_AC_TYPE_LONG_LONG, gt_HEADER_INTTYPES_H.
2006-08-21 07:30:45 +00:00
|
|
|
avoided_gnulib_modules='
|
2009-04-10 08:20:13 +02:00
|
|
|
--avoid=canonicalize-lgpl
|
|
|
|
|
--avoid=dummy
|
Add a bootstrap procedure, so that the CVS version contains fewer
files and we bootstrap the rest from gnulib, gettext, etc.
* README-cvs: New file.
* bootstrap: New file.
* bootstrap.conf: New file.
* .x-sc_trailing_blank: Remove config-log, .gdb-history. Add .po.
* configure.ac (AC_PREREQ): Move here from m4/*.m4, for benefit
of gnulib-tool.
(gl_DEFAULT_POSIX2_VERSION, gl_USE_SYSTEM_EXTENSIONS, gl_PERL):
(gl_IGNORE_UNUSED_LIBRARIES): Remove; now done by gnulib.
(gl_EARLY): Add.
(gl_MACROS): Call just after gl_EARLY, just for clarity.
* src/c99-to-c98.diff: Remove patch to ls.c; no longer needed.
* src/kill.c (strtoimax): Remove decl.
* src/ls.c: Include "wcwidth.h" instead of rolling it ourselves.
* src/wc.c: Likewise.
* src/ls.c (sort_files): Rewrite to avoid need for C99-style
declaration, so that we don't need to patch this file.
* src/printf.c (strtoimax, strtoumax): Remove decls.
* src/su.c: Include getpass.h.
(getpass): remove.
* src/system.h: Include mempcpy.h, stpcpy.h, strpbrk.h.
Include inttypes.h unconditionally; remove decls it handles.
* lib/Makefile.am: include gnulib.mk, so that we can remove most of
this file.
(AM_CPPFLAGS): Don't mention -I$(srcdir), since that's now done
for us.
(noinst_LIBRARIES, LDDADD, DEFS): Remove.
(libcoreutils_a_SOURCES): Trim down greatly, just to the files
that aren't in gnulib.
Remove defns gnulib does for us.
* m4/check-decl.m4 (gl_CHECK_DECLS):
Don't include stdio.h, string.h, stdlib.h, unistd.h, sys/time.h,
time.h. Use AC_CHECK_DECLS_ONCE for free, getenv, geteuid, getlogin,
getuid, lseek, malloc, memchr, realloc. Don't check for getutent,
memrchr, nanosleep, stpcpy, strndup, strnlen, strstr, strtoul,
strtoull.
(_gl_DECL_HEADERS): Remove; all uses removed.
* m4/jm-macros.m4 (gl_MACROS): Move AC_PREREQ into configure.ac
for the benefit of gnulib-tool. Call gl_INIT.
Do not call or require macros that gnulib will handle for us.
Don't check for fchmod, hasmntopt, isascii, lchown, listmntent,
mempcpy, realpath, wcrtomb, tzset.
(gl_CHECK_ALL_HEADERS): Don't check for sys/statvfs.h, sys/vfs.h,
sys/mount.h.
(gl_CHECK_ALL_TYPES): Require AC_TYPE_UNSIGNED_LONG_LONG_INT.
Don't check for struct stat.st_blksize.
Don't require AC_STRUCT_ST_DM_MODE, gt_TYPE_SSIZE_T,
gl_AC_TYPE_UINT32_T, gl_AC_TYPE_UINTMAX_T, gl_AC_TYPE_UINTPTR_T,
gl_AC_TYPE_UNSIGNED_LONG_LONG.
* m4/prereq.m4 (gl_PREREQ): Require gl_FUNC_XFTS, gl_ROOT_DEV_INO.
Don't require macros that gnulib does for us.
* m4/stat-prog.m4 (cu_PREREQ_STAT_PROG): Don't check for
sys/sysmacros.h. Don't check for statvfs. Use AC_CHECK_HEADERS_ONCE
for netinet/in.h, nfs/nfs_clnt.h, nfs/vfs.h.
Don't require gl_AC_TYPE_LONG_LONG, gt_HEADER_INTTYPES_H.
2006-08-21 07:30:45 +00:00
|
|
|
'
|
|
|
|
|
|
|
|
|
|
# gnulib modules used by this package.
|
|
|
|
|
gnulib_modules="
|
2009-04-10 08:20:13 +02:00
|
|
|
$avoided_gnulib_modules
|
|
|
|
|
acl
|
2010-05-01 11:29:39 +02:00
|
|
|
alignof
|
2009-04-10 08:20:13 +02:00
|
|
|
alloca
|
|
|
|
|
announce-gen
|
|
|
|
|
areadlink-with-size
|
|
|
|
|
argmatch
|
|
|
|
|
argv-iter
|
|
|
|
|
assert
|
|
|
|
|
autobuild
|
|
|
|
|
backupfile
|
2015-08-05 10:28:36 +02:00
|
|
|
base32
|
2017-02-15 15:58:08 -08:00
|
|
|
base64
|
2012-09-08 15:11:20 +02:00
|
|
|
buffer-lcm
|
2009-04-10 08:20:13 +02:00
|
|
|
c-strcase
|
|
|
|
|
c-strtod
|
|
|
|
|
c-strtold
|
2010-09-06 07:49:48 +02:00
|
|
|
calloc-gnu
|
2009-04-10 08:20:13 +02:00
|
|
|
canon-host
|
|
|
|
|
canonicalize
|
|
|
|
|
chown
|
|
|
|
|
cloexec
|
|
|
|
|
closein
|
|
|
|
|
closeout
|
|
|
|
|
config-h
|
|
|
|
|
configmake
|
|
|
|
|
crypto/md5
|
|
|
|
|
crypto/sha1
|
|
|
|
|
crypto/sha256
|
|
|
|
|
crypto/sha512
|
|
|
|
|
cycle-check
|
|
|
|
|
d-ino
|
|
|
|
|
d-type
|
du: use less than half as much memory when tracking hard links
When processing a hard-linked file, du must keep track of the file's
device and inode numbers in order to avoid counting its storage
more than once. When du would process many hard linked files --
as are created by some backup tools -- the amount of memory required
for the supporting data structure could become prohibitively large.
This patch takes advantage of the fact that the amount of information
in the numbers of the typical dev,inode pair is far less than even
32 bits, and hence usually fits in the space of a pointer, be it
32 or 64 bits wide. A typical du traversal examines files on no
more than a handful of distinct devices, so the device number can
be encoded in just a few bits. Similarly, few inode numbers use
all of the high bits in an ino_t. Before, we would represent the
dev,inode pair using a naive struct, and allocate space for each.
Thus, an entry in the hash table consisted of a pointer (to that
struct) and a "next" pointer. With this change, we encode the
dev,inode information and put those bits in place of the pointer,
and thus do away with the need to allocate additional space for
each dev,inode pair.
* src/du.c: Include "di-set.h".
Don't include "hash.h"; it's no longer used.
(INITIAL_DI_SET_SIZE): Define.
(di_set): New global, to replace "htab".
(entry_hash, entry_compare, hash_init): Remove functions.
(hash_ins): Use di-set functions, rather than ones from the hash module.
(main): Likewise.
* bootstrap.conf (gnulib_modules): Add the new di-set module.
* NEWS (New features): Mention it.
2008-12-09 08:49:41 +01:00
|
|
|
di-set
|
2009-04-10 08:20:13 +02:00
|
|
|
diacrit
|
|
|
|
|
dirfd
|
|
|
|
|
dirname
|
2009-11-06 11:20:08 +01:00
|
|
|
do-release-commit-and-tag
|
2011-01-11 18:07:15 -08:00
|
|
|
dtoastr
|
2009-04-10 08:20:13 +02:00
|
|
|
dup2
|
2009-10-26 14:32:59 -06:00
|
|
|
environ
|
2009-04-10 08:20:13 +02:00
|
|
|
error
|
|
|
|
|
euidaccess
|
|
|
|
|
exclude
|
|
|
|
|
exitfail
|
2017-07-20 14:01:14 -07:00
|
|
|
explicit_bzero
|
2009-09-03 21:59:54 -06:00
|
|
|
faccessat
|
2010-07-14 09:49:16 +01:00
|
|
|
fadvise
|
2009-04-10 08:20:13 +02:00
|
|
|
fchdir
|
2011-11-02 10:20:11 +01:00
|
|
|
fchmodat
|
2011-11-01 11:36:51 +01:00
|
|
|
fchownat
|
2011-07-27 21:48:59 +02:00
|
|
|
fclose
|
2009-04-10 08:20:13 +02:00
|
|
|
fcntl
|
|
|
|
|
fcntl-safer
|
2012-09-08 15:11:20 +02:00
|
|
|
fd-reopen
|
2012-03-20 19:45:05 +01:00
|
|
|
fdatasync
|
2009-04-10 08:20:13 +02:00
|
|
|
fdl
|
2012-03-20 19:45:05 +01:00
|
|
|
fdopen
|
2010-09-16 17:38:00 -06:00
|
|
|
fdutimensat
|
2015-04-26 15:46:18 -07:00
|
|
|
file-has-acl
|
2009-04-10 08:20:13 +02:00
|
|
|
file-type
|
|
|
|
|
fileblocks
|
|
|
|
|
filemode
|
|
|
|
|
filenamecat
|
|
|
|
|
filevercmp
|
2016-09-07 19:49:55 -07:00
|
|
|
flexmember
|
2009-04-10 08:20:13 +02:00
|
|
|
fnmatch-gnu
|
|
|
|
|
fopen-safer
|
|
|
|
|
fprintftime
|
2009-09-30 09:26:58 +02:00
|
|
|
freopen
|
2009-11-05 12:19:45 -07:00
|
|
|
freopen-safer
|
2009-04-10 08:20:13 +02:00
|
|
|
fseeko
|
2011-11-04 20:44:34 +01:00
|
|
|
fstatat
|
2009-04-10 08:20:13 +02:00
|
|
|
fsusage
|
2009-09-30 09:26:58 +02:00
|
|
|
fsync
|
2009-04-10 08:20:13 +02:00
|
|
|
ftello
|
2010-11-18 09:50:49 -08:00
|
|
|
ftoastr
|
2012-03-20 19:45:05 +01:00
|
|
|
ftruncate
|
2009-04-10 08:20:13 +02:00
|
|
|
fts
|
2011-04-23 23:47:37 +02:00
|
|
|
full-read
|
|
|
|
|
full-write
|
2009-04-10 08:20:13 +02:00
|
|
|
getgroups
|
|
|
|
|
gethrxtime
|
|
|
|
|
getline
|
|
|
|
|
getloadavg
|
2012-03-20 19:45:05 +01:00
|
|
|
getlogin
|
2009-04-10 08:20:13 +02:00
|
|
|
getndelim2
|
2009-08-13 08:37:37 +02:00
|
|
|
getopt-gnu
|
2009-04-10 08:20:13 +02:00
|
|
|
getpagesize
|
|
|
|
|
getpass-gnu
|
2011-11-24 19:22:09 +01:00
|
|
|
gettext-h
|
2009-04-10 08:20:13 +02:00
|
|
|
gettime
|
|
|
|
|
gettimeofday
|
|
|
|
|
getugroups
|
|
|
|
|
getusershell
|
|
|
|
|
git-version-gen
|
|
|
|
|
gitlog-to-changelog
|
|
|
|
|
gnu-make
|
2009-10-02 10:52:09 +02:00
|
|
|
gnu-web-doc-update
|
2009-04-10 08:20:13 +02:00
|
|
|
gnumakefile
|
|
|
|
|
gnupload
|
|
|
|
|
group-member
|
|
|
|
|
hard-locale
|
|
|
|
|
hash
|
|
|
|
|
hash-pjw
|
sort: parallelize internal sort
This patch is by Gene Auyeung, Chris Dickens, Chen Guo, and Mike
Nichols, based off of a patch by Paul Eggert, Glen Lenker, et. al.,
with a basic heap implementation based off of the GDSL heap,
originally by Nicolas Darnis.
The number of sorts done in parallel is limited to the number
of available processors by default, or can be further restricted
with the --parallel option.
On a dual-die, 8 core Intel Xeon, results show sorting with
8 threads is almost 4 times faster than using a single thread.
Timings when sorting a 96MB file:
THREADS TIME (s)
1 5.10
2 2.87
4 1.75
8 1.31
Single threaded sorting has also been improved,
especially for cheaper comparison operations:
COMMAND BEFORE (s) AFTER (s)
sort 8.822 8.716
sort -g 10.336 10.222
sort -n 3.077 2.961
LANG=C sort 2.169 2.066
* bootstrap.conf: Add heap, pthread.
* coreutils.texi (sort): Describe the new --parallel option.
* gl/lib/heap.c: New file. Very basic heap implementation.
* gl/lib/heap.h: New file.
* gl/modules/heap: New file.
* src/Makefile.am: Add LIB_PTHREAD.
* src/sort.c: Include heap.h, nproc.h, pthread.h.
(MAX_MERGE): New macro.
(SUBTHREAD_LINES_HEURISTIC, PARALLEL_OPTION): New constants.
(MERGE_END, MERGE_ROOT): New constants.
(struct merge_node): New struct.
(struct merge_node_queue): New struct.
(sortlines temp): Remove declaration.
(usage, long_options, main): New option, --parallel.
(specify_nthreads): New function.
(mergelines): New signature, to emphasize the fact that the HI area
must be part of the destination. All callers changed.
(sequential_sort): New function, renamed from sortlines. Merge in
the functionality of sortlines_temp.
(compare_nodes): New function.
(lock_node, unlock_node): New functions.
(queue_destroy): New function.
(queue_init): New function.
(queue_insert): New function.
(queue_pop): New function.
(write_unique): New function.
(mergelines_node): New function.
(check_insert): New function.
(update_parent): New function.
(merge_loop): New function.
(sortlines): Rewrite to support and use parallelism, with a new
signature. All callers changed.
(struct thread_args): New struct.
(sortlines_thread): New function.
(sortlines_temp): Remove.
(sort): New argument NTHREADS. All uses changed. Output moved to
mergelines_node.
(main): disable threading if we are sorting at random.
* tests/Makefile.am (TESTS): Add misc/sort-benchmark-random.
* tests/misc/sort-benchmark-random: New file.
Signed-off-by: Pádraig Brady <P@draigBrady.com>
2010-07-09 08:03:50 +01:00
|
|
|
heap
|
2009-04-10 08:20:13 +02:00
|
|
|
host-os
|
|
|
|
|
human
|
|
|
|
|
idcache
|
|
|
|
|
ignore-value
|
|
|
|
|
inttostr
|
|
|
|
|
inttypes
|
|
|
|
|
isapipe
|
2012-03-20 19:45:05 +01:00
|
|
|
isatty
|
2009-10-19 07:55:42 +02:00
|
|
|
isblank
|
2011-08-09 10:28:31 +02:00
|
|
|
largefile
|
2009-04-10 08:20:13 +02:00
|
|
|
lchmod
|
|
|
|
|
lchown
|
2011-01-11 18:07:15 -08:00
|
|
|
ldtoastr
|
2009-04-10 08:20:13 +02:00
|
|
|
lib-ignore
|
|
|
|
|
linebuffer
|
2009-09-10 17:51:44 +02:00
|
|
|
link
|
2009-04-10 08:20:13 +02:00
|
|
|
link-follow
|
2009-09-24 11:57:11 -06:00
|
|
|
linkat
|
2009-04-10 08:20:13 +02:00
|
|
|
long-options
|
|
|
|
|
lstat
|
2009-04-24 01:07:43 +02:00
|
|
|
maintainer-makefile
|
2010-09-06 07:49:48 +02:00
|
|
|
malloc-gnu
|
2009-04-10 08:20:13 +02:00
|
|
|
manywarnings
|
2011-08-12 01:14:45 -07:00
|
|
|
mbrlen
|
2009-04-10 08:20:13 +02:00
|
|
|
mbrtowc
|
|
|
|
|
mbsalign
|
2017-06-28 01:23:52 +00:00
|
|
|
mbschr
|
|
|
|
|
mbslen
|
2009-04-10 08:20:13 +02:00
|
|
|
mbswidth
|
|
|
|
|
memcasecmp
|
2009-05-31 15:18:16 +02:00
|
|
|
memchr
|
2009-04-10 08:20:13 +02:00
|
|
|
memcmp2
|
|
|
|
|
mempcpy
|
|
|
|
|
memrchr
|
|
|
|
|
mgetgroups
|
|
|
|
|
mkancesdirs
|
|
|
|
|
mkdir
|
|
|
|
|
mkdir-p
|
2012-03-20 19:45:05 +01:00
|
|
|
mkfifo
|
|
|
|
|
mknod
|
2009-04-10 08:20:13 +02:00
|
|
|
mkstemp
|
|
|
|
|
mktime
|
|
|
|
|
modechange
|
|
|
|
|
mountlist
|
|
|
|
|
mpsort
|
2010-04-24 17:16:56 +02:00
|
|
|
netinet_in
|
2012-09-09 08:21:16 +02:00
|
|
|
non-recursive-gnulib-prefix-hack
|
2009-10-31 18:59:50 +01:00
|
|
|
nproc
|
2009-04-10 08:20:13 +02:00
|
|
|
obstack
|
2010-10-05 11:47:21 -06:00
|
|
|
parse-datetime
|
2012-03-22 04:50:26 +00:00
|
|
|
pathmax
|
2009-04-10 08:20:13 +02:00
|
|
|
perl
|
|
|
|
|
physmem
|
2014-01-14 18:23:44 +00:00
|
|
|
pipe-posix
|
2009-04-10 08:20:13 +02:00
|
|
|
posix-shell
|
|
|
|
|
posixtm
|
|
|
|
|
posixver
|
2009-04-29 03:48:15 -04:00
|
|
|
priv-set
|
2009-04-10 08:20:13 +02:00
|
|
|
progname
|
|
|
|
|
propername
|
sort: parallelize internal sort
This patch is by Gene Auyeung, Chris Dickens, Chen Guo, and Mike
Nichols, based off of a patch by Paul Eggert, Glen Lenker, et. al.,
with a basic heap implementation based off of the GDSL heap,
originally by Nicolas Darnis.
The number of sorts done in parallel is limited to the number
of available processors by default, or can be further restricted
with the --parallel option.
On a dual-die, 8 core Intel Xeon, results show sorting with
8 threads is almost 4 times faster than using a single thread.
Timings when sorting a 96MB file:
THREADS TIME (s)
1 5.10
2 2.87
4 1.75
8 1.31
Single threaded sorting has also been improved,
especially for cheaper comparison operations:
COMMAND BEFORE (s) AFTER (s)
sort 8.822 8.716
sort -g 10.336 10.222
sort -n 3.077 2.961
LANG=C sort 2.169 2.066
* bootstrap.conf: Add heap, pthread.
* coreutils.texi (sort): Describe the new --parallel option.
* gl/lib/heap.c: New file. Very basic heap implementation.
* gl/lib/heap.h: New file.
* gl/modules/heap: New file.
* src/Makefile.am: Add LIB_PTHREAD.
* src/sort.c: Include heap.h, nproc.h, pthread.h.
(MAX_MERGE): New macro.
(SUBTHREAD_LINES_HEURISTIC, PARALLEL_OPTION): New constants.
(MERGE_END, MERGE_ROOT): New constants.
(struct merge_node): New struct.
(struct merge_node_queue): New struct.
(sortlines temp): Remove declaration.
(usage, long_options, main): New option, --parallel.
(specify_nthreads): New function.
(mergelines): New signature, to emphasize the fact that the HI area
must be part of the destination. All callers changed.
(sequential_sort): New function, renamed from sortlines. Merge in
the functionality of sortlines_temp.
(compare_nodes): New function.
(lock_node, unlock_node): New functions.
(queue_destroy): New function.
(queue_init): New function.
(queue_insert): New function.
(queue_pop): New function.
(write_unique): New function.
(mergelines_node): New function.
(check_insert): New function.
(update_parent): New function.
(merge_loop): New function.
(sortlines): Rewrite to support and use parallelism, with a new
signature. All callers changed.
(struct thread_args): New struct.
(sortlines_thread): New function.
(sortlines_temp): Remove.
(sort): New argument NTHREADS. All uses changed. Output moved to
mergelines_node.
(main): disable threading if we are sorting at random.
* tests/Makefile.am (TESTS): Add misc/sort-benchmark-random.
* tests/misc/sort-benchmark-random: New file.
Signed-off-by: Pádraig Brady <P@draigBrady.com>
2010-07-09 08:03:50 +01:00
|
|
|
pthread
|
2009-04-10 08:20:13 +02:00
|
|
|
putenv
|
|
|
|
|
quote
|
|
|
|
|
quotearg
|
|
|
|
|
randint
|
|
|
|
|
randperm
|
2011-01-11 19:30:28 +00:00
|
|
|
read-file
|
2009-04-10 08:20:13 +02:00
|
|
|
readlink
|
|
|
|
|
readtokens
|
|
|
|
|
readtokens0
|
|
|
|
|
readutmp
|
2010-09-06 07:49:48 +02:00
|
|
|
realloc-gnu
|
2009-04-10 08:20:13 +02:00
|
|
|
regex
|
2009-11-04 14:02:20 -07:00
|
|
|
remove
|
2009-09-22 15:03:02 -06:00
|
|
|
rename
|
2017-03-09 23:01:03 -08:00
|
|
|
renameat
|
2017-07-30 17:11:24 -07:00
|
|
|
renameat2
|
2009-04-10 08:20:13 +02:00
|
|
|
rmdir
|
|
|
|
|
root-dev-ino
|
|
|
|
|
rpmatch
|
|
|
|
|
safe-read
|
|
|
|
|
same
|
|
|
|
|
save-cwd
|
|
|
|
|
savedir
|
|
|
|
|
savewd
|
|
|
|
|
selinux-at
|
2015-06-28 10:35:04 -07:00
|
|
|
setenv
|
2009-04-10 08:20:13 +02:00
|
|
|
settime
|
|
|
|
|
sig2str
|
|
|
|
|
sigaction
|
2013-07-02 03:42:20 +01:00
|
|
|
smack
|
2009-04-10 08:20:13 +02:00
|
|
|
ssize_t
|
|
|
|
|
stat-macros
|
2011-06-11 16:28:34 +01:00
|
|
|
stat-size
|
2009-04-10 08:20:13 +02:00
|
|
|
stat-time
|
2017-02-15 15:58:08 -08:00
|
|
|
statat
|
2009-04-10 08:20:13 +02:00
|
|
|
stdbool
|
|
|
|
|
stdlib-safer
|
|
|
|
|
stpcpy
|
|
|
|
|
stpncpy
|
2009-09-03 21:59:54 -06:00
|
|
|
strdup-posix
|
2009-04-10 08:20:13 +02:00
|
|
|
strftime
|
2012-03-20 19:45:05 +01:00
|
|
|
strncat
|
2012-09-08 15:11:20 +02:00
|
|
|
strnumcmp
|
2012-03-20 19:45:05 +01:00
|
|
|
strpbrk
|
2009-09-30 09:26:58 +02:00
|
|
|
strsignal
|
2010-09-06 07:49:48 +02:00
|
|
|
strtod
|
2009-04-10 08:20:13 +02:00
|
|
|
strtoimax
|
|
|
|
|
strtoumax
|
ln: replace destination links more atomically
If the file B already exists, commands like 'ln -f A B' and
'cp -fl A B' no longer remove B before creating the new link.
Instead, they arrange for the new link to replace B atomically.
This should fix a race condition reported by Mike Crowe (Bug#25680).
* NEWS, doc/coreutils.texi (cp invocation, ln invocation):
Document this.
* bootstrap.conf (gnulib_modules): Add symlinkat.
* src/copy.c, src/ln.c: Include force-link.h.
* src/copy.c (same_file_ok): It's also OK to remove a destination
symlink when creating symbolic links, or when the source and
destination are on the same file system and when creating hard links.
* src/copy.c (create_hard_link, copy_internal):
* src/ln.c (do_link):
Rewrite using force_linkat and force_symlinkat, to close a window
where the destination temporarily does not exist.
* src/cp.c (main): Do not set x.unlink_dest_before_opening
merely because we are in link-creation mode.
* src/force-link.c, src/force-link.h: New files.
* src/local.mk (copy_sources, src_ln_SOURCES): Add them.
* tests/cp/same-file.sh: Adjust test case to match fixed behavior.
2017-02-11 23:12:31 -08:00
|
|
|
symlinkat
|
2010-04-24 17:16:56 +02:00
|
|
|
sys_ioctl
|
2012-05-04 11:18:28 +02:00
|
|
|
sys_resource
|
2009-04-10 08:20:13 +02:00
|
|
|
sys_stat
|
2010-04-24 17:16:56 +02:00
|
|
|
sys_wait
|
2015-06-03 04:29:45 +01:00
|
|
|
tempname
|
2010-09-18 20:24:41 +02:00
|
|
|
termios
|
2015-07-23 18:49:31 -07:00
|
|
|
time_rz
|
2011-07-18 10:49:17 +01:00
|
|
|
timer-time
|
2009-04-10 08:20:13 +02:00
|
|
|
timespec
|
|
|
|
|
tzset
|
2009-10-09 20:08:03 -06:00
|
|
|
uname
|
2009-04-10 08:20:13 +02:00
|
|
|
unicodeio
|
|
|
|
|
unistd-safer
|
|
|
|
|
unlink-busy
|
2012-03-20 19:45:05 +01:00
|
|
|
unlinkat
|
2009-04-10 08:20:13 +02:00
|
|
|
unlocked-io
|
2009-10-26 07:10:51 -06:00
|
|
|
unsetenv
|
2009-07-29 16:29:21 +02:00
|
|
|
update-copyright
|
2009-04-10 08:20:13 +02:00
|
|
|
uptime
|
|
|
|
|
useless-if-before-free
|
|
|
|
|
userspec
|
|
|
|
|
utimecmp
|
|
|
|
|
utimens
|
|
|
|
|
vasprintf-posix
|
|
|
|
|
vc-list-files
|
|
|
|
|
verify
|
|
|
|
|
verror
|
|
|
|
|
version-etc-fsf
|
2011-03-12 14:22:54 +00:00
|
|
|
wcswidth
|
2012-03-20 19:45:05 +01:00
|
|
|
wcwidth
|
2009-04-10 08:20:13 +02:00
|
|
|
winsz-ioctl
|
|
|
|
|
winsz-termios
|
|
|
|
|
write-any-file
|
|
|
|
|
xalloc
|
maint: xsetmode renamed to xbinary-io
* bootstrap.conf, src/base64.c, src/cat.c, src/cksum.c:
* src/head.c, src/md5sum.c, src/od.c, src/split.c, src/sum.c:
* src/tac.c, src/tail.c, src/tee.c, src/tr.c, src/wc.c:
Adjust to renaming of the xsetmode module to xbinary-io,
and of the xsetmode function to xset_binary_mode.
2017-02-16 00:40:02 -08:00
|
|
|
xbinary-io
|
2017-02-15 15:58:08 -08:00
|
|
|
xdectoint
|
2012-09-08 15:11:20 +02:00
|
|
|
xfts
|
2009-04-10 08:20:13 +02:00
|
|
|
xgetcwd
|
2011-04-28 15:17:15 -06:00
|
|
|
xgetgroups
|
2009-04-10 08:20:13 +02:00
|
|
|
xgethostname
|
|
|
|
|
xmemcoll
|
|
|
|
|
xnanosleep
|
|
|
|
|
xprintf
|
|
|
|
|
xprintf-posix
|
2009-09-24 17:18:47 -06:00
|
|
|
xreadlink
|
2009-04-10 08:20:13 +02:00
|
|
|
xstrtod
|
|
|
|
|
xstrtoimax
|
|
|
|
|
xstrtol
|
|
|
|
|
xstrtold
|
|
|
|
|
xstrtoumax
|
|
|
|
|
yesno
|
Add a bootstrap procedure, so that the CVS version contains fewer
files and we bootstrap the rest from gnulib, gettext, etc.
* README-cvs: New file.
* bootstrap: New file.
* bootstrap.conf: New file.
* .x-sc_trailing_blank: Remove config-log, .gdb-history. Add .po.
* configure.ac (AC_PREREQ): Move here from m4/*.m4, for benefit
of gnulib-tool.
(gl_DEFAULT_POSIX2_VERSION, gl_USE_SYSTEM_EXTENSIONS, gl_PERL):
(gl_IGNORE_UNUSED_LIBRARIES): Remove; now done by gnulib.
(gl_EARLY): Add.
(gl_MACROS): Call just after gl_EARLY, just for clarity.
* src/c99-to-c98.diff: Remove patch to ls.c; no longer needed.
* src/kill.c (strtoimax): Remove decl.
* src/ls.c: Include "wcwidth.h" instead of rolling it ourselves.
* src/wc.c: Likewise.
* src/ls.c (sort_files): Rewrite to avoid need for C99-style
declaration, so that we don't need to patch this file.
* src/printf.c (strtoimax, strtoumax): Remove decls.
* src/su.c: Include getpass.h.
(getpass): remove.
* src/system.h: Include mempcpy.h, stpcpy.h, strpbrk.h.
Include inttypes.h unconditionally; remove decls it handles.
* lib/Makefile.am: include gnulib.mk, so that we can remove most of
this file.
(AM_CPPFLAGS): Don't mention -I$(srcdir), since that's now done
for us.
(noinst_LIBRARIES, LDDADD, DEFS): Remove.
(libcoreutils_a_SOURCES): Trim down greatly, just to the files
that aren't in gnulib.
Remove defns gnulib does for us.
* m4/check-decl.m4 (gl_CHECK_DECLS):
Don't include stdio.h, string.h, stdlib.h, unistd.h, sys/time.h,
time.h. Use AC_CHECK_DECLS_ONCE for free, getenv, geteuid, getlogin,
getuid, lseek, malloc, memchr, realloc. Don't check for getutent,
memrchr, nanosleep, stpcpy, strndup, strnlen, strstr, strtoul,
strtoull.
(_gl_DECL_HEADERS): Remove; all uses removed.
* m4/jm-macros.m4 (gl_MACROS): Move AC_PREREQ into configure.ac
for the benefit of gnulib-tool. Call gl_INIT.
Do not call or require macros that gnulib will handle for us.
Don't check for fchmod, hasmntopt, isascii, lchown, listmntent,
mempcpy, realpath, wcrtomb, tzset.
(gl_CHECK_ALL_HEADERS): Don't check for sys/statvfs.h, sys/vfs.h,
sys/mount.h.
(gl_CHECK_ALL_TYPES): Require AC_TYPE_UNSIGNED_LONG_LONG_INT.
Don't check for struct stat.st_blksize.
Don't require AC_STRUCT_ST_DM_MODE, gt_TYPE_SSIZE_T,
gl_AC_TYPE_UINT32_T, gl_AC_TYPE_UINTMAX_T, gl_AC_TYPE_UINTPTR_T,
gl_AC_TYPE_UNSIGNED_LONG_LONG.
* m4/prereq.m4 (gl_PREREQ): Require gl_FUNC_XFTS, gl_ROOT_DEV_INO.
Don't require macros that gnulib does for us.
* m4/stat-prog.m4 (cu_PREREQ_STAT_PROG): Don't check for
sys/sysmacros.h. Don't check for statvfs. Use AC_CHECK_HEADERS_ONCE
for netinet/in.h, nfs/nfs_clnt.h, nfs/vfs.h.
Don't require gl_AC_TYPE_LONG_LONG, gt_HEADER_INTTYPES_H.
2006-08-21 07:30:45 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
|
|
# Other locale categories that need message catalogs.
|
|
|
|
|
EXTRA_LOCALE_CATEGORIES=LC_TIME
|
|
|
|
|
|
|
|
|
|
# Additional xgettext options to use. Use "\\\newline" to break lines.
|
|
|
|
|
XGETTEXT_OPTIONS=$XGETTEXT_OPTIONS'\\\
|
2007-10-28 15:37:56 +01:00
|
|
|
--flag=asnprintf:3:c-format\\\
|
2009-03-07 16:20:55 +01:00
|
|
|
--flag=asprintf:2:c-format\\\
|
2007-10-28 15:37:56 +01:00
|
|
|
--flag=error:3:c-format\\\
|
|
|
|
|
--flag=error_at_line:5:c-format\\\
|
|
|
|
|
--flag=vasnprintf:3:c-format\\\
|
2009-03-07 16:20:55 +01:00
|
|
|
--flag=vasprintf:2:c-format\\\
|
|
|
|
|
--flag=verror:3:c-format\\\
|
|
|
|
|
--flag=verror_at_line:5:c-format\\\
|
Add a bootstrap procedure, so that the CVS version contains fewer
files and we bootstrap the rest from gnulib, gettext, etc.
* README-cvs: New file.
* bootstrap: New file.
* bootstrap.conf: New file.
* .x-sc_trailing_blank: Remove config-log, .gdb-history. Add .po.
* configure.ac (AC_PREREQ): Move here from m4/*.m4, for benefit
of gnulib-tool.
(gl_DEFAULT_POSIX2_VERSION, gl_USE_SYSTEM_EXTENSIONS, gl_PERL):
(gl_IGNORE_UNUSED_LIBRARIES): Remove; now done by gnulib.
(gl_EARLY): Add.
(gl_MACROS): Call just after gl_EARLY, just for clarity.
* src/c99-to-c98.diff: Remove patch to ls.c; no longer needed.
* src/kill.c (strtoimax): Remove decl.
* src/ls.c: Include "wcwidth.h" instead of rolling it ourselves.
* src/wc.c: Likewise.
* src/ls.c (sort_files): Rewrite to avoid need for C99-style
declaration, so that we don't need to patch this file.
* src/printf.c (strtoimax, strtoumax): Remove decls.
* src/su.c: Include getpass.h.
(getpass): remove.
* src/system.h: Include mempcpy.h, stpcpy.h, strpbrk.h.
Include inttypes.h unconditionally; remove decls it handles.
* lib/Makefile.am: include gnulib.mk, so that we can remove most of
this file.
(AM_CPPFLAGS): Don't mention -I$(srcdir), since that's now done
for us.
(noinst_LIBRARIES, LDDADD, DEFS): Remove.
(libcoreutils_a_SOURCES): Trim down greatly, just to the files
that aren't in gnulib.
Remove defns gnulib does for us.
* m4/check-decl.m4 (gl_CHECK_DECLS):
Don't include stdio.h, string.h, stdlib.h, unistd.h, sys/time.h,
time.h. Use AC_CHECK_DECLS_ONCE for free, getenv, geteuid, getlogin,
getuid, lseek, malloc, memchr, realloc. Don't check for getutent,
memrchr, nanosleep, stpcpy, strndup, strnlen, strstr, strtoul,
strtoull.
(_gl_DECL_HEADERS): Remove; all uses removed.
* m4/jm-macros.m4 (gl_MACROS): Move AC_PREREQ into configure.ac
for the benefit of gnulib-tool. Call gl_INIT.
Do not call or require macros that gnulib will handle for us.
Don't check for fchmod, hasmntopt, isascii, lchown, listmntent,
mempcpy, realpath, wcrtomb, tzset.
(gl_CHECK_ALL_HEADERS): Don't check for sys/statvfs.h, sys/vfs.h,
sys/mount.h.
(gl_CHECK_ALL_TYPES): Require AC_TYPE_UNSIGNED_LONG_LONG_INT.
Don't check for struct stat.st_blksize.
Don't require AC_STRUCT_ST_DM_MODE, gt_TYPE_SSIZE_T,
gl_AC_TYPE_UINT32_T, gl_AC_TYPE_UINTMAX_T, gl_AC_TYPE_UINTPTR_T,
gl_AC_TYPE_UNSIGNED_LONG_LONG.
* m4/prereq.m4 (gl_PREREQ): Require gl_FUNC_XFTS, gl_ROOT_DEV_INO.
Don't require macros that gnulib does for us.
* m4/stat-prog.m4 (cu_PREREQ_STAT_PROG): Don't check for
sys/sysmacros.h. Don't check for statvfs. Use AC_CHECK_HEADERS_ONCE
for netinet/in.h, nfs/nfs_clnt.h, nfs/vfs.h.
Don't require gl_AC_TYPE_LONG_LONG, gt_HEADER_INTTYPES_H.
2006-08-21 07:30:45 +00:00
|
|
|
--flag=wrapf:1:c-format\\\
|
2007-10-28 15:37:56 +01:00
|
|
|
--flag=xasprintf:1:c-format\\\
|
|
|
|
|
--flag=xfprintf:2:c-format\\\
|
|
|
|
|
--flag=xprintf:1:c-format\\\
|
2009-03-07 16:20:55 +01:00
|
|
|
--from-code=UTF-8\\\
|
Add a bootstrap procedure, so that the CVS version contains fewer
files and we bootstrap the rest from gnulib, gettext, etc.
* README-cvs: New file.
* bootstrap: New file.
* bootstrap.conf: New file.
* .x-sc_trailing_blank: Remove config-log, .gdb-history. Add .po.
* configure.ac (AC_PREREQ): Move here from m4/*.m4, for benefit
of gnulib-tool.
(gl_DEFAULT_POSIX2_VERSION, gl_USE_SYSTEM_EXTENSIONS, gl_PERL):
(gl_IGNORE_UNUSED_LIBRARIES): Remove; now done by gnulib.
(gl_EARLY): Add.
(gl_MACROS): Call just after gl_EARLY, just for clarity.
* src/c99-to-c98.diff: Remove patch to ls.c; no longer needed.
* src/kill.c (strtoimax): Remove decl.
* src/ls.c: Include "wcwidth.h" instead of rolling it ourselves.
* src/wc.c: Likewise.
* src/ls.c (sort_files): Rewrite to avoid need for C99-style
declaration, so that we don't need to patch this file.
* src/printf.c (strtoimax, strtoumax): Remove decls.
* src/su.c: Include getpass.h.
(getpass): remove.
* src/system.h: Include mempcpy.h, stpcpy.h, strpbrk.h.
Include inttypes.h unconditionally; remove decls it handles.
* lib/Makefile.am: include gnulib.mk, so that we can remove most of
this file.
(AM_CPPFLAGS): Don't mention -I$(srcdir), since that's now done
for us.
(noinst_LIBRARIES, LDDADD, DEFS): Remove.
(libcoreutils_a_SOURCES): Trim down greatly, just to the files
that aren't in gnulib.
Remove defns gnulib does for us.
* m4/check-decl.m4 (gl_CHECK_DECLS):
Don't include stdio.h, string.h, stdlib.h, unistd.h, sys/time.h,
time.h. Use AC_CHECK_DECLS_ONCE for free, getenv, geteuid, getlogin,
getuid, lseek, malloc, memchr, realloc. Don't check for getutent,
memrchr, nanosleep, stpcpy, strndup, strnlen, strstr, strtoul,
strtoull.
(_gl_DECL_HEADERS): Remove; all uses removed.
* m4/jm-macros.m4 (gl_MACROS): Move AC_PREREQ into configure.ac
for the benefit of gnulib-tool. Call gl_INIT.
Do not call or require macros that gnulib will handle for us.
Don't check for fchmod, hasmntopt, isascii, lchown, listmntent,
mempcpy, realpath, wcrtomb, tzset.
(gl_CHECK_ALL_HEADERS): Don't check for sys/statvfs.h, sys/vfs.h,
sys/mount.h.
(gl_CHECK_ALL_TYPES): Require AC_TYPE_UNSIGNED_LONG_LONG_INT.
Don't check for struct stat.st_blksize.
Don't require AC_STRUCT_ST_DM_MODE, gt_TYPE_SSIZE_T,
gl_AC_TYPE_UINT32_T, gl_AC_TYPE_UINTMAX_T, gl_AC_TYPE_UINTPTR_T,
gl_AC_TYPE_UNSIGNED_LONG_LONG.
* m4/prereq.m4 (gl_PREREQ): Require gl_FUNC_XFTS, gl_ROOT_DEV_INO.
Don't require macros that gnulib does for us.
* m4/stat-prog.m4 (cu_PREREQ_STAT_PROG): Don't check for
sys/sysmacros.h. Don't check for statvfs. Use AC_CHECK_HEADERS_ONCE
for netinet/in.h, nfs/nfs_clnt.h, nfs/vfs.h.
Don't require gl_AC_TYPE_LONG_LONG, gt_HEADER_INTTYPES_H.
2006-08-21 07:30:45 +00:00
|
|
|
'
|
|
|
|
|
|
use gnulib's proper_name_utf8 function, but *not* proper_name
* bootstrap.conf (gnulib_modules): Add propername.
(XGETTEXT_OPTIONS): Add options to tell xgettext about the functions.
* src/cat.c, src/cp.c, src/df.c, src/du.c, src/split.c:
Mark Torbjörn Granlund's name.
* src/ptx.c: Mark François Pinard's name.
Use "TRANSLATORS:" comment marker, rather than "Note to translators:".
* src/system.h: Include propername.h.
(proper_name): Define away.
* src/Makefile.am (cat_LDADD, df_LDADD, du_LDADD, ptx_LDADD, split_LDADD):
Initialize, so we can...
(cat_LDADD, cp_LDADD, df_LDADD, du_LDADD, ptx_LDADD, split_LDADD):
...Use "+=" to append $(LIBICONV) for each program that uses
proper_name_utf8.
2008-05-19 16:14:13 +02:00
|
|
|
# Append these, since we use the propername module.
|
|
|
|
|
see_manual='"This is a proper name. See the gettext manual, section Names."'
|
|
|
|
|
see_manual=\'"$see_manual"\'
|
|
|
|
|
XGETTEXT_OPTIONS=$XGETTEXT_OPTIONS'\\\
|
|
|
|
|
--keyword=proper_name:1,'"$see_manual"'\\\
|
|
|
|
|
--keyword=proper_name_utf8:1,'"$see_manual"'\\\
|
|
|
|
|
'
|
|
|
|
|
|
maint: bootstrap: run autopoint and libtoolize *before* gnulib-tool
* bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
Run autopoint and libtoolize *before* gnulib-tool.
After it, run an abbreviated autoreconf, rather than a loop around
all tools.
* bootstrap.conf (gnulib_tool_option_extras): Add both --symlink
and --makefile-name=gnulib.mk. Remove stray use of $bt.
* lib/Makefile.am: Initialize all of the following so that
generated code in gnulib.mk may use += to append to those variables:
AM_CFLAGS, AM_CPPFLAGS, BUILT_SOURCES, CLEANFILES, EXTRA_DIST,
MAINTAINERCLEANFILES, MOSTLYCLEANDIRS, MOSTLYCLEANFILES, SUFFIXES,
noinst_LIBRARIES.
2010-09-06 09:48:46 +02:00
|
|
|
gnulib_tool_option_extras="--tests-base=gnulib-tests --with-tests --symlink\
|
|
|
|
|
--makefile-name=gnulib.mk
|
|
|
|
|
"
|
2008-02-10 10:27:42 +01:00
|
|
|
|
2008-10-21 22:40:12 +01:00
|
|
|
# Build prerequisites
|
|
|
|
|
buildreq="\
|
2012-04-22 23:41:05 +01:00
|
|
|
autoconf 2.64
|
2012-08-30 16:58:14 +02:00
|
|
|
automake 1.11.2
|
2015-04-27 10:14:14 +01:00
|
|
|
autopoint 0.19.2
|
2008-10-21 22:40:12 +01:00
|
|
|
bison -
|
2015-04-27 10:14:14 +01:00
|
|
|
gettext 0.19.2
|
2008-10-21 22:40:12 +01:00
|
|
|
git 1.4.4
|
|
|
|
|
gperf -
|
|
|
|
|
gzip -
|
2017-03-04 14:10:57 -08:00
|
|
|
makeinfo 6.1
|
2010-11-16 07:32:32 +00:00
|
|
|
patch -
|
2008-10-21 22:40:12 +01:00
|
|
|
perl 5.5
|
|
|
|
|
rsync -
|
|
|
|
|
tar -
|
2010-04-11 22:40:52 +08:00
|
|
|
xz -
|
2008-10-21 22:40:12 +01:00
|
|
|
"
|
|
|
|
|
|
2012-09-01 01:46:38 +02:00
|
|
|
bootstrap_post_import_hook ()
|
|
|
|
|
{
|
|
|
|
|
# Automake requires that ChangeLog exist.
|
build: refactor how lists of coreutils programs are defined
This is in preparation of future changes. Still, this patch
leaves the build system in a better shape; true, with more
indirections, but also with less convoluted and brittle hacks.
Unfortunately, this commit also makes some rebuild rules
incomplete; that will son be fixed by follow-up patches.
* build-aux/gen-lists-of-programs.sh: New, generates autoconf
and automake input fragments that define "lists" of all coreutils
programs, with further distinctions about how and when these
programs should be built (by default; if the system is capable
enough; only if the user asks for them explicitly). This is
useful to avoid duplicating the definitions of these lists among
several files (at least 'configure.ac' 'src/Makefile.am'); such
duplication had proved a source of inconsistencies and bugs in
the past. And the pre-existing way to avoid such duplication,
as implemented in 'configure.ac' before this patch, was overly
complex and brittle.
* Makefile.am (EXTRA_DIST): Distribute the new script.
* bootstrap.conf (bootstrap_post_import_hook): Run the new script
to generate 'm4/cu-progs.m4' and 'src/cu-progs.mk'.
* .gitignore: Ignore those files.
* configure.ac: Include 'm4/cu-progs.m4', and decidedly simplify
most of the program lists definition and processing accordingly.
* src/Makefile.am: Similarly include 'src/cu-progs.mk', containing
definition of variables $(default__progs), $(no_install__progs)
and $(build_if_possible__progs). Accordingly ...
(no_install__progs, build_if_possible__progs): ... remove.
(EXTRA_DIST): Adjust definition.
Adjust a comment.
2012-09-01 01:46:39 +02:00
|
|
|
touch ChangeLog || return 1
|
|
|
|
|
# List of coreutils programs. See heading comments in the invoked
|
2012-09-01 01:46:42 +02:00
|
|
|
# script for more info. Keep this in sync with the rules in
|
|
|
|
|
(m4f=m4/cu-progs.m4 mkf=src/cu-progs.mk tmp=cu-progs.tmp \
|
|
|
|
|
&& rm -f $m4f $mkf $tmp-1 $tmp-2 \
|
|
|
|
|
&& build-aux/gen-lists-of-programs.sh --autoconf >$tmp-1 \
|
|
|
|
|
&& build-aux/gen-lists-of-programs.sh --automake >$tmp-2 \
|
|
|
|
|
&& chmod a-w $tmp-1 $tmp-2 \
|
|
|
|
|
&& mv -f $tmp-1 $m4f && mv -f $tmp-2 $mkf)
|
2012-09-09 08:21:16 +02:00
|
|
|
|
|
|
|
|
# Massage lib/gnulib.mk before using it later in the bootstrapping process.
|
|
|
|
|
build-aux/prefix-gnulib-mk --lib-name=$gnulib_name lib/$gnulib_mk
|
2014-06-05 19:50:32 -07:00
|
|
|
|
|
|
|
|
# Regenerate src/single-binary.mk
|
|
|
|
|
(mkf=src/single-binary.mk tmp=single-binary.tmp \
|
|
|
|
|
&& rm -f $mkf $tmp \
|
|
|
|
|
&& build-aux/gen-single-binary.sh src/local.mk >$tmp \
|
|
|
|
|
&& chmod a-w $tmp \
|
|
|
|
|
&& mv -f $tmp $mkf)
|
2012-09-01 01:46:38 +02:00
|
|
|
}
|
2009-09-26 14:13:16 +02:00
|
|
|
|
2012-09-09 08:21:16 +02:00
|
|
|
|
2009-09-26 14:13:16 +02:00
|
|
|
bootstrap_epilogue()
|
|
|
|
|
{
|
2010-06-10 23:33:17 +02:00
|
|
|
# Since this is a "GNU" package, replace this line
|
|
|
|
|
# if LC_ALL=C grep 'GNU @PACKAGE@' $(top_srcdir)/* 2>/dev/null \
|
|
|
|
|
# | grep -v 'libtool:' >/dev/null; then
|
|
|
|
|
# with this:
|
|
|
|
|
# if true; then
|
|
|
|
|
# Why? That pipeline searches all files in $(top_srcdir), and if you
|
|
|
|
|
# happen to have large files (or apparently large sparse files), the
|
|
|
|
|
# first grep may well run out of memory.
|
|
|
|
|
perl -pi -e 's/if LC_ALL=C grep .GNU .PACKAGE.*; then/if true; then/' \
|
|
|
|
|
po/Makefile.in.in
|
2011-11-12 22:48:12 +01:00
|
|
|
|
2017-03-08 00:54:31 +00:00
|
|
|
# Add dummy 'install-html' target, required for packages using
|
|
|
|
|
# non-recursive makefiles with older gettext.
|
|
|
|
|
# See https://debbugs.gnu.org/25690
|
|
|
|
|
if ! grep -w 'install-html' po/Makefile.in.in ; then
|
|
|
|
|
printf 'install-%s:;\n' dvi ps pdf html >> po/Makefile.in.in
|
|
|
|
|
fi
|
|
|
|
|
|
2011-11-12 22:48:12 +01:00
|
|
|
# Install our git hooks, as long as "cp" accepts the --backup option,
|
|
|
|
|
# so that we can back up any existing files.
|
|
|
|
|
case $(cp --help) in *--backup*) backup=1;; *) backup=0;; esac
|
|
|
|
|
if test $backup = 1; then
|
|
|
|
|
hooks=$(cd scripts/git-hooks && git ls-files)
|
|
|
|
|
for f in $hooks; do
|
|
|
|
|
# If it is identical, skip it.
|
|
|
|
|
cmp scripts/git-hooks/$f .git/hooks/$f > /dev/null \
|
|
|
|
|
&& continue
|
|
|
|
|
cp --backup=numbered scripts/git-hooks/$f .git/hooks
|
|
|
|
|
chmod a-w .git/hooks/$f
|
|
|
|
|
done
|
|
|
|
|
fi
|
2009-09-26 14:13:16 +02:00
|
|
|
}
|