X-Original-To: alpine-devel@lists.alpinelinux.org Received: from mx1.tetrasec.net (mx1.tetrasec.net [74.117.190.25]) by lists.alpinelinux.org (Postfix) with ESMTP id C24275C4ED8 for ; Thu, 29 Mar 2018 15:06:28 +0000 (GMT) Received: from mx1.tetrasec.net (mail.local [127.0.0.1]) by mx1.tetrasec.net (Postfix) with ESMTP id 4FC859E2E3C; Thu, 29 Mar 2018 15:06:28 +0000 (GMT) Received: from ncopa-desktop.copa.dup.pw (67.63.200.37.customer.cdi.no [37.200.63.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: n@tanael.org) by mx1.tetrasec.net (Postfix) with ESMTPSA id 7F8429E2183; Thu, 29 Mar 2018 15:06:27 +0000 (GMT) Date: Thu, 29 Mar 2018 17:06:23 +0200 From: Natanael Copa To: "A. Wilcox" Cc: alpine-dev Subject: Re: [alpine-devel] Concerns regarding the ImageMagick package Message-ID: <20180329170623.48b40987@ncopa-desktop.copa.dup.pw> In-Reply-To: <047dad7a-72be-84fd-bb3e-49786342fadd@adelielinux.org> References: <047dad7a-72be-84fd-bb3e-49786342fadd@adelielinux.org> X-Mailer: Claws Mail 3.15.1-dirty (GTK+ 2.24.31; x86_64-alpine-linux-musl) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Fri, 23 Mar 2018 03:07:57 -0500 "A. Wilcox" wrote: > Hello Alpinists, >=20 > We (at Ad=E9lie) have identified a few issues with the Alpine ImageMagick > package: >=20 > 1) The version of Ghostscript packaged in main/ghostscript is AGPL, not > GPL. I believe it violates the licenses of both packages to link them > together, and yet this is happening. It looks like Fedora also does this? https://src.fedoraproject.org/rpms/ImageMagick/blob/master/f/ImageMagick.sp= ec#_177 > I highly suggest that Alpine ship Ghostscript 9.06, the last GPL > version, along with Debian's security patches for it. We had to do this > when we were based on Gentoo (see > https://code.foxkit.us/adelie/packages/blob/ebuild/app-text/ghostscript-g= pl/ghostscript-gpl-9.06.ebuild > for the ebuild I wrote) because Gentoo's CUPS depends on Ghostscript. > If an APKBUILD for Ghostscript 9.06 is desired, I would be more than > happy to create one. I would prefer not use an old/abandoned version of ghostscript. It looks like you can build imagemagick with --without-libgs and the pdf.so plugin will execute an external program instead of link directly to libgs. This means that we can work around the link time license issues. I have tested and the pdf.so plugin is built but not linked with libgs. I have not tested if it actually works though. https://opensource.stackexchange.com/questions/4791/should-my-webapp-also-b= e-agpl-if-i-use-imagemagick-linked-with-ghostscript If we go that route we need to either: - document the optional dependency for ghostscript - manually add ghostscript as an explicit dependency - move pdf.so and gs.so plugins to a separate subpackage (imagemagick-pdf?) and add ghostscript as dependency for those. We could maybe even separate out the imagemagick pdf and gs plugins anyways. That way you only get the license problem when you install the plugin? > 2) ImageMagick's X11 support is disabled. I would understand that, > allowing one to use ImageMagick without installing X11 libraries, but > ImageMagick is linked against librsvg, which is linked against pango. > As shown on the Alpine package browser[1], pango pulls in libX11 and > libXext, which are ImageMagick's only X11 library dependencies. As > such, no makedepends/checkdepends modifications are technically > necessary to change to --with-x (though libx11-dev and libxext-dev would > be a good idea). Since this adds a lot of functionality and virtually > no binary size difference, we think it'd be a good idea to investigate th= is. Good idea. I will look into that. Alternatively we could put the svg.so plugin in a subpackage. Then we don't pull in the X11 libs til someone explicitly asks for svg support. > Best, > --arw >=20 >=20 > [1]: https://pkgs.alpinelinux.org/package/edge/main/s390x/pango >=20 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---