mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-29 01:21:02 +02:00
net-misc/rsync: Sync with Gentoo
It's from Gentoo commit 7a1ecd6cc46b1f97eef4b3d79c1bb03d41c133d0.
This commit is contained in:
parent
7a2868dc94
commit
5c8d6b597f
25
sdk_container/src/third_party/portage-stable/net-misc/rsync/files/rsync-3.2.4-notpedantic.patch
vendored
Normal file
25
sdk_container/src/third_party/portage-stable/net-misc/rsync/files/rsync-3.2.4-notpedantic.patch
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
diff -ruN rsync-3.2.4.orig/configure.ac rsync-3.2.4/configure.ac
|
||||
--- rsync-3.2.4.orig/configure.ac 2022-12-01 22:26:34.856659562 +0100
|
||||
+++ rsync-3.2.4/configure.ac 2022-12-01 22:31:43.849290989 +0100
|
||||
@@ -1067,21 +1067,6 @@
|
||||
with_included_popt=yes
|
||||
fi
|
||||
|
||||
-if test x"$GCC" = x"yes"; then
|
||||
- if test x"$with_included_popt" != x"yes"; then
|
||||
- # Turn pedantic warnings into errors to ensure an array-init overflow is an error.
|
||||
- CFLAGS="$CFLAGS -pedantic-errors"
|
||||
- else
|
||||
- # Our internal popt code cannot be compiled with pedantic warnings as errors, so try to
|
||||
- # turn off pedantic warnings (which will not lose the error for array-init overflow).
|
||||
- # Older gcc versions don't understand -Wno-pedantic, so check if --help=warnings lists
|
||||
- # -Wpedantic and use that as a flag.
|
||||
- case `$CC --help=warnings 2>/dev/null | grep Wpedantic` in
|
||||
- *-Wpedantic*) CFLAGS="$CFLAGS -pedantic-errors -Wno-pedantic" ;;
|
||||
- esac
|
||||
- fi
|
||||
-fi
|
||||
-
|
||||
AC_MSG_CHECKING([whether to use included libpopt])
|
||||
if test x"$with_included_popt" = x"yes"; then
|
||||
AC_MSG_RESULT($srcdir/popt)
|
@ -70,6 +70,7 @@ PATCHES=(
|
||||
"${FILESDIR}"/${P}-unsigned-char-checksum.patch
|
||||
# https://github.com/WayneD/rsync/issues/324
|
||||
"${FILESDIR}"/${P}-strlcpy.patch
|
||||
"${FILESDIR}"/${P}-notpedantic.patch
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user