summaryrefslogtreecommitdiff
path: root/app-arch
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-08-16 03:04:48 -0500
committerroot <root@alpha.trunkmasters.com>2026-08-16 03:04:48 -0500
commit419e92606fe27d657dbe239bd6f440ec8a36d51d (patch)
treee19f559be2709c782ca42f4205768b2dcb617905 /app-arch
parent176ef8b33b07b6349926561830323f298e7800da (diff)
downloadbaldeagleos-repo-419e92606fe27d657dbe239bd6f440ec8a36d51d.tar.gz
baldeagleos-repo-419e92606fe27d657dbe239bd6f440ec8a36d51d.tar.xz
baldeagleos-repo-419e92606fe27d657dbe239bd6f440ec8a36d51d.zip
Adding metadata
Diffstat (limited to 'app-arch')
-rw-r--r--app-arch/arj/Manifest1
-rw-r--r--app-arch/arj/arj-3.10.22_p29.ebuild72
-rw-r--r--app-arch/zip/Manifest1
-rw-r--r--app-arch/zip/files/zip-3.0_p16-zipnote-freeze.patch39
-rw-r--r--app-arch/zip/zip-3.0_p16.ebuild81
5 files changed, 194 insertions, 0 deletions
diff --git a/app-arch/arj/Manifest b/app-arch/arj/Manifest
index c8272ad83cff..5101273d8823 100644
--- a/app-arch/arj/Manifest
+++ b/app-arch/arj/Manifest
@@ -1,2 +1,3 @@
DIST arj_3.10.22-28.debian.tar.xz 24380 BLAKE2B c188e9f7f37067fdba70ffd6a8066c49c616d9bfc5d1d6fbe53fe86655cb3106fff2b459d34d676c6261071e976be9f6fd87f608937156bd94de207db3fc1910 SHA512 d92be2fe407ced5cd21d7144c8b97d19a5bdfa2391579228d817111a7eef455a847958ae49444aa275d87f043af3133f9a7330309bbdd5df1cf923b0f439d271
+DIST arj_3.10.22-29.debian.tar.xz 24412 BLAKE2B c2ace00980e35bccba70008ffe4d6bee60e76debc3739a373487d5652a545ffacba55a19a3554148c82d5eeb572e842443c4fe965a1797612d89da710854cc5e SHA512 fe50e3490beeff4355ec69e32a299c28eab6b40a11105e9f9e35cc6f4244e5ced8d8fd78ef333f821a784c3fcbc430e26f01bdb6d8fc33ffd1758695c86b3e56
DIST arj_3.10.22.orig.tar.gz 431467 BLAKE2B e40409b9f88a1a7e56de4200b464c3dc420659fa3991bf904ca86bbdb428fc8d17f095b9eabf3170712458ef2136e96545810201cc6755c15e45d4ae9a5e3a03 SHA512 4730dfdbab4f8095396c337578ed69bdaae52955ad468db50b52af8ad2846ecd6cfc05eb3ac0d03838c1c32ea60126f14a22b93e8181c06b9546456f3937ff76
diff --git a/app-arch/arj/arj-3.10.22_p29.ebuild b/app-arch/arj/arj-3.10.22_p29.ebuild
new file mode 100644
index 000000000000..f3e98b190a5f
--- /dev/null
+++ b/app-arch/arj/arj-3.10.22_p29.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools edo flag-o-matic toolchain-funcs
+
+MY_PV="${PV%%_p*}"
+PATCH_LEVEL="${PV##*_p}"
+
+DESCRIPTION="Utility for opening arj archives"
+HOMEPAGE="https://arj.sourceforge.net/"
+SRC_URI="
+ mirror://debian/pool/main/a/arj/arj_${MY_PV}.orig.tar.gz
+ mirror://debian/pool/main/a/arj/arj_${MY_PV}-${PATCH_LEVEL}.debian.tar.xz"
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86"
+
+DOCS=( doc/compile.txt doc/debug.txt doc/glossary.txt doc/rev_hist.txt doc/xlation.txt )
+
+src_prepare() {
+ PATCHES=(
+ $(sed -e 's:^:../debian/patches/:' "${WORKDIR}"/debian/patches/series || die)
+
+ "${FILESDIR}"/arj-3.10.22-implicit-declarations.patch
+ "${FILESDIR}"/arj-3.10.22-darwin.patch
+ "${FILESDIR}"/arj-3.10.22-aligned-pointers.patch
+ )
+
+ default
+
+ cd gnu || die 'failed to change to the "gnu" directory'
+ echo -n "" > stripgcc.lnk || die "failed to disable stripgcc.lnk"
+ # Fix typo in configure in a (non-)comment line
+ sed -i -e '/^dns Unconditionally align pointers$/s:dns:dnl:' configure.in || die
+
+ eautoreconf
+}
+
+src_configure() {
+ # Needed for keeping intergrity_identifier around so that postproc can find it later
+ # GCC defaults to enabling it, Clang doesn't.
+ # bug #509700
+ append-cflags -fkeep-static-consts
+
+ # Debian patches assume this is set. Can be updated with "date +%s"
+ export SOURCE_DATE_EPOCH="1737318540"
+
+ tc-export CC # Uses autoconf but not automake.
+ export CC_FOR_BUILD="$(tc-getBUILD_CC)"
+
+ if tc-is-cross-compiler; then
+ export CFLAGS_FOR_BUILD="${BUILD_CFLAGS}"
+ else
+ export CFLAGS_FOR_BUILD="${CFLAGS}"
+ fi
+
+ cd gnu || die 'failed to change to the "gnu" directory'
+ econf
+}
+
+src_test() {
+ # debian includes a test script. why not use it?
+ local -x AUTOPKGTEST_TMP="${T}/debian-test"
+
+ local -x PATH="${S}/linux-gnu/en/rs/arj/:${PATH}"
+
+ edo "${WORKDIR}"/debian/tests/test-command
+}
diff --git a/app-arch/zip/Manifest b/app-arch/zip/Manifest
index 37fcc7a2f5fa..2f15ec41c4d7 100644
--- a/app-arch/zip/Manifest
+++ b/app-arch/zip/Manifest
@@ -1 +1,2 @@
DIST zip30.zip 1287223 BLAKE2B d29a3e3ddbaa3ce50c80b2dd058b39c35791bf2079879b61dab0be4f011ccd3331d1768ebda5a69aa150c651713eb7a99b02833bb727eee75a3e0bbdc8504cbc SHA512 642ea6768d79adc1499251a3fb7bfc7ddc8d708699cbf9e0cfe849deda94165cb93e21dc2606bea1166ae5d8531e1e2cb056a7246bf2ab86ea7587bd4712d8d8
+DIST zip_3.0-16.debian.tar.xz 12512 BLAKE2B cd705fcafb72ac4bfa20a1844e26a073856d075f61d3da670aaf09c76e614cf4ad1b5d22f135e9d3e1e0e6417950734cd6db19a38a6ba4cf7852357d60321134 SHA512 c58b69f5749d2580a49398390adce1a4ea39bf8f27de339578ba5aa0906fbd4ff5cddc027d22b2500784ab7a9440a10b752628be7e9dca48fb471e68947bf310
diff --git a/app-arch/zip/files/zip-3.0_p16-zipnote-freeze.patch b/app-arch/zip/files/zip-3.0_p16-zipnote-freeze.patch
new file mode 100644
index 000000000000..2ed3b35735b1
--- /dev/null
+++ b/app-arch/zip/files/zip-3.0_p16-zipnote-freeze.patch
@@ -0,0 +1,39 @@
+https://bugs.gentoo.org/322047
+--- a/zipfile.c
++++ b/zipfile.c
+@@ -5406,7 +5406,9 @@ int putlocal(z, rewrite)
+ if (z->flg & UTF8_BIT) {
+ /* If this flag is set, then restore UTF-8 as path name */
+ use_uname = 1;
++ tempzn -= nam;
+ nam = strlen(z->uname);
++ tempzn += nam;
+ } else {
+ /* use extra field */
+ add_Unicode_Path_local_extra_field(z);
+@@ -5647,7 +5650,9 @@ int putcentral(z)
+ if (z->flg & UTF8_BIT) {
+ /* If this flag is set, then restore UTF-8 as path name */
+ use_uname = 1;
++ tempzn -= nam;
+ nam = strlen(z->uname);
++ tempzn += nam;
+ } else {
+ add_Unicode_Path_cen_extra_field(z);
+ }
+--- a/zipnote.c
++++ b/zipnote.c
+@@ -575,6 +575,13 @@ char **argv; /* command line
+ strcpy(z->iname, a+2);
+ #endif
+
++#ifdef UNICODE_SUPPORT
++#define UTF8_BIT (1 << 11)
++ if (using_utf8) {
++ z->uname = z->iname;
++ }
++#endif
++
+ /*
+ * Don't update z->nam here, we need the old value a little later.....
+ * The update is handled in zipcopy().
diff --git a/app-arch/zip/zip-3.0_p16.ebuild b/app-arch/zip/zip-3.0_p16.ebuild
new file mode 100644
index 000000000000..0571a0d81cd1
--- /dev/null
+++ b/app-arch/zip/zip-3.0_p16.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit edo toolchain-funcs flag-o-matic
+
+MY_PV="${PV//.}"
+MY_PV="${MY_PV%_p*}"
+MY_P="${PN}${MY_PV}"
+DESCRIPTION="Info ZIP (encryption support)"
+HOMEPAGE="https://infozip.sourceforge.net/Zip.html"
+SRC_URI="
+ https://downloads.sourceforge.net/infozip/${MY_P}.zip
+ mirror://debian/pool/main/z/${PN}/${PN}_${PV/_p/-}.debian.tar.xz
+"
+S="${WORKDIR}"/${MY_P}
+
+LICENSE="Info-ZIP"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+IUSE="bzip2 crypt natspec unicode"
+
+DEPEND="
+ bzip2? ( app-arch/bzip2 )
+ natspec? ( dev-libs/libnatspec )
+"
+RDEPEND="${DEPEND}"
+BDEPEND="app-arch/unzip"
+
+src_prepare() {
+ PATCHES=(
+ $(sed -e 's:^:../debian/patches/:' "${WORKDIR}"/debian/patches/series || die)
+
+ "${FILESDIR}"/${PN}-3.0-no-crypt.patch # bug #238398
+ "${FILESDIR}"/${PN}-3.0-pic.patch
+ "${FILESDIR}"/${PN}-3.0_p16-zipnote-freeze.patch # bug #322047
+ )
+
+ # bug #275244
+ use natspec && PATCHES+=( "${FILESDIR}"/${PN}-3.0-natspec.patch )
+ default
+}
+
+src_configure() {
+ # Needed for tricky configure tests w/ C23 (bug #943727)
+ export CC="$(tc-getCC) -std=gnu89"
+ # Needed for Clang 16
+ append-flags -std=gnu89
+
+ append-cppflags \
+ -DLARGE_FILE_SUPPORT \
+ -DUIDGID_NOT_16BIT \
+ -D$(usev !bzip2 'NO')BZIP2_SUPPORT \
+ -D$(usev !crypt 'NO')CRYPT \
+ -D$(usev !unicode 'NO')UNICODE_SUPPORT
+
+ # - We use 'sh' because: 1. lacks +x bit, easier; 2. it tries to load bashdb
+ # - Third arg disables bzip2 logic as we handle it ourselves above.
+ edo sh ./unix/configure "$(tc-getCC)" "-I. -DUNIX ${CFLAGS} ${CPPFLAGS}" "${T}"
+
+ if use bzip2 ; then
+ sed -i -e "s:LFLAGS2=:&'-lbz2 ':" flags || die
+ fi
+}
+
+src_compile() {
+ emake \
+ CPP="$(tc-getCPP)" \
+ -f unix/Makefile generic
+}
+
+src_install() {
+ dobin zip zipnote zipsplit
+ doman man/zip{,note,split}.1
+ if use crypt ; then
+ dobin zipcloak
+ doman man/zipcloak.1
+ fi
+ dodoc BUGS CHANGES README* TODO WHATSNEW WHERE proginfo/*.txt
+}