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 4D80C139085 for ; Wed, 4 Jan 2017 05:02:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 84C52E0C68; Wed, 4 Jan 2017 05:02:25 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6572FE0C68 for ; Wed, 4 Jan 2017 05:02:25 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 09FCD340EDA for ; Wed, 4 Jan 2017 05:02:23 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1F8BA24EC for ; Wed, 4 Jan 2017 05:02:21 +0000 (UTC) From: "Christoph Junghans" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Christoph Junghans" Message-ID: <1483506132.01d008ab9f404257b9e71ff8fa3b3634a3197cc6.junghans@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/snapraid/, sys-fs/snapraid/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-fs/snapraid/files/snapraid-11.0-minor.patch sys-fs/snapraid/snapraid-11.0-r1.ebuild sys-fs/snapraid/snapraid-11.0.ebuild X-VCS-Directories: sys-fs/snapraid/ sys-fs/snapraid/files/ X-VCS-Committer: junghans X-VCS-Committer-Name: Christoph Junghans X-VCS-Revision: 01d008ab9f404257b9e71ff8fa3b3634a3197cc6 X-VCS-Branch: master Date: Wed, 4 Jan 2017 05:02:21 +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-Archives-Salt: 8f39785c-3d8b-436d-a351-9ca72322c283 X-Archives-Hash: 061c340dfbb91247cc718710d0e55118 commit: 01d008ab9f404257b9e71ff8fa3b3634a3197cc6 Author: Christoph Junghans gentoo org> AuthorDate: Wed Jan 4 05:01:55 2017 +0000 Commit: Christoph Junghans gentoo org> CommitDate: Wed Jan 4 05:02:12 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01d008ab sys-fs/snapraid: fix undefined minor (bug #604478) Package-Manager: portage-2.3.0 sys-fs/snapraid/files/snapraid-11.0-minor.patch | 39 ++++++++++++++++++++++ ...napraid-11.0.ebuild => snapraid-11.0-r1.ebuild} | 2 ++ 2 files changed, 41 insertions(+) diff --git a/sys-fs/snapraid/files/snapraid-11.0-minor.patch b/sys-fs/snapraid/files/snapraid-11.0-minor.patch new file mode 100644 index 00000000..f212e9a --- /dev/null +++ b/sys-fs/snapraid/files/snapraid-11.0-minor.patch @@ -0,0 +1,39 @@ +From 04dfeea107f81afa50e4888dd7da2f4a9c82d6ee Mon Sep 17 00:00:00 2001 +From: Andrea Mazzoleni +Date: Wed, 4 Jan 2017 00:25:56 +0100 +Subject: [PATCH] Tentative fix for major/minor missing + +--- + cmdline/portable.h | 6 ++++++ + configure.ac | 1 + + 2 files changed, 7 insertions(+) + +diff --git a/cmdline/portable.h b/cmdline/portable.h +index 58826c6..059cd38 100644 +--- a/cmdline/portable.h ++++ b/cmdline/portable.h +@@ -198,6 +198,12 @@ + #include + #endif + ++#if MAJOR_IN_MKDEV ++#include ++#elif MAJOR_IN_SYSMACROS ++#include ++#endif ++ + #if HAVE_SYS_STAT_H + #include + #endif +diff --git a/configure.ac b/configure.ac +index 125dae9..8f34f43 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -31,6 +31,7 @@ AC_HEADER_ASSERT + AC_HEADER_DIRENT + AC_HEADER_TIME + AC_HEADER_SYS_WAIT ++AC_HEADER_MAJOR + AC_CHECK_HEADERS([fcntl.h stddef.h stdint.h stdlib.h string.h limits.h]) + AC_CHECK_HEADERS([unistd.h getopt.h fnmatch.h io.h inttypes.h byteswap.h]) + AC_CHECK_HEADERS([pthread.h math.h]) diff --git a/sys-fs/snapraid/snapraid-11.0.ebuild b/sys-fs/snapraid/snapraid-11.0-r1.ebuild similarity index 91% rename from sys-fs/snapraid/snapraid-11.0.ebuild rename to sys-fs/snapraid/snapraid-11.0-r1.ebuild index 7e5c4ae..82b10c3 100644 --- a/sys-fs/snapraid/snapraid-11.0.ebuild +++ b/sys-fs/snapraid/snapraid-11.0-r1.ebuild @@ -14,3 +14,5 @@ KEYWORDS="~amd64 ~x86" IUSE="test" DOCS=( "AUTHORS" "HISTORY" "README" "TODO" "snapraid.conf.example" ) + +PATCHES=( "${FILESDIR}/${P}-minor.patch" )