From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B19611382C5 for ; Sun, 21 Jun 2020 09:31:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CC043E08A2; Sun, 21 Jun 2020 09:31:29 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9BE6CE08A2 for ; Sun, 21 Jun 2020 09:31:29 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8D07134F8ED for ; Sun, 21 Jun 2020 09:31:27 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 01D792AA for ; Sun, 21 Jun 2020 09:31:26 +0000 (UTC) From: "Lars Wendler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Lars Wendler" Message-ID: <1592731867.6e2a72e6b9381c465f0e95914d044ba373f656ae.polynomial-c@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/rsync/, net-misc/rsync/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/rsync/files/rsync-3.2.0-noexecstack.patch net-misc/rsync/files/rsync-3.2.0-simd_check.patch net-misc/rsync/rsync-3.2.0-r1.ebuild net-misc/rsync/rsync-3.2.0.ebuild X-VCS-Directories: net-misc/rsync/ net-misc/rsync/files/ X-VCS-Committer: polynomial-c X-VCS-Committer-Name: Lars Wendler X-VCS-Revision: 6e2a72e6b9381c465f0e95914d044ba373f656ae X-VCS-Branch: master Date: Sun, 21 Jun 2020 09:31:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 520c95fe-2f93-4185-b60c-f283e4eaebc4 X-Archives-Hash: 675d9aa442ddd325e63d819c4547c25e commit: 6e2a72e6b9381c465f0e95914d044ba373f656ae Author: Lars Wendler gentoo org> AuthorDate: Sun Jun 21 09:30:29 2020 +0000 Commit: Lars Wendler gentoo org> CommitDate: Sun Jun 21 09:31:07 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e2a72e6 net-misc/rsync: Revbump fixing stunnel build and removed execstack Closes: https://bugs.gentoo.org/728882 Closes: https://bugs.gentoo.org/728898 Package-Manager: Portage-2.3.101, Repoman-2.3.22 Signed-off-by: Lars Wendler gentoo.org> net-misc/rsync/files/rsync-3.2.0-noexecstack.patch | 24 +++++++++++ net-misc/rsync/files/rsync-3.2.0-simd_check.patch | 11 ----- .../{rsync-3.2.0.ebuild => rsync-3.2.0-r1.ebuild} | 48 ++++++++++++++-------- 3 files changed, 56 insertions(+), 27 deletions(-) diff --git a/net-misc/rsync/files/rsync-3.2.0-noexecstack.patch b/net-misc/rsync/files/rsync-3.2.0-noexecstack.patch new file mode 100644 index 00000000000..918346062e6 --- /dev/null +++ b/net-misc/rsync/files/rsync-3.2.0-noexecstack.patch @@ -0,0 +1,24 @@ +From 75901616c5f38a9ff6ba736c8281933e8ce64b8b Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Holger=20Hoffst=C3=A4tte?= +Date: Sat, 20 Jun 2020 16:54:11 +0200 +Subject: [PATCH] Pass --noexecstack to assembler. + +This prevents Linux from rightfully complaining about an executable +stack segment, which is widely considered a security hazard. +--- + Makefile.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile.in b/Makefile.in +index 31ddc43b..60aff920 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -135,7 +135,7 @@ simd-checksum-x86_64.o: simd-checksum-x86_64.cpp + $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c -o $@ $(srcdir)/simd-checksum-x86_64.cpp + + lib/md5-asm-x86_64.o: lib/md5-asm-x86_64.s +- $(CC) -c -o $@ $(srcdir)/lib/md5-asm-x86_64.s ++ $(CC) -Wa,--noexecstack -c -o $@ $(srcdir)/lib/md5-asm-x86_64.s + + tls$(EXEEXT): $(TLS_OBJ) + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(TLS_OBJ) $(LIBS) diff --git a/net-misc/rsync/files/rsync-3.2.0-simd_check.patch b/net-misc/rsync/files/rsync-3.2.0-simd_check.patch index db3ee83dc0d..255f2792dc0 100644 --- a/net-misc/rsync/files/rsync-3.2.0-simd_check.patch +++ b/net-misc/rsync/files/rsync-3.2.0-simd_check.patch @@ -11,14 +11,3 @@ https://github.com/WayneD/rsync/pull/24 CXX_VERSION=`$CXX -dumpversion | sed 's/\..*//g'` if test "$CXX_VERSION" -ge "5"; then CXX_OK=yes ---- rsync-3.2.0/configure.sh 2020-06-19 23:11:01.000000000 +0200 -+++ rsync-3.2.0/configure.sh 2020-06-19 23:11:01.000000000 +0200 -@@ -4889,7 +4889,7 @@ - if test x"$CXX" != x""; then - CXX_VERSION=`$CXX --version 2>/dev/null | head -n 1` - case "$CXX_VERSION" in -- g++*) -+ *g++*) - CXX_VERSION=`$CXX -dumpversion | sed 's/\..*//g'` - if test "$CXX_VERSION" -ge "5"; then - CXX_OK=yes diff --git a/net-misc/rsync/rsync-3.2.0.ebuild b/net-misc/rsync/rsync-3.2.0-r1.ebuild similarity index 77% rename from net-misc/rsync/rsync-3.2.0.ebuild rename to net-misc/rsync/rsync-3.2.0-r1.ebuild index a14bbfdf048..672e23e2d33 100644 --- a/net-misc/rsync/rsync-3.2.0.ebuild +++ b/net-misc/rsync/rsync-3.2.0-r1.ebuild @@ -3,19 +3,27 @@ EAPI=7 -PYTHON_COMPAT=( python3_{6,7,8} ) - -inherit flag-o-matic prefix python-any-r1 systemd +inherit autotools flag-o-matic prefix systemd DESCRIPTION="File transfer program to keep remote files into sync" HOMEPAGE="https://rsync.samba.org/" -SRC_URI="https://rsync.samba.org/ftp/rsync/src/${P}.tar.gz" -[[ "${PV}" = *_pre* ]] && SRC_URI="https://rsync.samba.org/ftp/rsync/src-previews/${P/_/}.tar.gz" +if [[ "${PV}" == *9999 ]] ; then + PYTHON_COMPAT=( python3_{6,7,8} ) + inherit git-r3 python-any-r1 + EGIT_REPO_URI="https://github.com/WayneD/rsync.git" +else + if [[ "${PV}" == *_pre* ]] ; then + SRC_DIR="src-previews" + else + SRC_DIR="src" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" + fi + SRC_URI="https://rsync.samba.org/ftp/rsync/${SRC_DIR}/${P/_/}.tar.gz" + S="${WORKDIR}/${P/_/}" +fi LICENSE="GPL-3" SLOT="0" -[[ ${PV} = *_pre* ]] || \ -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" IUSE_CPU_FLAGS_X86=" sse2" IUSE="acl examples iconv ipv6 libressl lz4 ssl static stunnel system-zlib xattr xxhash zstd" IUSE+=" ${IUSE_CPU_FLAGS_X86// / cpu_flags_x86_}" @@ -36,20 +44,29 @@ RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} ) DEPEND="${RDEPEND} static? ( ${LIB_DEPEND} )" -BDEPEND="${PYTHON_DEPS} - $(python_gen_any_dep ' - dev-python/commonmark[${PYTHON_USEDEP}] - ')" - -S="${WORKDIR}/${P/_/}" +if [[ "${PV}" == *9999 ]] ; then + BDEPEND="${PYTHON_DEPS} + $(python_gen_any_dep ' + dev-python/commonmark[${PYTHON_USEDEP}] + ')" +fi +# Only required for live ebuild python_check_deps() { has_version "dev-python/commonmark[${PYTHON_USEDEP}]" } +PATCHES=( + "${FILESDIR}/${P}-simd_check.patch" + "${FILESDIR}/${P}-noexecstack.patch" #728882 +) + src_prepare() { default - eapply -Z "${FILESDIR}/${PN}-3.2.0-simd_check.patch" + + eaclocal -I m4 + eautoconf -o configure.sh + eautoheader && touch config.h.in } src_configure() { @@ -76,7 +93,7 @@ src_configure() { fi econf "${myeconfargs[@]}" - touch proto.h-tstamp #421625 + [[ "${PV}" == *9999 ]] || touch proto.h-tstamp #421625 } src_install() { @@ -98,7 +115,6 @@ src_install() { # Install stunnel helpers if use stunnel ; then - emake DESTDIR="${D}" install-ssl-client emake DESTDIR="${D}" install-ssl-daemon fi