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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 587DD15800F for ; Thu, 19 Jan 2023 20:52:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7F76FE08AD; Thu, 19 Jan 2023 20:52:07 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 670F2E08AD for ; Thu, 19 Jan 2023 20:52:07 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7C1DD340B29 for ; Thu, 19 Jan 2023 20:52:06 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D60B57DE for ; Thu, 19 Jan 2023 20:52:04 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1674161519.e5e8fc552b29179767cc030ca687ff684ac9a715.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/ncompress/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-arch/ncompress/ncompress-5.0-r1.ebuild X-VCS-Directories: app-arch/ncompress/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: e5e8fc552b29179767cc030ca687ff684ac9a715 X-VCS-Branch: master Date: Thu, 19 Jan 2023 20:52:04 +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: 9ba98dd0-3120-4297-a6b8-b38fa377d901 X-Archives-Hash: 8ddb3c0efb5b47e3909d0430537dc8bb commit: e5e8fc552b29179767cc030ca687ff684ac9a715 Author: Krzesimir Nowak microsoft com> AuthorDate: Mon Jan 16 09:36:29 2023 +0000 Commit: Sam James gentoo org> CommitDate: Thu Jan 19 20:51:59 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5e8fc55 app-arch/ncompress: Fix installation of the uncompress symlink We were patching Makefile.def to create symbolic links instead of hardlinks and this resulted in symlinks pointing to `$(DESTDIR)$(BINDIR)/compress`. This meant that the symlink was broken in the merged filesystem. Add some more sed hacking to achieve `ln -s compress $(DESTDIR)$(BINDIR)/uncompress` instead. Signed-off-by: Krzesimir Nowak microsoft.com> Closes: https://github.com/gentoo/gentoo/pull/29131 Signed-off-by: Sam James gentoo.org> app-arch/ncompress/ncompress-5.0-r1.ebuild | 37 ++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/app-arch/ncompress/ncompress-5.0-r1.ebuild b/app-arch/ncompress/ncompress-5.0-r1.ebuild new file mode 100644 index 000000000000..2b3cfe61914e --- /dev/null +++ b/app-arch/ncompress/ncompress-5.0-r1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit toolchain-funcs + +DESCRIPTION="Classic compress & uncompress programs for .Z (LZW) files" +HOMEPAGE="https://vapier.github.io/ncompress/" +SRC_URI="https://github.com/vapier/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris" +IUSE="" + +src_prepare() { + default + # First sed expression replaces hardlinking with + # symlinking. Second sed expression fixes the symlink target + # to use relative path to a file in the same directory as the + # symlink (so point to compress instead of + # $(DESTDIR)$(BINDIR)/compress). + sed -i \ + -e 's:\bln :ln -s :' \ + -e 's:\(\bln [^$]*\)\$(DESTDIR)\$(BINDIR)/:\1:' \ + Makefile.def || die +} + +src_configure() { + tc-export CC +} + +src_install() { + emake install_core DESTDIR="${ED}" PREFIX="/usr" + dodoc Acknowleds Changes LZW.INFO README.md +}