Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
From 2755b093cd69fb980ecb22d905cc6658c895d44a Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Ondr=CC=8Cej=20Sury=CC=81?= <ondrej@isc.org>
|
||||
Date: Tue, 26 Apr 2022 15:24:18 +0200
|
||||
Subject: [PATCH] ax_prog_cc_for_build: Properly restore ac_cv_c_compiler_gnu
|
||||
|
||||
The ac_cv_c_compiler_gnu wasn't properly restored to original
|
||||
state (f.e. yes), but value of the "save" variable was used:
|
||||
|
||||
ac_cv_c_compiler_gnu=${ac_cv_c_compiler_gnu=saved_ac_cv_c_compiler_gnu}
|
||||
|
||||
Additionally, we don't need to cache the saved_ac_cv_c_compiler_gnu
|
||||
and was_set_ac_cv_c_compiler_gnu, so remove the ac_cv_ from their names.
|
||||
|
||||
This would not manifest on a single run, but any repeated run with cache
|
||||
file (./configure -C) would be broken.
|
||||
|
||||
Upstream: https://github.com/autoconf-archive/autoconf-archive/commit/13018ae91007cfa1b1a3877db8ef5cb233af1ae6
|
||||
[Thomas: partial backport only. Most of the commit is already in bind,
|
||||
except the serial number update, which is needed for follow-up commits
|
||||
to apply cleanly]
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
---
|
||||
m4/ax_prog_cc_for_build.m4 | 12 ++++++------
|
||||
1 file changed, 6 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/m4/ax_prog_cc_for_build.m4 b/m4/ax_prog_cc_for_build.m4
|
||||
index f6518db..1db8d73 100644
|
||||
--- a/m4/ax_prog_cc_for_build.m4
|
||||
+++ b/m4/ax_prog_cc_for_build.m4
|
||||
@@ -32,7 +32,7 @@
|
||||
# and this notice are preserved. This file is offered as-is, without any
|
||||
# warranty.
|
||||
|
||||
-#serial 20
|
||||
+#serial 21
|
||||
|
||||
AU_ALIAS([AC_PROG_CC_FOR_BUILD], [AX_PROG_CC_FOR_BUILD])
|
||||
AC_DEFUN([AX_PROG_CC_FOR_BUILD], [dnl
|
||||
--
|
||||
2.55.0
|
||||
|
||||
38
package/bind/0002-Fix-typos-found-by-codespell.patch
Normal file
38
package/bind/0002-Fix-typos-found-by-codespell.patch
Normal file
@@ -0,0 +1,38 @@
|
||||
From ce23f1b3db8be19ca74589958a9af56c3ee888d0 Mon Sep 17 00:00:00 2001
|
||||
From: Dimitri Papadopoulos
|
||||
<3234522+DimitriPapadopoulos@users.noreply.github.com>
|
||||
Date: Mon, 25 Dec 2023 13:04:00 +0100
|
||||
Subject: [PATCH] Fix typos found by codespell
|
||||
|
||||
Upstream: https://github.com/autoconf-archive/autoconf-archive/commit/7d383b7aea765a8bc557ec6e88461c6da2db034e
|
||||
[Thomas: partial backport, only changes to ax_prog_cc_for_build.m4 were kept]
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
---
|
||||
m4/ax_prog_cc_for_build.m4 | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/m4/ax_prog_cc_for_build.m4 b/m4/ax_prog_cc_for_build.m4
|
||||
index 1db8d73..2f44436 100644
|
||||
--- a/m4/ax_prog_cc_for_build.m4
|
||||
+++ b/m4/ax_prog_cc_for_build.m4
|
||||
@@ -32,7 +32,7 @@
|
||||
# and this notice are preserved. This file is offered as-is, without any
|
||||
# warranty.
|
||||
|
||||
-#serial 21
|
||||
+#serial 22
|
||||
|
||||
AU_ALIAS([AC_PROG_CC_FOR_BUILD], [AX_PROG_CC_FOR_BUILD])
|
||||
AC_DEFUN([AX_PROG_CC_FOR_BUILD], [dnl
|
||||
@@ -141,7 +141,7 @@ popdef([ac_cv_prog_gcc])dnl
|
||||
popdef([ac_cv_prog_CPP])dnl
|
||||
|
||||
dnl restore global variables ac_ext, ac_cpp, ac_compile,
|
||||
-dnl ac_link, ac_compiler_gnu (dependant on the current
|
||||
+dnl ac_link, ac_compiler_gnu (dependent on the current
|
||||
dnl language after popping):
|
||||
AC_LANG_POP([C])
|
||||
|
||||
--
|
||||
2.55.0
|
||||
|
||||
@@ -0,0 +1,131 @@
|
||||
From 13a06f535e2bf7176b0adf6a0d92dc40731275b0 Mon Sep 17 00:00:00 2001
|
||||
From: Kang-Che Sung <explorer09@gmail.com>
|
||||
Date: Wed, 16 Oct 2024 21:54:20 +0800
|
||||
Subject: [PATCH] ax_prog_cc_for_build: Fix BUILD_{EXE,OBJ}EXT for Autoconf
|
||||
2.70
|
||||
|
||||
Autoconf 2.70 introduced a change in AC_SUBST behavior that the variable
|
||||
name in AC_SUBST no longer gets macro expanded. This breaks the rename
|
||||
syntaxes of BUILD_EXEEXT and BUILD_OBJEXT in AX_PROG_CC_FOR_BUILD.
|
||||
Change to an alternative approach of assigning BUILD_EXEEXT and
|
||||
BUILD_OBJEXT manually. The values of EXEEXT and OBJEXT have to be fixed
|
||||
too at the end of the AX_PROG_CC_FOR_BUILD code.
|
||||
|
||||
Upstream: https://github.com/autoconf-archive/autoconf-archive/commit/6702aeaa9c824d463c3f31d5c31c5eff2646f552
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
---
|
||||
m4/ax_prog_cc_for_build.m4 | 40 +++++++++++++++++++++++++++-----------
|
||||
1 file changed, 29 insertions(+), 11 deletions(-)
|
||||
|
||||
diff --git a/m4/ax_prog_cc_for_build.m4 b/m4/ax_prog_cc_for_build.m4
|
||||
index 2f44436..22e02d5 100644
|
||||
--- a/m4/ax_prog_cc_for_build.m4
|
||||
+++ b/m4/ax_prog_cc_for_build.m4
|
||||
@@ -32,7 +32,7 @@
|
||||
# and this notice are preserved. This file is offered as-is, without any
|
||||
# warranty.
|
||||
|
||||
-#serial 22
|
||||
+#serial 23
|
||||
|
||||
AU_ALIAS([AC_PROG_CC_FOR_BUILD], [AX_PROG_CC_FOR_BUILD])
|
||||
AC_DEFUN([AX_PROG_CC_FOR_BUILD], [dnl
|
||||
@@ -51,8 +51,6 @@ pushdef([ac_cv_prog_cc_works], ac_cv_build_prog_cc_works)dnl
|
||||
pushdef([ac_cv_prog_cc_cross], ac_cv_build_prog_cc_cross)dnl
|
||||
pushdef([ac_cv_prog_cc_g], ac_cv_build_prog_cc_g)dnl
|
||||
pushdef([ac_cv_c_compiler_gnu], ac_cv_build_c_compiler_gnu)dnl
|
||||
-pushdef([ac_cv_exeext], ac_cv_build_exeext)dnl
|
||||
-pushdef([ac_cv_objext], ac_cv_build_objext)dnl
|
||||
pushdef([ac_exeext], ac_build_exeext)dnl
|
||||
pushdef([ac_objext], ac_build_objext)dnl
|
||||
pushdef([CC], CC_FOR_BUILD)dnl
|
||||
@@ -60,9 +58,7 @@ pushdef([CPP], CPP_FOR_BUILD)dnl
|
||||
pushdef([GCC], GCC_FOR_BUILD)dnl
|
||||
pushdef([CFLAGS], CFLAGS_FOR_BUILD)dnl
|
||||
pushdef([CPPFLAGS], CPPFLAGS_FOR_BUILD)dnl
|
||||
-pushdef([EXEEXT], BUILD_EXEEXT)dnl
|
||||
pushdef([LDFLAGS], LDFLAGS_FOR_BUILD)dnl
|
||||
-pushdef([OBJEXT], BUILD_OBJEXT)dnl
|
||||
pushdef([host], build)dnl
|
||||
pushdef([host_alias], build_alias)dnl
|
||||
pushdef([host_cpu], build_cpu)dnl
|
||||
@@ -77,6 +73,24 @@ pushdef([ac_tool_prefix], ac_build_tool_prefix)dnl
|
||||
pushdef([am_cv_CC_dependencies_compiler_type], am_cv_build_CC_dependencies_compiler_type)dnl
|
||||
pushdef([am_cv_prog_cc_c_o], am_cv_build_prog_cc_c_o)dnl
|
||||
pushdef([cross_compiling], cross_compiling_build)dnl
|
||||
+dnl
|
||||
+dnl These variables are problematic to rename by M4 macros, so we save
|
||||
+dnl their values in alternative names, and restore the values later.
|
||||
+dnl
|
||||
+dnl _AC_COMPILER_EXEEXT and _AC_COMPILER_OBJEXT internally call
|
||||
+dnl AC_SUBST which prevents the renaming of EXEEXT and OBJEXT
|
||||
+dnl variables. It's not a good idea to rename ac_cv_exeext and
|
||||
+dnl ac_cv_objext either as they're related.
|
||||
+dnl Renaming ac_exeext and ac_objext is safe though.
|
||||
+dnl
|
||||
+ac_cv_host_exeext=$ac_cv_exeext
|
||||
+AS_VAR_SET_IF([ac_cv_build_exeext],
|
||||
+ [ac_cv_exeext=$ac_cv_build_exeext],
|
||||
+ [AS_UNSET([ac_cv_exeext])])
|
||||
+ac_cv_host_objext=$ac_cv_objext
|
||||
+AS_VAR_SET_IF([ac_cv_build_objext],
|
||||
+ [ac_cv_objext=$ac_cv_build_objext],
|
||||
+ [AS_UNSET([ac_cv_objext])])
|
||||
|
||||
cross_compiling_build=no
|
||||
|
||||
@@ -104,6 +118,9 @@ _AC_COMPILER_EXEEXT
|
||||
_AC_COMPILER_OBJEXT
|
||||
AC_PROG_CPP
|
||||
|
||||
+BUILD_EXEEXT=$ac_cv_exeext
|
||||
+BUILD_OBJEXT=$ac_cv_objext
|
||||
+
|
||||
dnl Restore the old definitions
|
||||
dnl
|
||||
popdef([cross_compiling])dnl
|
||||
@@ -120,9 +137,7 @@ popdef([host_vendor])dnl
|
||||
popdef([host_cpu])dnl
|
||||
popdef([host_alias])dnl
|
||||
popdef([host])dnl
|
||||
-popdef([OBJEXT])dnl
|
||||
popdef([LDFLAGS])dnl
|
||||
-popdef([EXEEXT])dnl
|
||||
popdef([CPPFLAGS])dnl
|
||||
popdef([CFLAGS])dnl
|
||||
popdef([GCC])dnl
|
||||
@@ -130,8 +145,6 @@ popdef([CPP])dnl
|
||||
popdef([CC])dnl
|
||||
popdef([ac_objext])dnl
|
||||
popdef([ac_exeext])dnl
|
||||
-popdef([ac_cv_objext])dnl
|
||||
-popdef([ac_cv_exeext])dnl
|
||||
popdef([ac_cv_c_compiler_gnu])dnl
|
||||
popdef([ac_cv_prog_cc_g])dnl
|
||||
popdef([ac_cv_prog_cc_cross])dnl
|
||||
@@ -139,6 +152,11 @@ popdef([ac_cv_prog_cc_works])dnl
|
||||
popdef([ac_cv_prog_cc_c89])dnl
|
||||
popdef([ac_cv_prog_gcc])dnl
|
||||
popdef([ac_cv_prog_CPP])dnl
|
||||
+dnl
|
||||
+ac_cv_exeext=$ac_cv_host_exeext
|
||||
+EXEEXT=$ac_cv_host_exeext
|
||||
+ac_cv_objext=$ac_cv_host_objext
|
||||
+OBJEXT=$ac_cv_host_objext
|
||||
|
||||
dnl restore global variables ac_ext, ac_cpp, ac_compile,
|
||||
dnl ac_link, ac_compiler_gnu (dependent on the current
|
||||
@@ -147,8 +165,8 @@ AC_LANG_POP([C])
|
||||
|
||||
dnl Finally, set Makefile variables
|
||||
dnl
|
||||
-AC_SUBST(BUILD_EXEEXT)dnl
|
||||
-AC_SUBST(BUILD_OBJEXT)dnl
|
||||
+AC_SUBST([BUILD_EXEEXT])dnl
|
||||
+AC_SUBST([BUILD_OBJEXT])dnl
|
||||
AC_SUBST([CFLAGS_FOR_BUILD])dnl
|
||||
AC_SUBST([CPPFLAGS_FOR_BUILD])dnl
|
||||
AC_SUBST([LDFLAGS_FOR_BUILD])dnl
|
||||
--
|
||||
2.55.0
|
||||
|
||||
@@ -0,0 +1,93 @@
|
||||
From 9ee4288eec9a850730419064a6e8fb1b5c3e3883 Mon Sep 17 00:00:00 2001
|
||||
From: Kang-Che Sung <explorer09@gmail.com>
|
||||
Date: Wed, 16 Oct 2024 21:55:04 +0800
|
||||
Subject: [PATCH] ax_prog_cc_for_build: Tweak ac_cv_c_compiler_gnu code
|
||||
|
||||
Adjust the code of setting ac_cv_c_compiler_gnu to align with the code
|
||||
of ac_cv_exeext and ac_cv_objext. The solution is now permanent rather
|
||||
than just a workaround.
|
||||
|
||||
Upstream: https://github.com/autoconf-archive/autoconf-archive/commit/55aac85bdf705fd8f0a6b0fab1f0638052400f8f
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
---
|
||||
m4/ax_prog_cc_for_build.m4 | 28 +++++++++++-----------------
|
||||
1 file changed, 11 insertions(+), 17 deletions(-)
|
||||
|
||||
diff --git a/m4/ax_prog_cc_for_build.m4 b/m4/ax_prog_cc_for_build.m4
|
||||
index 22e02d5..9001fb4 100644
|
||||
--- a/m4/ax_prog_cc_for_build.m4
|
||||
+++ b/m4/ax_prog_cc_for_build.m4
|
||||
@@ -32,7 +32,7 @@
|
||||
# and this notice are preserved. This file is offered as-is, without any
|
||||
# warranty.
|
||||
|
||||
-#serial 23
|
||||
+#serial 24
|
||||
|
||||
AU_ALIAS([AC_PROG_CC_FOR_BUILD], [AX_PROG_CC_FOR_BUILD])
|
||||
AC_DEFUN([AX_PROG_CC_FOR_BUILD], [dnl
|
||||
@@ -50,7 +50,6 @@ pushdef([ac_cv_prog_gcc], ac_cv_build_prog_gcc)dnl
|
||||
pushdef([ac_cv_prog_cc_works], ac_cv_build_prog_cc_works)dnl
|
||||
pushdef([ac_cv_prog_cc_cross], ac_cv_build_prog_cc_cross)dnl
|
||||
pushdef([ac_cv_prog_cc_g], ac_cv_build_prog_cc_g)dnl
|
||||
-pushdef([ac_cv_c_compiler_gnu], ac_cv_build_c_compiler_gnu)dnl
|
||||
pushdef([ac_exeext], ac_build_exeext)dnl
|
||||
pushdef([ac_objext], ac_build_objext)dnl
|
||||
pushdef([CC], CC_FOR_BUILD)dnl
|
||||
@@ -91,6 +90,14 @@ ac_cv_host_objext=$ac_cv_objext
|
||||
AS_VAR_SET_IF([ac_cv_build_objext],
|
||||
[ac_cv_objext=$ac_cv_build_objext],
|
||||
[AS_UNSET([ac_cv_objext])])
|
||||
+dnl
|
||||
+dnl ac_cv_c_compiler_gnu is used in _AC_LANG_COMPILER_GNU (called by
|
||||
+dnl AC_PROG_CC) indirectly.
|
||||
+dnl
|
||||
+ac_cv_host_c_compiler_gnu=$ac_cv_c_compiler_gnu
|
||||
+AS_VAR_SET_IF([ac_cv_build_c_compiler_gnu],
|
||||
+ [ac_cv_c_compiler_gnu=$ac_cv_build_c_compiler_gnu],
|
||||
+ [AS_UNSET([ac_cv_c_compiler_gnu])])
|
||||
|
||||
cross_compiling_build=no
|
||||
|
||||
@@ -99,21 +106,7 @@ AS_IF([test -n "$build"], [ac_build_tool_prefix="$build-"],
|
||||
[test -n "$build_alias"],[ac_build_tool_prefix="$build_alias-"])
|
||||
|
||||
AC_LANG_PUSH([C])
|
||||
-
|
||||
-dnl The pushdef([ac_cv_c_compiler_gnu], ...) currently does not cover
|
||||
-dnl the use of this variable in _AC_LANG_COMPILER_GNU called by
|
||||
-dnl AC_PROG_CC. Unset this cache variable temporarily as a workaround.
|
||||
-was_set_c_compiler_gnu=${[ac_cv_c_compiler_gnu]+y}
|
||||
-AS_IF([test ${was_set_c_compiler_gnu}],
|
||||
- [saved_c_compiler_gnu=$[ac_cv_c_compiler_gnu]
|
||||
- AS_UNSET([[ac_cv_c_compiler_gnu]])])
|
||||
-
|
||||
AC_PROG_CC
|
||||
-
|
||||
-dnl Restore ac_cv_c_compiler_gnu
|
||||
-AS_IF([test ${was_set_c_compiler_gnu}],
|
||||
- [[ac_cv_c_compiler_gnu]=$[saved_c_compiler_gnu]])
|
||||
-
|
||||
_AC_COMPILER_EXEEXT
|
||||
_AC_COMPILER_OBJEXT
|
||||
AC_PROG_CPP
|
||||
@@ -145,7 +138,6 @@ popdef([CPP])dnl
|
||||
popdef([CC])dnl
|
||||
popdef([ac_objext])dnl
|
||||
popdef([ac_exeext])dnl
|
||||
-popdef([ac_cv_c_compiler_gnu])dnl
|
||||
popdef([ac_cv_prog_cc_g])dnl
|
||||
popdef([ac_cv_prog_cc_cross])dnl
|
||||
popdef([ac_cv_prog_cc_works])dnl
|
||||
@@ -157,6 +149,8 @@ ac_cv_exeext=$ac_cv_host_exeext
|
||||
EXEEXT=$ac_cv_host_exeext
|
||||
ac_cv_objext=$ac_cv_host_objext
|
||||
OBJEXT=$ac_cv_host_objext
|
||||
+ac_cv_c_compiler_gnu=$ac_cv_host_c_compiler_gnu
|
||||
+ac_compiler_gnu=$ac_cv_host_c_compiler_gnu
|
||||
|
||||
dnl restore global variables ac_ext, ac_cpp, ac_compile,
|
||||
dnl ac_link, ac_compiler_gnu (dependent on the current
|
||||
--
|
||||
2.55.0
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
From 205b621a9b01bd05921a5795d6b64b24f87377c7 Mon Sep 17 00:00:00 2001
|
||||
From: Kang-Che Sung <explorer09@gmail.com>
|
||||
Date: Wed, 16 Oct 2024 21:55:25 +0800
|
||||
Subject: [PATCH] ax_prog_cc_for_build: Fix ac_cv_prog_cc_c{99,11} regression
|
||||
|
||||
Fix regression where the ac_cv_prog_cc_c99 and ac_cv_prog_cc_c11 macros
|
||||
are not popped after the AX_PROG_CC_FOR_BUILD call. This can cause
|
||||
subsequents calls of AC_PROG_CC to use wrong cache variables to
|
||||
indicate C standard support.
|
||||
|
||||
(Regression from serial 19 (16790f97456a6c9b4319dd6ef7b73c9ebc8cae84).
|
||||
Note: It's unlikely for projects to call AC_PROG_CC again after
|
||||
AX_PROG_CC_FOR_BUILD, but such usage is valid.)
|
||||
|
||||
Upstream: https://github.com/autoconf-archive/autoconf-archive/commit/12ab63676b4bad9481cf36c119c1c4ffab0c0bc2
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
---
|
||||
m4/ax_prog_cc_for_build.m4 | 6 ++++--
|
||||
1 file changed, 4 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/m4/ax_prog_cc_for_build.m4 b/m4/ax_prog_cc_for_build.m4
|
||||
index 9001fb4..fd9b953 100644
|
||||
--- a/m4/ax_prog_cc_for_build.m4
|
||||
+++ b/m4/ax_prog_cc_for_build.m4
|
||||
@@ -32,7 +32,7 @@
|
||||
# and this notice are preserved. This file is offered as-is, without any
|
||||
# warranty.
|
||||
|
||||
-#serial 24
|
||||
+#serial 25
|
||||
|
||||
AU_ALIAS([AC_PROG_CC_FOR_BUILD], [AX_PROG_CC_FOR_BUILD])
|
||||
AC_DEFUN([AX_PROG_CC_FOR_BUILD], [dnl
|
||||
@@ -43,10 +43,10 @@ AC_REQUIRE([AC_CANONICAL_BUILD])dnl
|
||||
dnl Use the standard macros, but make them use other variable names
|
||||
dnl
|
||||
pushdef([ac_cv_prog_CPP], ac_cv_build_prog_CPP)dnl
|
||||
+pushdef([ac_cv_prog_gcc], ac_cv_build_prog_gcc)dnl
|
||||
pushdef([ac_cv_prog_cc_c89], ac_cv_build_prog_cc_c89)dnl
|
||||
pushdef([ac_cv_prog_cc_c99], ac_cv_build_prog_cc_c99)dnl
|
||||
pushdef([ac_cv_prog_cc_c11], ac_cv_build_prog_cc_c11)dnl
|
||||
-pushdef([ac_cv_prog_gcc], ac_cv_build_prog_gcc)dnl
|
||||
pushdef([ac_cv_prog_cc_works], ac_cv_build_prog_cc_works)dnl
|
||||
pushdef([ac_cv_prog_cc_cross], ac_cv_build_prog_cc_cross)dnl
|
||||
pushdef([ac_cv_prog_cc_g], ac_cv_build_prog_cc_g)dnl
|
||||
@@ -141,6 +141,8 @@ popdef([ac_exeext])dnl
|
||||
popdef([ac_cv_prog_cc_g])dnl
|
||||
popdef([ac_cv_prog_cc_cross])dnl
|
||||
popdef([ac_cv_prog_cc_works])dnl
|
||||
+popdef([ac_cv_prog_cc_c11])dnl
|
||||
+popdef([ac_cv_prog_cc_c99])dnl
|
||||
popdef([ac_cv_prog_cc_c89])dnl
|
||||
popdef([ac_cv_prog_gcc])dnl
|
||||
popdef([ac_cv_prog_CPP])dnl
|
||||
--
|
||||
2.55.0
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
From 00d6e2057fe3fa1f2b74c76605a09b227b7a1af9 Mon Sep 17 00:00:00 2001
|
||||
From: Kang-Che Sung <explorer09@gmail.com>
|
||||
Date: Wed, 16 Oct 2024 21:56:44 +0800
|
||||
Subject: [PATCH] ax_prog_cc_for_build: Support ac_{,cv_}build_prog_cc_stdc
|
||||
|
||||
Improve compatibility with Autoconf 2.70 and later. Add support for
|
||||
these variables for indicating build compiler capabilities:
|
||||
* ac_cv_build_prog_cc_stdc (corresponding to ac_cv_prog_cc_stdc;
|
||||
Autoconf 2.70)
|
||||
* ac_build_prog_cc_stdc (corresponding to ac_prog_cc_stdc;
|
||||
Autoconf 2.70)
|
||||
* ac_cv_build_prog_cc_c23 (corresponding to ac_cv_prog_cc_c23;
|
||||
Autoconf 2.73)
|
||||
|
||||
Upstream: https://github.com/autoconf-archive/autoconf-archive/commit/8a970ce96721f516fef4226e5eca8da341159765
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
---
|
||||
m4/ax_prog_cc_for_build.m4 | 8 +++++++-
|
||||
1 file changed, 7 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/m4/ax_prog_cc_for_build.m4 b/m4/ax_prog_cc_for_build.m4
|
||||
index fd9b953..4d1de99 100644
|
||||
--- a/m4/ax_prog_cc_for_build.m4
|
||||
+++ b/m4/ax_prog_cc_for_build.m4
|
||||
@@ -32,7 +32,7 @@
|
||||
# and this notice are preserved. This file is offered as-is, without any
|
||||
# warranty.
|
||||
|
||||
-#serial 25
|
||||
+#serial 26
|
||||
|
||||
AU_ALIAS([AC_PROG_CC_FOR_BUILD], [AX_PROG_CC_FOR_BUILD])
|
||||
AC_DEFUN([AX_PROG_CC_FOR_BUILD], [dnl
|
||||
@@ -47,9 +47,12 @@ pushdef([ac_cv_prog_gcc], ac_cv_build_prog_gcc)dnl
|
||||
pushdef([ac_cv_prog_cc_c89], ac_cv_build_prog_cc_c89)dnl
|
||||
pushdef([ac_cv_prog_cc_c99], ac_cv_build_prog_cc_c99)dnl
|
||||
pushdef([ac_cv_prog_cc_c11], ac_cv_build_prog_cc_c11)dnl
|
||||
+pushdef([ac_cv_prog_cc_c23], ac_cv_build_prog_cc_c23)dnl
|
||||
+pushdef([ac_cv_prog_cc_stdc], ac_cv_build_prog_cc_stdc)dnl
|
||||
pushdef([ac_cv_prog_cc_works], ac_cv_build_prog_cc_works)dnl
|
||||
pushdef([ac_cv_prog_cc_cross], ac_cv_build_prog_cc_cross)dnl
|
||||
pushdef([ac_cv_prog_cc_g], ac_cv_build_prog_cc_g)dnl
|
||||
+pushdef([ac_prog_cc_stdc], ac_build_prog_cc_stdc)dnl
|
||||
pushdef([ac_exeext], ac_build_exeext)dnl
|
||||
pushdef([ac_objext], ac_build_objext)dnl
|
||||
pushdef([CC], CC_FOR_BUILD)dnl
|
||||
@@ -138,9 +141,12 @@ popdef([CPP])dnl
|
||||
popdef([CC])dnl
|
||||
popdef([ac_objext])dnl
|
||||
popdef([ac_exeext])dnl
|
||||
+popdef([ac_prog_cc_stdc])dnl
|
||||
popdef([ac_cv_prog_cc_g])dnl
|
||||
popdef([ac_cv_prog_cc_cross])dnl
|
||||
popdef([ac_cv_prog_cc_works])dnl
|
||||
+popdef([ac_cv_prog_cc_stdc])dnl
|
||||
+popdef([ac_cv_prog_cc_c23])dnl
|
||||
popdef([ac_cv_prog_cc_c11])dnl
|
||||
popdef([ac_cv_prog_cc_c99])dnl
|
||||
popdef([ac_cv_prog_cc_c89])dnl
|
||||
--
|
||||
2.55.0
|
||||
|
||||
56
package/bind/Config.in
Normal file
56
package/bind/Config.in
Normal file
@@ -0,0 +1,56 @@
|
||||
config BR2_PACKAGE_BIND
|
||||
bool "bind"
|
||||
depends on BR2_USE_MMU # fork(), libcap, libuv
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libuv
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # libuv
|
||||
depends on BR2_INSTALL_LIBSTDCPP # liburcu
|
||||
depends on !BR2_STATIC_LIBS # libuv
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # libuv
|
||||
depends on BR2_PACKAGE_LIBURCU_ARCH_SUPPORTS # liburcu
|
||||
select BR2_PACKAGE_LIBCAP
|
||||
select BR2_PACKAGE_LIBURCU
|
||||
select BR2_PACKAGE_LIBUV
|
||||
select BR2_PACKAGE_OPENSSL
|
||||
help
|
||||
BIND (Berkeley Internet Name Domain) is an
|
||||
implementation of the Domain Name System (DNS) protocols
|
||||
and provides an openly redistributable reference
|
||||
implementation of the major components of the Domain
|
||||
Name System, including:
|
||||
|
||||
* a Domain Name System server (named)
|
||||
* a Domain Name System resolver library
|
||||
* tools for verifying the proper operation of the DNS
|
||||
server
|
||||
|
||||
The BIND DNS Server is used on the vast majority of name
|
||||
serving machines on the Internet, providing a robust and
|
||||
stable architecture on top of which an organization's naming
|
||||
architecture can be built. The resolver library included in
|
||||
the BIND distribution provides the standard APIs for
|
||||
translation between domain names and Internet addresses and is
|
||||
intended to be linked with applications requiring name
|
||||
service.
|
||||
|
||||
https://www.isc.org/bind/
|
||||
|
||||
if BR2_PACKAGE_BIND
|
||||
|
||||
config BR2_PACKAGE_BIND_SERVER
|
||||
bool "Install server components"
|
||||
help
|
||||
Install server components (named, lwresd)
|
||||
|
||||
config BR2_PACKAGE_BIND_TOOLS
|
||||
bool "Install tools"
|
||||
help
|
||||
Install tools (dig, host, nslookup, nsupdate)
|
||||
|
||||
endif
|
||||
|
||||
comment "bind needs a toolchain w/ NPTL, dynamic library, C++, gcc >= 4.9"
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || BR2_STATIC_LIBS \
|
||||
|| BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 \
|
||||
|| BR2_PACKAGE_LIBURCU_ARCH_SUPPORTS
|
||||
38
package/bind/S81named
Normal file
38
package/bind/S81named
Normal file
@@ -0,0 +1,38 @@
|
||||
#!/bin/sh
|
||||
|
||||
CONFIG=/etc/bind/named.conf
|
||||
DAEMON=/usr/sbin/named
|
||||
|
||||
[ -f $CONFIG ] || exit 0
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
if [ ! -f /etc/rndc.key ]; then
|
||||
printf "Initializing bind control key: "
|
||||
# if rndc.key is a symlink, the target must exist
|
||||
touch /etc/rndc.key
|
||||
rndc-confgen -a -r /dev/urandom 2>/dev/null && echo "OK" || echo "FAIL"
|
||||
fi
|
||||
printf "Starting domain name daemon: "
|
||||
start-stop-daemon -S -x $DAEMON -- -c $CONFIG -u named
|
||||
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
||||
;;
|
||||
stop)
|
||||
printf "Stopping domain name daemon: "
|
||||
rndc stop || start-stop-daemon -K -x $DAEMON
|
||||
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
||||
;;
|
||||
restart)
|
||||
$0 stop || true
|
||||
sleep 1
|
||||
$0 start
|
||||
;;
|
||||
reload|force-reload)
|
||||
rndc reload || $0 restart
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart|reload|force-reload}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
exit 0
|
||||
4
package/bind/bind.hash
Normal file
4
package/bind/bind.hash
Normal file
@@ -0,0 +1,4 @@
|
||||
# Verified from https://ftp.isc.org/isc/bind9/9.20.26/bind-9.20.26.tar.xz.asc
|
||||
# with key 706B6C28620E76F91D11F7DF510A642A06C52CEC
|
||||
sha256 55248def0f870c4c46b3de72978ea972615131516663188a4564dca1d20bf350 bind-9.20.26.tar.xz
|
||||
sha256 9734825d67a3ac967b2c2f7c9a83c9e5db1c2474dbe9599157c3a4188749ebd4 COPYRIGHT
|
||||
136
package/bind/bind.mk
Normal file
136
package/bind/bind.mk
Normal file
@@ -0,0 +1,136 @@
|
||||
################################################################################
|
||||
#
|
||||
# bind
|
||||
#
|
||||
################################################################################
|
||||
|
||||
BIND_VERSION = 9.20.26
|
||||
BIND_SOURCE= bind-$(BIND_VERSION).tar.xz
|
||||
BIND_SITE = https://ftp.isc.org/isc/bind9/$(BIND_VERSION)
|
||||
BIND_INSTALL_STAGING = YES
|
||||
BIND_LICENSE = MPL-2.0
|
||||
BIND_LICENSE_FILES = COPYRIGHT
|
||||
BIND_CPE_ID_VENDOR = isc
|
||||
BIND_SELINUX_MODULES = bind
|
||||
# Library CVE and not used by bind but used by ISC DHCP
|
||||
BIND_IGNORE_CVES += CVE-2019-6470
|
||||
BIND_TARGET_SERVER_SBIN = arpaname ddns-confgen dnssec-checkds dnssec-coverage
|
||||
BIND_TARGET_SERVER_SBIN += dnssec-importkey dnssec-keygen dnssec-revoke
|
||||
BIND_TARGET_SERVER_SBIN += dnssec-settime dnssec-verify genrandom
|
||||
BIND_TARGET_SERVER_SBIN += isc-hmac-fixup named-journalprint nsec3hash
|
||||
BIND_TARGET_SERVER_SBIN += lwresd named named-checkconf named-checkzone
|
||||
BIND_TARGET_SERVER_SBIN += named-compilezone rndc rndc-confgen dnssec-dsfromkey
|
||||
BIND_TARGET_SERVER_SBIN += dnssec-keyfromlabel dnssec-signzone tsig-keygen
|
||||
BIND_TARGET_TOOLS_BIN = dig host nslookup nsupdate
|
||||
# avoid potential Debian 12 libtool 2.4.7 bug
|
||||
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=929396
|
||||
BIND_AUTORECONF = YES
|
||||
BIND_CONF_OPTS = \
|
||||
--without-cmocka \
|
||||
--without-lmdb \
|
||||
--disable-doh \
|
||||
--disable-static \
|
||||
--with-openssl=$(STAGING_DIR)/usr
|
||||
|
||||
BIND_DEPENDENCIES = host-pkgconf libcap liburcu libuv openssl
|
||||
|
||||
BIND_CFLAGS = $(TARGET_CFLAGS)
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_101737),y)
|
||||
BIND_CFLAGS += -O0
|
||||
endif
|
||||
|
||||
BIND_CONF_OPTS += CFLAGS="$(BIND_CFLAGS)"
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
||||
BIND_CONF_OPTS += --with-zlib
|
||||
BIND_DEPENDENCIES += zlib
|
||||
else
|
||||
BIND_CONF_OPTS += --without-zlib
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_JEMALLOC),y)
|
||||
BIND_CONF_OPTS += --with-jemalloc
|
||||
BIND_DEPENDENCIES += jemalloc
|
||||
else
|
||||
BIND_CONF_OPTS += --without-jemalloc
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_JSON_C),y)
|
||||
BIND_CONF_OPTS += --with-json-c
|
||||
BIND_DEPENDENCIES += json-c
|
||||
else
|
||||
BIND_CONF_OPTS += --without-json-c
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBCAP),y)
|
||||
BIND_CONF_OPTS += --enable-linux-caps
|
||||
BIND_DEPENDENCIES += libcap
|
||||
else
|
||||
BIND_CONF_OPTS += --disable-linux-caps
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBIDN2),y)
|
||||
BIND_CONF_OPTS += --with-libidn2
|
||||
BIND_DEPENDENCIES += libidn2
|
||||
else
|
||||
BIND_CONF_OPTS += --without-libidn2
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBKRB5),y)
|
||||
BIND_CONF_OPTS += --with-gssapi=$(STAGING_DIR)/usr/bin/krb5-config
|
||||
BIND_DEPENDENCIES += libkrb5
|
||||
else
|
||||
BIND_CONF_OPTS += --with-gssapi=no
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBMAXMINDDB),y)
|
||||
BIND_CONF_OPTS += --enable-geoip --with-maxminddb
|
||||
BIND_DEPENDENCIES += libmaxminddb
|
||||
else
|
||||
BIND_CONF_OPTS += --disable-geoip
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBXML2),y)
|
||||
BIND_CONF_OPTS += --with-libxml2
|
||||
BIND_DEPENDENCIES += libxml2
|
||||
else
|
||||
BIND_CONF_OPTS += --with-libxml2=no
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_READLINE),y)
|
||||
BIND_DEPENDENCIES += readline
|
||||
else
|
||||
BIND_CONF_OPTS += --with-readline=no
|
||||
endif
|
||||
|
||||
define BIND_TARGET_REMOVE_SERVER
|
||||
rm -rf $(addprefix $(TARGET_DIR)/usr/sbin/, $(BIND_TARGET_SERVER_SBIN))
|
||||
endef
|
||||
|
||||
define BIND_TARGET_REMOVE_TOOLS
|
||||
rm -rf $(addprefix $(TARGET_DIR)/usr/bin/, $(BIND_TARGET_TOOLS_BIN))
|
||||
endef
|
||||
|
||||
ifeq ($(BR2_PACKAGE_BIND_SERVER),y)
|
||||
define BIND_INSTALL_INIT_SYSV
|
||||
$(INSTALL) -m 0755 -D $(BIND_PKGDIR)/S81named \
|
||||
$(TARGET_DIR)/etc/init.d/S81named
|
||||
endef
|
||||
define BIND_INSTALL_INIT_SYSTEMD
|
||||
$(INSTALL) -D -m 644 $(BIND_PKGDIR)/named.service \
|
||||
$(TARGET_DIR)/usr/lib/systemd/system/named.service
|
||||
endef
|
||||
else
|
||||
BIND_POST_INSTALL_TARGET_HOOKS += BIND_TARGET_REMOVE_SERVER
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_BIND_TOOLS),)
|
||||
BIND_POST_INSTALL_TARGET_HOOKS += BIND_TARGET_REMOVE_TOOLS
|
||||
endif
|
||||
|
||||
define BIND_USERS
|
||||
named -1 named -1 * /etc/bind - - BIND daemon
|
||||
endef
|
||||
|
||||
$(eval $(autotools-package))
|
||||
12
package/bind/named.service
Normal file
12
package/bind/named.service
Normal file
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=BIND Domain Name Server
|
||||
Documentation=man:named(8)
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/sbin/named -f -u named
|
||||
ExecReload=/usr/sbin/rndc reload
|
||||
ExecStop=/usr/sbin/rndc stop
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user