Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.rc > #364994
| From | Julian Wollrath <jwollrath@web.de> |
|---|---|
| Newsgroups | linux.debian.bugs.rc |
| Subject | Bug#1072963: jpeg-xl: Failing autopkgtests on non-amd64 |
| Date | 2024-06-11 15:00 +0200 |
| Message-ID | <IO9gu-29uF-3@gated-at.bofh.it> (permalink) |
| References | (3 earlier) <IO7HH-28HD-7@gated-at.bofh.it> <IO813-28Ou-1@gated-at.bofh.it> <IO8Nr-29kB-1@gated-at.bofh.it> <INWjf-21vy-5@gated-at.bofh.it> <IO8Nr-29kB-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Am Di, 11 Jun 2024 13:22:29 +0100
schrieb Simon McVittie <smcv@debian.org>:
> On Tue, 11 Jun 2024 at 13:28:52 +0200, Chris Hofstaedtler wrote:
> > Maybe smcv can chime in here.
>
> [...]
> > I think there is a better way than running a
> > postinst script in each individual package (triggers?).
>
> Yes, there is a better way, and it is triggers.
>
> libgdk-pixbuf-2.0-0 registers a trigger on
> /usr/lib/MULTIARCH/gdk-pixbuf-2.0/2.10.0/loaders which should result
> in it automatically running
> /usr/lib/MULTIARCH/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders
> every time a package that provides a gdk-pixbuf loader is installed,
> removed or updated.
>
> As a result, a jpeg-xl loader for gdk-pixbuf should not need to do
> anything special in its postinst at all: it should install a loader
> that matches the naming convention set by gdk-pixbuf, and that should
> be enough for the gdk-pixbuf packaging to handle the rest. If the
> trigger is not sufficient, please report a bug with
> steps-to-reproduce.
>
> The naming convention is ${gdk_pixbuf_moduledir}/*.so, where
> ${gdk_pixbuf_moduledir} should be discovered at build-time from
> the gdk-pixbuf-2.0 pkgconf module. Hopefully the upstream build system
> already does this correctly.
>
> heif-gdk-pixbuf from src:libheif, librsvg2-common from src:rsvg, and
> webp-pixbuf-loader from src:webp-pixbuf-loader might be good examples
> of a working gdk-pixbuf loader.
>
> heif-gdk-pixbuf and webp-pixbuf-loader do not seem to have any
> hand-written code in their postinsts at all, so they completely rely
> on gdk-pixbuf's triggers, and that seems to work fine in practice.
Thank you for the explanation. Then the postinst/postrm scripts can be
dropped, since the trigger triggers.
Cheers,
Julian
--
() ascii ribbon campaign - against html e-mail
/\ - against proprietary attachments
Back to linux.debian.bugs.rc | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Bug#1072963: jpeg-xl: Failing autopkgtests on non-amd64 Mathieu Malaterre <malat@debian.org> - 2024-06-11 08:30 +0200
Bug#1072963: jpeg-xl: Failing autopkgtests on non-amd64 Julian Wollrath <jwollrath@web.de> - 2024-06-11 13:20 +0200
Bug#1072963: jpeg-xl: Failing autopkgtests on non-amd64 Simon McVittie <smcv@debian.org> - 2024-06-11 14:30 +0200
Bug#1072963: jpeg-xl: Failing autopkgtests on non-amd64 Julian Wollrath <jwollrath@web.de> - 2024-06-11 15:00 +0200
Bug#1072963: jpeg-xl: Failing autopkgtests on non-amd64 Julian Wollrath <jwollrath@web.de> - 2024-06-11 14:30 +0200
Bug#1072963: jpeg-xl: Failing autopkgtests on non-amd64 Julian Wollrath <jwollrath@web.de> - 2024-06-12 21:10 +0200
Processed: Re: Bug#1072963: jpeg-xl: Failing autopkgtests on non-amd64 "Debian Bug Tracking System" <owner@bugs.debian.org> - 2024-06-12 21:10 +0200
csiph-web