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 68B04138350 for ; Mon, 9 Mar 2020 05:55:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5E511E091D; Mon, 9 Mar 2020 05:55:39 +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 244BBE0919 for ; Mon, 9 Mar 2020 05:55:39 +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 7F43F34F2A9 for ; Mon, 9 Mar 2020 05:55:37 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9F566173 for ; Mon, 9 Mar 2020 05:55:35 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1583733310.fd2beb14f93d5569f6a03d85516ae17f3c789efc.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-block/rts_pstor/, sys-block/rts_pstor/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-block/rts_pstor/files/rts_pstor-makefile-kernel-5.1.patch sys-block/rts_pstor/rts_pstor-1.10_p20160103.ebuild X-VCS-Directories: sys-block/rts_pstor/files/ sys-block/rts_pstor/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: fd2beb14f93d5569f6a03d85516ae17f3c789efc X-VCS-Branch: master Date: Mon, 9 Mar 2020 05:55:35 +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: 940ca0c6-2a63-46f8-9050-e7c499adf008 X-Archives-Hash: 4548ff854d2ca8fff64bffacebed247a commit: fd2beb14f93d5569f6a03d85516ae17f3c789efc Author: Martin Dummer gmx net> AuthorDate: Sun Mar 1 21:35:42 2020 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Mon Mar 9 05:55:10 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd2beb14 sys-block/rts_pstor: fix compile with kernel >5.1 Closes: https://bugs.gentoo.org/702490 Closes: https://bugs.gentoo.org/702492 Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Martin Dummer gmx.net> Closes: https://github.com/gentoo/gentoo/pull/14818 Signed-off-by: Joonas Niilola gentoo.org> .../rts_pstor/files/rts_pstor-makefile-kernel-5.1.patch | 7 +++++++ sys-block/rts_pstor/rts_pstor-1.10_p20160103.ebuild | 16 ++++++++++------ 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/sys-block/rts_pstor/files/rts_pstor-makefile-kernel-5.1.patch b/sys-block/rts_pstor/files/rts_pstor-makefile-kernel-5.1.patch new file mode 100644 index 00000000000..ff527e8a530 --- /dev/null +++ b/sys-block/rts_pstor/files/rts_pstor-makefile-kernel-5.1.patch @@ -0,0 +1,7 @@ +--- a/Makefile ++++ b/Makefile +@@ -36,3 +36,3 @@ + cp -f ./define.release ./define.h +- make -C /lib/modules/$(shell uname -r)/build/ SUBDIRS=$(PWD) modules ++ +make -C $(KERNELDIR) M=$(PWD) modules + debug: diff --git a/sys-block/rts_pstor/rts_pstor-1.10_p20160103.ebuild b/sys-block/rts_pstor/rts_pstor-1.10_p20160103.ebuild index e9b31fc3584..aebf0d373c1 100644 --- a/sys-block/rts_pstor/rts_pstor-1.10_p20160103.ebuild +++ b/sys-block/rts_pstor/rts_pstor-1.10_p20160103.ebuild @@ -1,4 +1,4 @@ -# Copyright 2019 Gentoo Authors +# Copyright 2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -16,10 +16,6 @@ SLOT="0" KEYWORDS="~amd64 ~x86" DEPEND="virtual/linux-sources" -PATCHES=( - "${FILESDIR}/rts_pstor-makefile.patch" - "${FILESDIR}/fix-compile-kernel-5.0.0.patch" -) S="${WORKDIR}/RTS5209-linux-driver-${GIT_COMMIT}" MODULE_NAMES="rts_pstor(misc/drivers/scsi)" @@ -29,8 +25,16 @@ MODULESD_RTS_PSTOR_ADDITIONS=( ) BUILD_TARGETS="default" BUILD_PARAMS="KERNELDIR=${KERNEL_DIR}" -CONFIG_CHECK="~!MISC_RTSX_PCI" +CONFIG_CHECK="~!MISC_RTSX_PCI !FORTIFY_SOURCE" ERROR_MISC_RTSX_PCI="CONFIG_MISC_RTSX_PCI: The in-kernel driver rtsx_pci is configured, which may have the same functionality than this driver. To make sure that your kernel loads only rts_pstor, the rtsx_pci module will be blacklisted." +ERROR_FORTIFY_SOURCE="CONFIG_FORTIFY_SOURCE: this module is known to fail compiling when the hardening option CONFIG_FORTIFY_SOURCE is set" + +src_prepare() { + default + + eapply "${FILESDIR}/fix-compile-kernel-5.0.0.patch" + kernel_is le 5 0 && eapply "${FILESDIR}/rts_pstor-makefile.patch" || eapply "${FILESDIR}/rts_pstor-makefile-kernel-5.1.patch" +} pkg_postinst() { elog "This driver is based on code published by Realtek. There is a driver in the kernel named rtsx_pci which"