Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: profiles/, media-libs/jpeg/, media-libs/jpeg/files/
Date: Sat, 30 Jan 2021 12:01:14
Message-Id: 1612008065.eccf67987755ca8fc13c3357fdc79af11fd44f43.mgorny@gentoo
1 commit: eccf67987755ca8fc13c3357fdc79af11fd44f43
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 30 11:59:59 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 30 12:01:05 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eccf6798
7
8 media-libs/jpeg: Remove last-rited pkg
9
10 Closes: https://bugs.gentoo.org/762634
11 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
12
13 media-libs/jpeg/Manifest | 2 -
14 media-libs/jpeg/files/jpeg-7-maxmem_sysconf.patch | 49 ----------------
15 media-libs/jpeg/jpeg-9d.ebuild | 71 -----------------------
16 media-libs/jpeg/metadata.xml | 5 --
17 profiles/package.mask | 8 ---
18 5 files changed, 135 deletions(-)
19
20 diff --git a/media-libs/jpeg/Manifest b/media-libs/jpeg/Manifest
21 deleted file mode 100644
22 index d1334310aa3..00000000000
23 --- a/media-libs/jpeg/Manifest
24 +++ /dev/null
25 @@ -1,2 +0,0 @@
26 -DIST jpegsrc.v9d.tar.gz 1070160 BLAKE2B a905a15c0eadc8ebd797fe009685a2c300dc39600ed7416d58adf1ed326a26ca45146387fe73a87a589f4bed95e652f5385b4df5e7544a4e348bda27356295c2 SHA512 c425cf413e679e4112b428592e6facc813cadf92e42a6b850c5d348b3dd47b0599e2f4a119d7ff543b762cdcadd42a77ed1429a08874e73f64a54fb869714357
27 -DIST libjpeg8_8d-1.debian.tar.gz 13676 BLAKE2B ac6fab3e52f91c9ece95ed809fc972afc92c55754a59358f7dacb056917b1878f6f9be85a20ccb34eb13489a9963a00659fe25c27e8b18b44961c6ba5f3214cd SHA512 7def4f13524f0af3b9adf35a370027a18f43b9a635f56a17d5bb7883370db8b18b8a12737d0f0cb4b0287ccf8fb474eb5f754de6b398ffe7d522c54e5bf68040
28
29 diff --git a/media-libs/jpeg/files/jpeg-7-maxmem_sysconf.patch b/media-libs/jpeg/files/jpeg-7-maxmem_sysconf.patch
30 deleted file mode 100644
31 index 9ea87d4fa39..00000000000
32 --- a/media-libs/jpeg/files/jpeg-7-maxmem_sysconf.patch
33 +++ /dev/null
34 @@ -1,49 +0,0 @@
35 -# Make a reasonable guess about memory limits using sysconf().
36 -# includes 5% slop factor as suggested in documentation.
37 -
38 ---- jpeg-7/jmemansi.c
39 -+++ jpeg-7/jmemansi.c
40 -@@ -12,6 +12,15 @@
41 - * is shoved onto the user.
42 - */
43 -
44 -+#include <unistd.h>
45 -+
46 -+#ifdef __FreeBSD__
47 -+# include <sys/types.h>
48 -+# include <sys/sysctl.h>
49 -+# include <sys/vmmeter.h>
50 -+# include <vm/vm_param.h>
51 -+#endif
52 -+
53 - #define JPEG_INTERNALS
54 - #include "jinclude.h"
55 - #include "jpeglib.h"
56 -@@ -157,7 +166,26 @@
57 - GLOBAL(long)
58 - jpeg_mem_init (j_common_ptr cinfo)
59 - {
60 -- return DEFAULT_MAX_MEM; /* default for max_memory_to_use */
61 -+#ifdef _SC_AVPHYS_PAGES
62 -+ long phys_size;
63 -+
64 -+ if ((phys_size = sysconf(_SC_AVPHYS_PAGES)) == -1)
65 -+ return DEFAULT_MAX_MEM; /* default for max_memory_to_use */
66 -+ if ((phys_size *= sysconf(_SC_PAGESIZE)) < 0)
67 -+ return DEFAULT_MAX_MEM;
68 -+ return (long) (phys_size * 0.95);
69 -+#elif defined(HAVE_SYSCTL) && defined(HW_PHYSMEM)
70 -+ /* This works on *bsd and darwin. */
71 -+ unsigned int physmem;
72 -+ size_t len = sizeof physmem;
73 -+ static int mib[2] = { CTL_HW, HW_PHYSMEM };
74 -+
75 -+ if (sysctl (mib, ARRAY_SIZE (mib), &physmem, &len, NULL, 0) == 0
76 -+ && len == sizeof (physmem))
77 -+ return (long) (physmem * 0.95);
78 -+#endif
79 -+
80 -+ return DEFAULT_MAX_MEM;
81 - }
82 -
83 - GLOBAL(void)
84
85 diff --git a/media-libs/jpeg/jpeg-9d.ebuild b/media-libs/jpeg/jpeg-9d.ebuild
86 deleted file mode 100644
87 index a9830591cae..00000000000
88 --- a/media-libs/jpeg/jpeg-9d.ebuild
89 +++ /dev/null
90 @@ -1,71 +0,0 @@
91 -# Copyright 1999-2021 Gentoo Authors
92 -# Distributed under the terms of the GNU General Public License v2
93 -
94 -EAPI=6
95 -
96 -inherit libtool toolchain-funcs multilib-minimal
97 -
98 -DESCRIPTION="Library to load, handle and manipulate images in the JPEG format"
99 -HOMEPAGE="http://jpegclub.org/ http://www.ijg.org/"
100 -SRC_URI="http://www.ijg.org/files/${PN}src.v${PV}.tar.gz
101 - mirror://debian/pool/main/libj/lib${PN}8/lib${PN}8_8d-1.debian.tar.gz"
102 -
103 -LICENSE="IJG"
104 -SLOT="0"
105 -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
106 -IUSE="static-libs"
107 -
108 -DEPEND=""
109 -RDEPEND="!media-libs/libjpeg-turbo:0"
110 -
111 -DOCS=( change.log example.c README {coderules,filelist,install,jconfig,libjpeg,structure,usage,wizard}.txt )
112 -
113 -PATCHES=( "${FILESDIR}"/${PN}-7-maxmem_sysconf.patch )
114 -
115 -src_prepare() {
116 - default
117 - elibtoolize
118 -}
119 -
120 -multilib_src_configure() {
121 - # Fix building against this library on eg. Solaris and DragonFly BSD, see:
122 - # http://mail-index.netbsd.org/pkgsrc-bugs/2010/01/18/msg035644.html
123 - local ldverscript=
124 - [[ ${CHOST} == *-solaris* ]] && ldverscript="--disable-ld-version-script"
125 -
126 - ECONF_SOURCE=${S} \
127 - econf \
128 - $(use_enable static-libs static) \
129 - --enable-maxmem=64 \
130 - ${ldverscript}
131 -}
132 -
133 -multilib_src_compile() {
134 - emake
135 -
136 - if multilib_is_native_abi; then
137 - # Build exifautotran and jpegexiforient
138 - cd ../debian/extra
139 - emake CC="$(tc-getCC)" CFLAGS="${LDFLAGS} ${CFLAGS}"
140 - fi
141 -}
142 -
143 -multilib_src_install() {
144 - emake DESTDIR="${D}" install
145 -}
146 -
147 -multilib_src_install_all() {
148 - find "${D}" -name '*.la' -delete || die
149 -
150 - einstalldocs
151 -
152 - # Install exifautotran and jpegexiforient
153 - newdoc ../debian/changelog changelog.debian
154 - cd ../debian/extra
155 - emake \
156 - DESTDIR="${D}" prefix="${EPREFIX}"/usr \
157 - INSTALL="install -m755" INSTALLDIR="install -d -m755" \
158 - install
159 - # Remove +x bits from man pages.
160 - find "${ED}"/usr/share/man/ -type f -perm /1 -exec chmod a-x {} + || die
161 -}
162
163 diff --git a/media-libs/jpeg/metadata.xml b/media-libs/jpeg/metadata.xml
164 deleted file mode 100644
165 index 6f49eba8f49..00000000000
166 --- a/media-libs/jpeg/metadata.xml
167 +++ /dev/null
168 @@ -1,5 +0,0 @@
169 -<?xml version="1.0" encoding="UTF-8"?>
170 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
171 -<pkgmetadata>
172 -<!-- maintainer-needed -->
173 -</pkgmetadata>
174
175 diff --git a/profiles/package.mask b/profiles/package.mask
176 index 7913e9178af..80c2ddb1758 100644
177 --- a/profiles/package.mask
178 +++ b/profiles/package.mask
179 @@ -253,14 +253,6 @@ games-rpg/asphyxia
180 games-rpg/sakura-spirit
181 games-rpg/the-royal-trap
182
183 -# Michał Górny <mgorny@g.o> (2020-12-30)
184 -# Unmaintained. Entirely replaced by media-libs/libjpeg-turbo,
185 -# to the point that reverse dependencies no longer build with
186 -# media-libs/jpeg. The two libraries are binary-incompatible,
187 -# and the current method of switching between them is incorrect.
188 -# Removal in 30 days. Bug #762634.
189 -media-libs/jpeg
190 -
191 # Jonas Stein <jstein@g.o> (2020-12-29)
192 # Unusable without alsa.
193 # Masked for removal after 2021-02-01