From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/ncompress/
Date: Thu, 19 Jan 2023 20:52:04 +0000 (UTC) [thread overview]
Message-ID: <1674161519.e5e8fc552b29179767cc030ca687ff684ac9a715.sam@gentoo> (raw)
commit: e5e8fc552b29179767cc030ca687ff684ac9a715
Author: Krzesimir Nowak <knowak <AT> microsoft <DOT> com>
AuthorDate: Mon Jan 16 09:36:29 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> 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 <knowak <AT> microsoft.com>
Closes: https://github.com/gentoo/gentoo/pull/29131
Signed-off-by: Sam James <sam <AT> 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
+}
next reply other threads:[~2023-01-19 20:52 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-19 20:52 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-01-12 13:16 [gentoo-commits] repo/gentoo:master commit in: app-arch/ncompress/ Sam James
2025-01-12 13:16 Sam James
2025-01-12 13:16 Sam James
2024-03-10 1:59 Sam James
2023-03-04 19:04 Arthur Zamarin
2023-03-04 14:08 Arthur Zamarin
2023-03-04 8:49 Arthur Zamarin
2023-03-04 7:30 Arthur Zamarin
2023-03-04 6:30 Arthur Zamarin
2023-03-04 6:00 Arthur Zamarin
2022-05-05 23:48 WANG Xuerui
2022-02-02 10:48 Sam James
2021-09-23 22:47 Marek Szuba
2021-05-01 23:02 David Seifert
2021-04-26 10:38 Sam James
2021-04-26 10:34 Sam James
2021-04-25 15:52 Sam James
2021-04-25 15:21 Sam James
2021-04-25 12:32 Sam James
2021-04-25 12:32 Sam James
2021-04-25 12:32 Sam James
2021-02-02 10:46 Lars Wendler
2019-12-30 11:20 Mike Frysinger
2019-11-27 15:01 Aaron Bauman
2019-11-27 13:25 Mikle Kolyada
2019-11-27 13:25 Mikle Kolyada
2019-11-27 13:25 Mikle Kolyada
2019-11-22 16:23 Matt Turner
2019-11-14 11:55 Agostino Sarubbo
2019-11-13 7:39 Agostino Sarubbo
2019-11-12 15:08 Agostino Sarubbo
2019-11-12 10:45 Agostino Sarubbo
2019-11-12 10:16 Agostino Sarubbo
2019-11-12 10:05 Agostino Sarubbo
2019-11-12 7:25 Sergei Trofimovich
2019-11-10 17:29 Sergei Trofimovich
2019-11-09 18:12 Aaron Bauman
2019-01-04 10:51 Mike Frysinger
2015-08-28 0:34 Manuel RĂ¼ger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1674161519.e5e8fc552b29179767cc030ca687ff684ac9a715.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox