Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
m4
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
certo
m4
Commits
ff4a8eaa
Commit
ff4a8eaa
authored
Jun 27, 2023
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upgraded m4 to 1.4.19
parent
8eb13cd2
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
125 deletions
+13
-125
Makefile
Makefile
+11
-13
build.xml
build.xml
+2
-5
m4-1.4.18-glibc2.28_fix.patch
m4-1.4.18-glibc2.28_fix.patch
+0
-107
m4-1.4.18.tar.xz
m4-1.4.18.tar.xz
+0
-0
m4-1.4.19.tar.xz
m4-1.4.19.tar.xz
+0
-0
No files found.
Makefile
View file @
ff4a8eaa
all
:
tar
xf m4-1.4.18.tar.xz
patch
-Np1
-d
m4-1.4.18 < m4-1.4.18-glibc2.28_fix.patch
cd
m4-1.4.18
&&
./configure
--build
=
$(CLFS_TARGET)
--prefix
=
/usr
$(MAKE)
-C
m4-1.4.18
tar
xf m4-1.4.19.tar.xz
cd
m4-1.4.19
&&
./configure
--build
=
$(CLFS_TARGET)
--prefix
=
/usr
$(MAKE)
-C
m4-1.4.19
if
[[
!
"
$(BUILD_OPTIONS)
"
=
~ no-tests
]]
;
then
\
$(MAKE)
-C
m4-1.4.1
8
check
;
\
$(MAKE)
-C
m4-1.4.1
9
check
;
\
fi
$(MAKE)
-C
m4-1.4.1
8
install
rm
-rf
m4-1.4.1
8
$(MAKE)
-C
m4-1.4.1
9
install
rm
-rf
m4-1.4.1
9
temporary
:
tar
xf m4-1.4.18.tar.xz
patch
-Np1
-d
m4-1.4.18 < m4-1.4.18-glibc2.28_fix.patch
cd
m4-1.4.18
&&
./configure
--prefix
=
/tools
$(MAKE)
-C
m4-1.4.18
$(MAKE)
-C
m4-1.4.18
install
rm
-rf
m4-1.4.18
tar
xf m4-1.4.19.tar.xz
cd
m4-1.4.19
&&
./configure
--prefix
=
/tools
$(MAKE)
-C
m4-1.4.19
$(MAKE)
-C
m4-1.4.19
install
rm
-rf
m4-1.4.19
build.xml
View file @
ff4a8eaa
<project
name=
"m4"
>
<target
name=
"cross-m4"
>
<property
name=
"makedir"
value=
"${builddir}/m4-1.4.1
8
"
/>
<property
name=
"makedir"
value=
"${builddir}/m4-1.4.1
9
"
/>
<exec
executable=
"tar"
failonerror=
"true"
>
<arg
line=
"xf packages/m4/m4-1.4.18.tar.xz -C ${builddir}"
/>
</exec>
<exec
executable=
"patch"
dir=
"${builddir}/m4-1.4.18"
failonerror=
"true"
>
<arg
line=
"-Np1 -i ${basedir}/packages/m4/m4-1.4.18-glibc2.28_fix.patch"
/>
<arg
line=
"xf packages/m4/m4-1.4.19.tar.xz -C ${builddir}"
/>
</exec>
<exec
executable=
"./configure"
dir=
"${makedir}"
failonerror=
"true"
>
<arg
line=
"--prefix=${sysrootdir}/cross-tools"
/>
...
...
m4-1.4.18-glibc2.28_fix.patch
deleted
100644 → 0
View file @
8eb13cd2
diff -uNr m4-1.4.18/lib/fflush.c m4-1.4.18-glibc2.28_fix/lib/fflush.c
--- m4-1.4.18/lib/fflush.c 2017-01-01 00:24:41.000000000 +1030
+++ m4-1.4.18-glibc2.28_fix/lib/fflush.c 2019-06-24 17:40:43.318839188 +0930
@@ -33,7 +33,7 @@
#undef fflush
-#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
+#if defined _IO_EOF_SEEN || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
/* Clear the stream's ungetc buffer, preserving the value of ftello (fp). */
static void
@@ -72,7 +72,7 @@
#endif
-#if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */)
+#if ! (defined _IO_EOF_SEEN || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */)
# if (defined __sferror || defined __DragonFly__ || defined __ANDROID__) && defined __SNPT
/* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin, Android */
@@ -148,7 +148,7 @@
if (stream == NULL || ! freading (stream))
return fflush (stream);
-#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
+#if defined _IO_EOF_SEEN || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
clear_ungetc_buffer_preserving_position (stream);
diff -uNr m4-1.4.18/lib/fpending.c m4-1.4.18-glibc2.28_fix/lib/fpending.c
--- m4-1.4.18/lib/fpending.c 2017-01-01 00:24:41.000000000 +1030
+++ m4-1.4.18-glibc2.28_fix/lib/fpending.c 2019-06-24 17:40:43.319839191 +0930
@@ -32,7 +32,7 @@
/* Most systems provide FILE as a struct and the necessary bitmask in
<stdio.h>, because they need it for implementing getc() and putc() as
fast macros. */
-#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
+#if defined _IO_EOF_SEEN || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
return fp->_IO_write_ptr - fp->_IO_write_base;
#elif defined __sferror || defined __DragonFly__ || defined __ANDROID__
/* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin, Android */
diff -uNr m4-1.4.18/lib/fpurge.c m4-1.4.18-glibc2.28_fix/lib/fpurge.c
--- m4-1.4.18/lib/fpurge.c 2017-01-01 00:24:41.000000000 +1030
+++ m4-1.4.18-glibc2.28_fix/lib/fpurge.c 2019-06-24 17:40:43.319839191 +0930
@@ -62,7 +62,7 @@
/* Most systems provide FILE as a struct and the necessary bitmask in
<stdio.h>, because they need it for implementing getc() and putc() as
fast macros. */
-# if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
+# if defined _IO_EOF_SEEN || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
fp->_IO_read_end = fp->_IO_read_ptr;
fp->_IO_write_ptr = fp->_IO_write_base;
/* Avoid memory leak when there is an active ungetc buffer. */
diff -uNr m4-1.4.18/lib/freadahead.c m4-1.4.18-glibc2.28_fix/lib/freadahead.c
--- m4-1.4.18/lib/freadahead.c 2017-01-01 00:24:41.000000000 +1030
+++ m4-1.4.18-glibc2.28_fix/lib/freadahead.c 2019-06-24 17:40:43.319839191 +0930
@@ -25,7 +25,7 @@
size_t
freadahead (FILE *fp)
{
-#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
+#if defined _IO_EOF_SEEN || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
if (fp->_IO_write_ptr > fp->_IO_write_base)
return 0;
return (fp->_IO_read_end - fp->_IO_read_ptr)
diff -uNr m4-1.4.18/lib/freading.c m4-1.4.18-glibc2.28_fix/lib/freading.c
--- m4-1.4.18/lib/freading.c 2017-01-01 00:24:41.000000000 +1030
+++ m4-1.4.18-glibc2.28_fix/lib/freading.c 2019-06-24 17:40:43.320839194 +0930
@@ -31,7 +31,7 @@
/* Most systems provide FILE as a struct and the necessary bitmask in
<stdio.h>, because they need it for implementing getc() and putc() as
fast macros. */
-# if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
+# if defined _IO_EOF_SEEN || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
return ((fp->_flags & _IO_NO_WRITES) != 0
|| ((fp->_flags & (_IO_NO_READS | _IO_CURRENTLY_PUTTING)) == 0
&& fp->_IO_read_base != NULL));
diff -uNr m4-1.4.18/lib/fseeko.c m4-1.4.18-glibc2.28_fix/lib/fseeko.c
--- m4-1.4.18/lib/fseeko.c 2017-01-01 00:24:41.000000000 +1030
+++ m4-1.4.18-glibc2.28_fix/lib/fseeko.c 2019-06-24 17:40:43.321839198 +0930
@@ -47,7 +47,7 @@
#endif
/* These tests are based on fpurge.c. */
-#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
+#if defined _IO_EOF_SEEN || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
if (fp->_IO_read_end == fp->_IO_read_ptr
&& fp->_IO_write_ptr == fp->_IO_write_base
&& fp->_IO_save_base == NULL)
@@ -123,7 +123,7 @@
return -1;
}
-#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
+#if defined _IO_EOF_SEEN || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
fp->_flags &= ~_IO_EOF_SEEN;
fp->_offset = pos;
#elif defined __sferror || defined __DragonFly__ || defined __ANDROID__
diff -uNr m4-1.4.18/lib/stdio-impl.h m4-1.4.18-glibc2.28_fix/lib/stdio-impl.h
--- m4-1.4.18/lib/stdio-impl.h 2017-01-01 00:24:42.000000000 +1030
+++ m4-1.4.18-glibc2.28_fix/lib/stdio-impl.h 2019-06-24 17:40:44.192841833 +0930
@@ -138,3 +138,4 @@
# define _IOERR 0x10
#endif
+#define _IO_IN_BACKUP 0x100
m4-1.4.18.tar.xz
deleted
100644 → 0
View file @
8eb13cd2
File deleted
m4-1.4.19.tar.xz
0 → 100644
View file @
ff4a8eaa
File added
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment