Bug#882785: move gdk-pixbuf-csource to a Multi-Arch: foreign package

Helmut Grohne helmut at subdivi.de
Sun Nov 26 20:03:45 UTC 2017


Package: libgdk-pixbuf2.0-dev
Version: 2.36.11-1
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap
Control: affects -1 + src:goobox
Control: block 689125 by -1
Control: block 876183 by -1

goobox fails to cross build from source, because it fails running
gdk-pixbuf-csource with an "Exec format error". Generally, that means
that gdk-pixbuf-csource was installed for the host architecture while it
was needed for the build architecture. The interesting question is: Does
the behaviour of gdk-pixbuf-csource differ for different architectures?
After studying its documentation, I conclude "no", because it turns
images into C source code and that looks pretty much architecture
agnostic. Thus I request moving gdk-pixbuf-csource into a Multi-Arch:
foreign package. Unfortunately, satisfying this request means adding a
new binary package and thus going through the NEW queue.

This request seems to be covered by #689125 and #876183 already, so why
file a new bug? Well, those other bugs ask for more and I don't know
whether they're solvable at all. In contrast, this piece of the puzzle
seems like an incremental step that is easy to verify and has a direct
benefit (making goobox cross buildable). Fixing those other bugs will
become easier after this bug has been fixed. In particular, this new bug
does not ask to make libgdk-pixbuf2.0-dev Multi-Arch: same.

Please consider applying the attached patch.

Helmut
-------------- next part --------------
diff --minimal -Nru gdk-pixbuf-2.36.11/debian/changelog gdk-pixbuf-2.36.11/debian/changelog
--- gdk-pixbuf-2.36.11/debian/changelog	2017-10-02 18:36:35.000000000 +0200
+++ gdk-pixbuf-2.36.11/debian/changelog	2017-11-26 20:32:09.000000000 +0100
@@ -1,3 +1,10 @@
+gdk-pixbuf (2.36.11-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Move gdk-pixbuf-csource to a Multi-Arch: foreign package. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Sun, 26 Nov 2017 20:32:09 +0100
+
 gdk-pixbuf (2.36.11-1) unstable; urgency=medium
 
   * New upstream release
diff --minimal -Nru gdk-pixbuf-2.36.11/debian/control gdk-pixbuf-2.36.11/debian/control
--- gdk-pixbuf-2.36.11/debian/control	2017-10-02 18:36:35.000000000 +0200
+++ gdk-pixbuf-2.36.11/debian/control	2017-11-26 20:32:09.000000000 +0100
@@ -83,6 +83,23 @@
  .
  This package contains the header files which are needed for using GDK Pixbuf.
 
+Package: libgdk-pixbuf2.0-dev-bin
+Section: libdevel
+Architecture: any
+Multi-Arch: foreign
+Depends: ${misc:Depends},
+         ${shlibs:Depends},
+Breaks: libgdk-pixbuf2.0-dev (<< 2.36.11-1.1~)
+Replaces: libgdk-pixbuf2.0-dev (<< 2.36.11-1.1~)
+Description: GDK Pixbuf library (development tools)
+ The GDK Pixbuf library provides:
+  - Image loading and saving facilities.
+  - Fast scaling and compositing of pixbufs.
+  - Simple animation loading (ie. animated GIFs)
+ .
+ This package is an implementation detail of libgdk-pixbuf2.0-dev and should
+ not be installed directly.
+
 Package: libgdk-pixbuf2.0-doc
 Section: doc
 Architecture: all
diff --minimal -Nru gdk-pixbuf-2.36.11/debian/control.in gdk-pixbuf-2.36.11/debian/control.in
--- gdk-pixbuf-2.36.11/debian/control.in	2017-09-04 01:47:26.000000000 +0200
+++ gdk-pixbuf-2.36.11/debian/control.in	2017-11-26 20:32:09.000000000 +0100
@@ -79,6 +79,23 @@
  .
  This package contains the header files which are needed for using GDK Pixbuf.
 
+Package: libgdk-pixbuf2.0-dev-bin
+Section: libdevel
+Architecture: any
+Multi-Arch: foreign
+Depends: ${misc:Depends},
+         ${shlibs:Depends},
+Breaks: libgdk-pixbuf2.0-dev (<< 2.36.11-1.1~)
+Replaces: libgdk-pixbuf2.0-dev (<< 2.36.11-1.1~)
+Description: GDK Pixbuf library (development tools)
+ The GDK Pixbuf library provides:
+  - Image loading and saving facilities.
+  - Fast scaling and compositing of pixbufs.
+  - Simple animation loading (ie. animated GIFs)
+ .
+ This package is an implementation detail of libgdk-pixbuf2.0-dev and should
+ not be installed directly.
+
 Package: libgdk-pixbuf2.0-doc
 Section: doc
 Architecture: all
diff --minimal -Nru gdk-pixbuf-2.36.11/debian/libgdk-pixbuf2.0-dev-bin.install gdk-pixbuf-2.36.11/debian/libgdk-pixbuf2.0-dev-bin.install
--- gdk-pixbuf-2.36.11/debian/libgdk-pixbuf2.0-dev-bin.install	1970-01-01 01:00:00.000000000 +0100
+++ gdk-pixbuf-2.36.11/debian/libgdk-pixbuf2.0-dev-bin.install	2017-11-26 20:32:09.000000000 +0100
@@ -0,0 +1,2 @@
+usr/bin/gdk-pixbuf-csource
+usr/share/man/man1/gdk-pixbuf-csource.1
diff --minimal -Nru gdk-pixbuf-2.36.11/debian/libgdk-pixbuf2.0-dev.install gdk-pixbuf-2.36.11/debian/libgdk-pixbuf2.0-dev.install
--- gdk-pixbuf-2.36.11/debian/libgdk-pixbuf2.0-dev.install	2012-03-16 04:17:44.000000000 +0100
+++ gdk-pixbuf-2.36.11/debian/libgdk-pixbuf2.0-dev.install	2017-11-26 20:32:09.000000000 +0100
@@ -1,7 +1,6 @@
-usr/bin/gdk-pixbuf-csource
 usr/bin/gdk-pixbuf-pixdata
 usr/include
 usr/lib/*/*.so
 usr/lib/*/pkgconfig
 usr/share/gir-1.0
-usr/share/man/man1
+usr/share/man/man1/gdk-pixbuf-query-loaders.1


More information about the pkg-gnome-maintainers mailing list