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 58EBE138334 for ; Sat, 15 Dec 2018 07:08:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 23B8FE0B64; Sat, 15 Dec 2018 07:08:12 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 D83D2E0B64 for ; Sat, 15 Dec 2018 07:08:11 +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 6BA28335C5A for ; Sat, 15 Dec 2018 07:08:10 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D5BF64E5 for ; Sat, 15 Dec 2018 07:08:08 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <1544857653.3720154b98db15dd174d864966732148eed43116.robbat2@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/lbzip2/files/, app-arch/lbzip2/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-arch/lbzip2/files/lbzip2-2.5-glibc-2.28.patch app-arch/lbzip2/lbzip2-2.5-r1.ebuild X-VCS-Directories: app-arch/lbzip2/ app-arch/lbzip2/files/ X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: 3720154b98db15dd174d864966732148eed43116 X-VCS-Branch: master Date: Sat, 15 Dec 2018 07:08:08 +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: fbeb4860-162d-46ce-a7df-c0cd5aae1ffa X-Archives-Hash: e6e5542c4c1cac5ec6c05950484ae3a5 commit: 3720154b98db15dd174d864966732148eed43116 Author: Marty E. Plummer startmail com> AuthorDate: Sat Dec 15 05:59:43 2018 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Sat Dec 15 07:07:33 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3720154b app-arch/lbzip2: fix gnulib fseterr.c for glibc-2.28 Bug: https://bugs.gentoo.org/669594 Package-Manager: Portage-2.3.52, Repoman-2.3.12 Signed-off-by: Marty E. Plummer startmail.com> (cherry picked from commit 1987ed072674ea371a94635626e095c490a35cf7) Signed-off-by: Robin H. Johnson gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/10644 Closes: https://bugs.gentoo.org/669594 app-arch/lbzip2/files/lbzip2-2.5-glibc-2.28.patch | 50 +++++++++++++++++++++++ app-arch/lbzip2/lbzip2-2.5-r1.ebuild | 39 ++++++++++++++++++ 2 files changed, 89 insertions(+) diff --git a/app-arch/lbzip2/files/lbzip2-2.5-glibc-2.28.patch b/app-arch/lbzip2/files/lbzip2-2.5-glibc-2.28.patch new file mode 100644 index 00000000000..bc3954934d9 --- /dev/null +++ b/app-arch/lbzip2/files/lbzip2-2.5-glibc-2.28.patch @@ -0,0 +1,50 @@ +diff --git a/lib/fseterr.c b/lib/fseterr.c +index 1e212e4..81f51ed 100644 +--- a/lib/fseterr.c ++++ b/lib/fseterr.c +@@ -1,5 +1,5 @@ + /* Set the error indicator of a stream. +- Copyright (C) 2007-2014 Free Software Foundation, Inc. ++ Copyright (C) 2007-2018 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by +@@ -12,7 +12,7 @@ + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License +- along with this program. If not, see . */ ++ along with this program. If not, see . */ + + #include + +@@ -23,21 +23,26 @@ + + #include "stdio-impl.h" + ++/* This file is not used on systems that have the __fseterr function, ++ namely musl libc. */ ++ + void + fseterr (FILE *fp) + { + /* Most systems provide FILE as a struct and the necessary bitmask in + , because they need it for implementing getc() and putc() as + fast macros. */ +-#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */ ++#if defined _IO_EOF_SEEN || defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 ++ /* GNU libc, BeOS, Haiku, Linux libc5 */ + fp->_flags |= _IO_ERR_SEEN; +-#elif defined __sferror || defined __DragonFly__ /* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin */ ++#elif defined __sferror || defined __DragonFly__ || defined __ANDROID__ ++ /* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin, Minix 3, Android */ + fp_->_flags |= __SERR; + #elif defined __EMX__ /* emx+gcc */ + fp->_flags |= _IOERR; + #elif defined __minix /* Minix */ + fp->_flags |= _IOERR; +-#elif defined _IOERR /* AIX, HP-UX, IRIX, OSF/1, Solaris, OpenServer, mingw, NonStop Kernel */ ++#elif defined _IOERR /* AIX, HP-UX, IRIX, OSF/1, Solaris, OpenServer, mingw, MSVC, NonStop Kernel, OpenVMS */ + fp_->_flag |= _IOERR; + #elif defined __UCLIBC__ /* uClibc */ + fp->__modeflags |= __FLAG_ERROR; diff --git a/app-arch/lbzip2/lbzip2-2.5-r1.ebuild b/app-arch/lbzip2/lbzip2-2.5-r1.ebuild new file mode 100644 index 00000000000..5700c094025 --- /dev/null +++ b/app-arch/lbzip2/lbzip2-2.5-r1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="Parallel bzip2 utility" +HOMEPAGE="https://github.com/kjn/lbzip2/" +SRC_URI="http://archive.lbzip2.org/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux" +IUSE="debug symlink" + +RDEPEND="symlink? ( !app-arch/pbzip2[symlink] )" +DEPEND="" + +PATCHES=( + "${FILESDIR}"/${PN}-2.3-s_isreg.patch + # bug 669594 + "${FILESDIR}"/${PN}-2.5-glibc-2.28.patch +) + +src_configure() { + local myeconfargs=( + --disable-silent-rules + $(use_enable debug tracing) + ) + econf "${myeconfargs[@]}" +} + +src_install() { + default + + if use symlink; then + dosym ${PN} /usr/bin/bzip2 + dosym lbunzip2 /usr/bin/bunzip2 + fi +}