mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-23 21:43:30 +08:00
package/nut: bump to version 2.8.2
Drop patches (already in version) and so also drop autoreconf https://github.com/networkupstools/nut/releases/tag/v2.8.2 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
c8800c34fe
commit
4edd837ac0
@ -1,55 +0,0 @@
|
||||
From a743617099ea50fcce333a8a074751434d25b7ac Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Fri, 3 Nov 2023 18:29:29 +0100
|
||||
Subject: [PATCH] m4/nut_compiler_family.m4: fix cross-compilation
|
||||
|
||||
Do not use isystem with host paths when cross-compiling
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Upstream: https://github.com/networkupstools/nut/pull/2146
|
||||
---
|
||||
m4/nut_compiler_family.m4 | 28 +++++++++++++++-------------
|
||||
1 file changed, 15 insertions(+), 13 deletions(-)
|
||||
|
||||
diff --git a/m4/nut_compiler_family.m4 b/m4/nut_compiler_family.m4
|
||||
index f47b1ae9..99608bab 100644
|
||||
--- a/m4/nut_compiler_family.m4
|
||||
+++ b/m4/nut_compiler_family.m4
|
||||
@@ -178,19 +178,21 @@ dnl # confuse the compiler assumptions - along with its provided headers)...
|
||||
dnl # ideally; in practice however cppunit, net-snmp and some system include
|
||||
dnl # files do cause grief to picky compiler settings (more so from third
|
||||
dnl # party packages shipped via /usr/local/... namespace):
|
||||
- AS_IF([test "x$CLANGCC" = xyes -o "x$GCC" = xyes], [
|
||||
-dnl # CFLAGS="-isystem /usr/include $CFLAGS"
|
||||
- AS_IF([test -d /usr/local/include],
|
||||
- [CFLAGS="-isystem /usr/local/include $CFLAGS"])
|
||||
- AS_IF([test -d /usr/pkg/include],
|
||||
- [CFLAGS="-isystem /usr/pkg/include $CFLAGS"])
|
||||
- ])
|
||||
- AS_IF([test "x$CLANGXX" = xyes -o "x$GXX" = xyes], [
|
||||
-dnl # CXXFLAGS="-isystem /usr/include $CXXFLAGS"
|
||||
- AS_IF([test -d /usr/local/include],
|
||||
- [CXXFLAGS="-isystem /usr/local/include $CXXFLAGS"])
|
||||
- AS_IF([test -d /usr/pkg/include],
|
||||
- [CXXFLAGS="-isystem /usr/pkg/include $CXXFLAGS"])
|
||||
+ AS_IF([test "x$cross_compiling" != xyes], [
|
||||
+ AS_IF([test "x$CLANGCC" = xyes -o "x$GCC" = xyes], [
|
||||
+dnl # CFLAGS="-isystem /usr/include $CFLAGS"
|
||||
+ AS_IF([test -d /usr/local/include],
|
||||
+ [CFLAGS="-isystem /usr/local/include $CFLAGS"])
|
||||
+ AS_IF([test -d /usr/pkg/include],
|
||||
+ [CFLAGS="-isystem /usr/pkg/include $CFLAGS"])
|
||||
+ ])
|
||||
+ AS_IF([test "x$CLANGXX" = xyes -o "x$GXX" = xyes], [
|
||||
+dnl # CXXFLAGS="-isystem /usr/include $CXXFLAGS"
|
||||
+ AS_IF([test -d /usr/local/include],
|
||||
+ [CXXFLAGS="-isystem /usr/local/include $CXXFLAGS"])
|
||||
+ AS_IF([test -d /usr/pkg/include],
|
||||
+ [CXXFLAGS="-isystem /usr/pkg/include $CXXFLAGS"])
|
||||
+ ])
|
||||
])
|
||||
|
||||
dnl # Default to avoid noisy warnings on older compilers
|
||||
--
|
||||
2.42.0
|
||||
|
@ -1,106 +0,0 @@
|
||||
From 511ee899ee687216fa8fcf2231a60941b9e4cf81 Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Fri, 3 Nov 2023 14:34:54 +0100
|
||||
Subject: [PATCH] m4/nut_check_python.m4: allow overriding of
|
||||
PYTHON{2,3}_SITE_PACKAGES
|
||||
|
||||
Allow the end-user to override PYTHON{2,3}_SITE_PACKAGES as this can be
|
||||
useful when cross-compiling
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Upstream: https://github.com/networkupstools/nut/pull/2147
|
||||
---
|
||||
m4/nut_check_python.m4 | 60 +++++++++++++++++++++---------------------
|
||||
1 file changed, 30 insertions(+), 30 deletions(-)
|
||||
|
||||
diff --git a/m4/nut_check_python.m4 b/m4/nut_check_python.m4
|
||||
index 995a3e7c..7f29558e 100644
|
||||
--- a/m4/nut_check_python.m4
|
||||
+++ b/m4/nut_check_python.m4
|
||||
@@ -116,17 +116,17 @@ AC_DEFUN([NUT_CHECK_PYTHON],
|
||||
AM_CONDITIONAL([HAVE_PYTHON], [test -n "${PYTHON}" && test "${PYTHON}" != "no"])
|
||||
AS_IF([test -n "${PYTHON}" && test "${PYTHON}" != "no"], [
|
||||
export PYTHON
|
||||
- AC_MSG_CHECKING([python site-packages location])
|
||||
- PYTHON_SITE_PACKAGES="`${PYTHON} -c 'import site; print(site.getsitepackages().pop(0))'`"
|
||||
- AS_CASE(["$PYTHON_SITE_PACKAGES"],
|
||||
- [*:*], [
|
||||
- dnl Note: on Windows MSYS2 this embeds "C:/msys64/mingw..." into the string [nut#1584]
|
||||
- PYTHON_SITE_PACKAGES="`cd "$PYTHON_SITE_PACKAGES" && pwd`"
|
||||
- ]
|
||||
- )
|
||||
- AC_MSG_RESULT([${PYTHON_SITE_PACKAGES}])
|
||||
+ AC_CACHE_CHECK([python site-packages location], [nut_cv_PYTHON_SITE_PACKAGES], [
|
||||
+ nut_cv_PYTHON_SITE_PACKAGES="`${PYTHON} -c 'import site; print(site.getsitepackages().pop(0))'`"
|
||||
+ AS_CASE(["$nut_cv_PYTHON_SITE_PACKAGES"],
|
||||
+ [*:*], [
|
||||
+ dnl Note: on Windows MSYS2 this embeds "C:/msys64/mingw..." into the string [nut#1584]
|
||||
+ nut_cv_PYTHON_SITE_PACKAGES="`cd "$nut_cv_PYTHON_SITE_PACKAGES" && pwd`"
|
||||
+ ]
|
||||
+ )
|
||||
+ ])
|
||||
])
|
||||
- AC_SUBST([PYTHON_SITE_PACKAGES], [${PYTHON_SITE_PACKAGES}])
|
||||
+ AC_SUBST([PYTHON_SITE_PACKAGES], [${nut_cv_PYTHON_SITE_PACKAGES}])
|
||||
AM_CONDITIONAL([HAVE_PYTHON_SITE_PACKAGES], [test x"${PYTHON_SITE_PACKAGES}" != "x"])
|
||||
])
|
||||
])
|
||||
@@ -228,17 +228,17 @@ AC_DEFUN([NUT_CHECK_PYTHON2],
|
||||
AM_CONDITIONAL([HAVE_PYTHON2], [test -n "${PYTHON2}" && test "${PYTHON2}" != "no"])
|
||||
AS_IF([test -n "${PYTHON2}" && test "${PYTHON2}" != "no"], [
|
||||
export PYTHON2
|
||||
- AC_MSG_CHECKING([python2 site-packages location])
|
||||
- PYTHON2_SITE_PACKAGES="`${PYTHON2} -c 'import site; print(site.getsitepackages().pop(0))'`"
|
||||
- AS_CASE(["$PYTHON2_SITE_PACKAGES"],
|
||||
- [*:*], [
|
||||
- dnl Note: on Windows MSYS2 this embeds "C:/msys64/mingw..." into the string [nut#1584]
|
||||
- PYTHON2_SITE_PACKAGES="`cd "$PYTHON2_SITE_PACKAGES" && pwd`"
|
||||
- ]
|
||||
- )
|
||||
- AC_MSG_RESULT([${PYTHON2_SITE_PACKAGES}])
|
||||
+ AC_CACHE_CHECK([python2 site-packages location], [nut_cv_PYTHON2_SITE_PACKAGES], [
|
||||
+ nut_cv_PYTHON2_SITE_PACKAGES="`${PYTHON2} -c 'import site; print(site.getsitepackages().pop(0))'`"
|
||||
+ AS_CASE(["$nut_cv_PYTHON2_SITE_PACKAGES"],
|
||||
+ [*:*], [
|
||||
+ dnl Note: on Windows MSYS2 this embeds "C:/msys64/mingw..." into the string [nut#1584]
|
||||
+ nut_cv_PYTHON2_SITE_PACKAGES="`cd "$nut_cv_PYTHON2_SITE_PACKAGES" && pwd`"
|
||||
+ ]
|
||||
+ )
|
||||
+ ])
|
||||
])
|
||||
- AC_SUBST([PYTHON2_SITE_PACKAGES], [${PYTHON2_SITE_PACKAGES}])
|
||||
+ AC_SUBST([PYTHON2_SITE_PACKAGES], [${nut_cv_PYTHON2_SITE_PACKAGES}])
|
||||
AM_CONDITIONAL([HAVE_PYTHON2_SITE_PACKAGES], [test x"${PYTHON2_SITE_PACKAGES}" != "x"])
|
||||
])
|
||||
])
|
||||
@@ -340,17 +340,17 @@ AC_DEFUN([NUT_CHECK_PYTHON3],
|
||||
AM_CONDITIONAL([HAVE_PYTHON3], [test -n "${PYTHON3}" && test "${PYTHON3}" != "no"])
|
||||
AS_IF([test -n "${PYTHON3}" && test "${PYTHON3}" != "no"], [
|
||||
export PYTHON3
|
||||
- AC_MSG_CHECKING([python3 site-packages location])
|
||||
- PYTHON3_SITE_PACKAGES="`${PYTHON3} -c 'import site; print(site.getsitepackages().pop(0))'`"
|
||||
- AS_CASE(["$PYTHON3_SITE_PACKAGES"],
|
||||
- [*:*], [
|
||||
- dnl Note: on Windows MSYS2 this embeds "C:/msys64/mingw..." into the string [nut#1584]
|
||||
- PYTHON3_SITE_PACKAGES="`cd "$PYTHON3_SITE_PACKAGES" && pwd`"
|
||||
- ]
|
||||
- )
|
||||
- AC_MSG_RESULT([${PYTHON3_SITE_PACKAGES}])
|
||||
+ AC_CACHE_CHECK([python3 site-packages location], [nut_cv_PYTHON3_SITE_PACKAGES], [
|
||||
+ nut_cv_PYTHON3_SITE_PACKAGES="`${PYTHON3} -c 'import site; print(site.getsitepackages().pop(0))'`"
|
||||
+ AS_CASE(["$nut_cv_PYTHON3_SITE_PACKAGES"],
|
||||
+ [*:*], [
|
||||
+ dnl Note: on Windows MSYS2 this embeds "C:/msys64/mingw..." into the string [nut#1584]
|
||||
+ nut_cv_PYTHON3_SITE_PACKAGES="`cd "$nut_cv_PYTHON3_SITE_PACKAGES" && pwd`"
|
||||
+ ]
|
||||
+ )
|
||||
+ ])
|
||||
])
|
||||
- AC_SUBST([PYTHON3_SITE_PACKAGES], [${PYTHON3_SITE_PACKAGES}])
|
||||
+ AC_SUBST([PYTHON3_SITE_PACKAGES], [${nut_cv_PYTHON3_SITE_PACKAGES}])
|
||||
AM_CONDITIONAL([HAVE_PYTHON3_SITE_PACKAGES], [test x"${PYTHON3_SITE_PACKAGES}" != "x"])
|
||||
])
|
||||
])
|
||||
--
|
||||
2.42.0
|
||||
|
@ -1,5 +1,7 @@
|
||||
# From https://github.com/networkupstools/nut/releases/download/v2.8.2/nut-2.8.2.tar.gz.sha256
|
||||
sha256 e4b4b0cbe7dd39ba9097be7f7d787bb2fffbe35df64dff53b5fe393d659c597d nut-2.8.2.tar.gz
|
||||
|
||||
# Locally computed
|
||||
sha256 7da48ee23b1f0d8d72560bb0af84f5c5ae4dbe35452b84cb49840132e47f099c nut-2.8.1.tar.gz
|
||||
sha256 8a3de48b86daffcbe822dd94e514c8a77fe70f77c9005ffd9dcf1709dbdc80c7 COPYING
|
||||
sha256 ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6 LICENSE-GPL2
|
||||
sha256 fc82ca8b6fdb18d4e3e85cfd8ab58d1bcd3f1b29abe782895abd91d64763f8e7 LICENSE-GPL3
|
||||
|
@ -4,16 +4,13 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
NUT_VERSION = 2.8.1
|
||||
NUT_VERSION = 2.8.2
|
||||
NUT_SITE = https://github.com/networkupstools/nut/releases/download/v$(NUT_VERSION)
|
||||
NUT_LICENSE = GPL-2.0+, GPL-3.0+ (python scripts), GPL/Artistic (perl client)
|
||||
NUT_LICENSE_FILES = COPYING LICENSE-GPL2 LICENSE-GPL3
|
||||
NUT_SELINUX_MODULES = apache nut
|
||||
NUT_INSTALL_STAGING = YES
|
||||
NUT_DEPENDENCIES = host-pkgconf
|
||||
# We're patching m4/nut_compiler_family.m4
|
||||
# We're patching m4/nut_check_python.m4
|
||||
NUT_AUTORECONF = YES
|
||||
|
||||
# Put the PID files in a read-write place (/var/run is a tmpfs)
|
||||
# since the default location (/var/state/ups) maybe readonly.
|
||||
|
Loading…
Reference in New Issue
Block a user