Compare commits
6 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b6d275a31a | ||
|
|
b7e1b28dbd | ||
|
|
827d0b102b | ||
|
|
de96d41a62 | ||
|
|
5bfbab5a3d | ||
|
|
4707d20553 |
7 changed files with 35 additions and 225 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -12,3 +12,4 @@ kBuild-0.1.5-p2-src.tar.gz
|
|||
/kBuild-r3572.20221024.tar.gz
|
||||
/kBuild-r3589.20230220.tar.gz
|
||||
/kBuild-r3605.20240424.tar.gz
|
||||
/kBuild-r3674.20250422.tar.gz
|
||||
|
|
|
|||
14
kBuild-c23.patch
Normal file
14
kBuild-c23.patch
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
diff -Nurp kBuild.orig/src/kmk/glob/fnmatch.c kBuild/src/kmk/glob/fnmatch.c
|
||||
--- kBuild.orig/src/kmk/glob/fnmatch.c 2025-04-25 21:54:33.000000000 +0100
|
||||
+++ kBuild/src/kmk/glob/fnmatch.c 2025-04-25 23:20:55.477680324 +0100
|
||||
@@ -120,10 +120,6 @@ USA. */
|
||||
/* Avoid depending on library functions or files
|
||||
whose names are inconsistent. */
|
||||
|
||||
-# if !defined _LIBC && !defined getenv && !defined _MSC_VER
|
||||
-extern char *getenv ();
|
||||
-# endif
|
||||
-
|
||||
# ifndef errno
|
||||
extern int errno;
|
||||
# endif
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
The eval_buffer function expects the end of the string as the
|
||||
(optional) last argument, not its length.
|
||||
|
||||
Index: src/kmk/loadapi.c
|
||||
===================================================================
|
||||
--- src/kmk/loadapi.c (revision 3600)
|
||||
+++ src/kmk/loadapi.c (working copy)
|
||||
@@ -59,7 +59,7 @@
|
||||
install_variable_buffer (&pbuf, &plen);
|
||||
|
||||
s = xstrdup (buffer);
|
||||
- eval_buffer (s, flp IF_WITH_VALUE_LENGTH_PARAM (strlen (s) /** @todo suboptimal */));
|
||||
+ eval_buffer (s, flp IF_WITH_VALUE_LENGTH_PARAM (s + strlen (s) /** @todo suboptimal */));
|
||||
free (s);
|
||||
|
||||
restore_variable_buffer (pbuf, plen);
|
||||
151
kBuild-c99.patch
151
kBuild-c99.patch
|
|
@ -1,151 +0,0 @@
|
|||
Do not treat <strings.h> as an umbrella header for <string.h>
|
||||
The two are distinct on GNU/Linux.
|
||||
|
||||
Also add missing #include <string.h> in some files.
|
||||
|
||||
diff --git a/src/sed/lib/getline.c b/src/sed/lib/getline.c
|
||||
index 4cb9d45b..f39c363f 100644
|
||||
--- a/src/sed/lib/getline.c
|
||||
+++ b/src/sed/lib/getline.c
|
||||
@@ -9,10 +9,10 @@
|
||||
#include <stdio.h>
|
||||
#undef getline /* bird */
|
||||
|
||||
+#include <string.h>
|
||||
+
|
||||
#ifdef HAVE_STRINGS_H
|
||||
# include <strings.h>
|
||||
-#else
|
||||
-# include <string.h>
|
||||
#endif /* HAVE_STRINGS_H */
|
||||
|
||||
#ifdef HAVE_STDLIB_H
|
||||
diff --git a/src/sed/lib/mkstemp.c b/src/sed/lib/mkstemp.c
|
||||
index 5b00205c..f36f7ca4 100644
|
||||
--- a/src/sed/lib/mkstemp.c
|
||||
+++ b/src/sed/lib/mkstemp.c
|
||||
@@ -2,10 +2,10 @@
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
+#include <string.h>
|
||||
+
|
||||
#ifdef HAVE_STRINGS_H
|
||||
# include <strings.h>
|
||||
-#else
|
||||
-# include <string.h>
|
||||
#endif /* HAVE_STRINGS_H */
|
||||
|
||||
#ifdef HAVE_STDLIB_H
|
||||
diff --git a/src/sed/lib/utils.c b/src/sed/lib/utils.c
|
||||
index 41c61aaf..48a8b57f 100644
|
||||
--- a/src/sed/lib/utils.c
|
||||
+++ b/src/sed/lib/utils.c
|
||||
@@ -25,10 +25,10 @@
|
||||
extern int errno;
|
||||
#endif
|
||||
|
||||
+#include <string.h>
|
||||
+
|
||||
#ifdef HAVE_STRINGS_H
|
||||
# include <strings.h>
|
||||
-#else
|
||||
-# include <string.h>
|
||||
#endif /* HAVE_STRINGS_H */
|
||||
|
||||
#ifdef HAVE_STDLIB_H
|
||||
diff --git a/src/sed/sed/compile.c b/src/sed/sed/compile.c
|
||||
index 0ecc2fe2..064bb350 100644
|
||||
--- a/src/sed/sed/compile.c
|
||||
+++ b/src/sed/sed/compile.c
|
||||
@@ -22,14 +22,13 @@
|
||||
#include "strverscmp.h"
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
+#include <string.h>
|
||||
|
||||
#ifdef HAVE_STRINGS_H
|
||||
# include <strings.h>
|
||||
# ifdef HAVE_MEMORY_H
|
||||
# include <memory.h>
|
||||
# endif
|
||||
-#else
|
||||
-# include <string.h>
|
||||
#endif /* HAVE_STRINGS_H */
|
||||
|
||||
#ifdef HAVE_STDLIB_H
|
||||
diff --git a/src/sed/sed/execute.c b/src/sed/sed/execute.c
|
||||
index c9038f4f..09080b5b 100644
|
||||
--- a/src/sed/sed/execute.c
|
||||
+++ b/src/sed/sed/execute.c
|
||||
@@ -24,6 +24,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
+#include <string.h>
|
||||
|
||||
#include <errno.h>
|
||||
#ifndef errno
|
||||
@@ -46,8 +47,6 @@ extern int errno;
|
||||
|
||||
#ifdef HAVE_STRINGS_H
|
||||
# include <strings.h>
|
||||
-#else
|
||||
-# include <string.h>
|
||||
#endif /*HAVE_STRINGS_H*/
|
||||
#ifdef HAVE_MEMORY_H
|
||||
# include <memory.h>
|
||||
diff --git a/src/sed/sed/fmt.c b/src/sed/sed/fmt.c
|
||||
index 64600a06..4374070e 100644
|
||||
--- a/src/sed/sed/fmt.c
|
||||
+++ b/src/sed/sed/fmt.c
|
||||
@@ -22,6 +22,7 @@
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
#include <sys/types.h>
|
||||
+#include <string.h>
|
||||
|
||||
#if HAVE_LIMITS_H
|
||||
# include <limits.h>
|
||||
diff --git a/src/sed/sed/mbcs.c b/src/sed/sed/mbcs.c
|
||||
index 37565472..79e3f843 100644
|
||||
--- a/src/sed/sed/mbcs.c
|
||||
+++ b/src/sed/sed/mbcs.c
|
||||
@@ -17,6 +17,7 @@
|
||||
|
||||
#include "sed.h"
|
||||
#include <stdlib.h>
|
||||
+#include <string.h>
|
||||
|
||||
int mb_cur_max;
|
||||
|
||||
diff --git a/src/sed/sed/regexp.c b/src/sed/sed/regexp.c
|
||||
index d4e7437c..a007494d 100644
|
||||
--- a/src/sed/sed/regexp.c
|
||||
+++ b/src/sed/sed/regexp.c
|
||||
@@ -19,6 +19,7 @@
|
||||
|
||||
#include <ctype.h>
|
||||
#include <stdio.h>
|
||||
+#include <string.h>
|
||||
#ifdef HAVE_STDLIB_H
|
||||
# include <stdlib.h>
|
||||
#endif
|
||||
diff --git a/src/sed/sed/sed.c b/src/sed/sed/sed.c
|
||||
index b3bc2ea2..3829e2c6 100644
|
||||
--- a/src/sed/sed/sed.c
|
||||
+++ b/src/sed/sed/sed.c
|
||||
@@ -22,12 +22,10 @@
|
||||
|
||||
#include "sed.h"
|
||||
|
||||
-
|
||||
#include <stdio.h>
|
||||
+#include <string.h>
|
||||
#ifdef HAVE_STRINGS_H
|
||||
# include <strings.h>
|
||||
-#else
|
||||
-# include <string.h>
|
||||
#endif /*HAVE_STRINGS_H*/
|
||||
#ifdef HAVE_MEMORY_H
|
||||
# include <memory.h>
|
||||
|
|
@ -1,48 +0,0 @@
|
|||
Fix some typical C99 compatibility issues in old configure scripts.
|
||||
|
||||
diff --git a/src/sed/config/getline.m4 b/src/sed/config/getline.m4
|
||||
index ff8b5f4b..52d2e3e7 100644
|
||||
--- a/src/sed/config/getline.m4
|
||||
+++ b/src/sed/config/getline.m4
|
||||
@@ -27,7 +27,7 @@ AC_DEFUN([AM_FUNC_GETLINE],
|
||||
if (!in)
|
||||
return 1;
|
||||
len = getline (&line, &siz, in);
|
||||
- exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
|
||||
+ return (len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1;
|
||||
}
|
||||
], am_cv_func_working_getline=yes dnl The library version works.
|
||||
, am_cv_func_working_getline=no dnl The library version does NOT work.
|
||||
diff --git a/src/sed/configure b/src/sed/configure
|
||||
index 0b01618f..b1172113 100755
|
||||
--- a/src/sed/configure
|
||||
+++ b/src/sed/configure
|
||||
@@ -2593,7 +2593,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; }; then
|
||||
for ac_declaration in \
|
||||
- '' \
|
||||
+ '#include <stdlib.h>' \
|
||||
'extern "C" void std::exit (int) throw (); using std::exit;' \
|
||||
'extern "C" void std::exit (int); using std::exit;' \
|
||||
'extern "C" void exit (int) throw ();' \
|
||||
@@ -3378,8 +3378,8 @@ main ()
|
||||
for (i = 0; i < 256; i++)
|
||||
if (XOR (islower (i), ISLOWER (i))
|
||||
|| toupper (i) != TOUPPER (i))
|
||||
- exit(2);
|
||||
- exit (0);
|
||||
+ return 2;
|
||||
+ return 0;
|
||||
}
|
||||
_ACEOF
|
||||
rm -f conftest$ac_exeext
|
||||
@@ -5747,7 +5747,7 @@ cat >>conftest.$ac_ext <<_ACEOF
|
||||
if (!in)
|
||||
return 1;
|
||||
len = getline (&line, &siz, in);
|
||||
- exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
|
||||
+ return (len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1;
|
||||
}
|
||||
|
||||
_ACEOF
|
||||
28
kBuild.spec
28
kBuild.spec
|
|
@ -1,12 +1,13 @@
|
|||
%global svn_revision 3605
|
||||
%global svn_date 20240424
|
||||
%global svn_revision 3674
|
||||
%global svn_date 20250422
|
||||
|
||||
Name: kBuild
|
||||
Version: 0.1.9998%{?svn_revision:.r%{svn_revision}}
|
||||
Release: 2%{?svn_date:.%{svn_date}}%{?dist}
|
||||
Summary: A cross-platform build environment
|
||||
|
||||
License: BSD and GPLv2+
|
||||
# Automatically converted from old format: BSD and GPLv2+ - review is highly recommended.
|
||||
License: LicenseRef-Callaway-BSD AND GPL-2.0-or-later
|
||||
# most tools are from NetBSD, some are from FreeBSD,
|
||||
# and make and sed are from GNU
|
||||
URL: http://svn.netlabs.org/kbuild
|
||||
|
|
@ -18,11 +19,9 @@ Patch6: kbuild-dummy_noreturn.diff
|
|||
Patch8: kBuild-0.1.9998-portme.patch
|
||||
Patch10: assert.patch
|
||||
Patch11: relax_automake_version.patch
|
||||
Patch12: kBuild-configure-c99.patch
|
||||
Patch13: kBuild-c99.patch
|
||||
Patch14: changeset_3572.diff
|
||||
Patch15: changeset_trunk_3566.diff
|
||||
Patch16: kBuild-c99-2.patch
|
||||
Patch16: kBuild-c23.patch
|
||||
|
||||
BuildRequires: make
|
||||
BuildRequires: gcc
|
||||
|
|
@ -63,14 +62,12 @@ repository.
|
|||
%if 0%{?rhel} && 0%{?rhel} <= 7
|
||||
%patch -P11 -p1
|
||||
%endif
|
||||
%patch -P12 -p1
|
||||
%patch -P13 -p1
|
||||
%if 0%{?rhel} && 0%{?rhel} <= 7
|
||||
# we need revert this 2 commits to build VBox 6 on el7
|
||||
%patch -P14 -p1 -R -b .revert
|
||||
%patch -P15 -p1 -R -b .revert2
|
||||
%endif
|
||||
%patch -P16 -p0
|
||||
%patch -P16 -p1
|
||||
|
||||
%build
|
||||
echo KBUILD_SVN_URL := http://svn.netlabs.org/repos/kbuild/trunk > SvnInfo.kmk
|
||||
|
|
@ -114,6 +111,19 @@ pod2man -c 'kBuild for Fedora/EPEL GNU/Linux' \
|
|||
|
||||
|
||||
%changelog
|
||||
* Thu Jul 24 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9998.r3674-2.20250422
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Fri Apr 25 2025 Sérgio Basto <sergio@serjux.com> - 0.1.9998.r3674-1.20250422
|
||||
- Update to Revision 3674
|
||||
- (rhbz#2340684) Fix FTBFS
|
||||
|
||||
* Fri Jan 17 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9998.r3605-4.20240424
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||
|
||||
* Mon Sep 02 2024 Miroslav Suchý <msuchy@redhat.com> - 0.1.9998.r3605-3.20240424
|
||||
- convert license to SPDX
|
||||
|
||||
* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9998.r3605-2.20240424
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (kBuild-r3605.20240424.tar.gz) = 54cee210840ae05819f8b80f4786d6196d55fb2d8237173c57c95905e224ed312daa3d32903bb858d08e6a8fabdd20bea7a1330104efeedbf5e31397f879c9c5
|
||||
SHA512 (kBuild-r3674.20250422.tar.gz) = dfb52548f896281ac7473a2ebed93e939ae65e6b22101f16a27d36367a90304a3b0aa67f5470d50af1a37333865f570cc447ac7537250fc0fe57746d6c6ba219
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue