On 2023-10-23 14:07:36 +0200, Bastien ROUCARIES wrote:
> Le lun. 23 oct. 2023 à 11:45, Vincent Lefevre <[email protected]> a écrit :
> 
> > Control: found -1 8:6.9.12.98+dfsg1-2
> >
> > On 2022-09-20 18:18:23 +0200, [email protected] wrote:
> > > you are receiving this bug report, because your package declares a
> > > relationship with the gsfonts and/or gsfonts-x11 packages. Both
> > > packages have been replaced by fonts-urw-base35 since version
> > > 20200910-2 and are now merely transitional dummy packages. In order
> > > to make it possible to remove these transitional packages, please
> > > adjust the relationships for your package accordingly.
> >
> > Any news?
> >
> > This is annoying, because on imagemagick upgrade, aptitude wants
> > to reinstall gsfonts, which I had removed.
> 
> Patch welcome hère. Will apply asap

I've attached a patch.

First, the change of gsfonts to a transitional package is bogus as
it potentially breaks (silently or not) the build of packages that
expect a normal gsfonts package. The current imagemagick version
has

        --with-gs-font-dir=/usr/share/fonts/type1/gsfonts \

in its debian/rules file while the fonts were replaced by those in
the /usr/share/fonts/type1/urw-base35 directory.

That said, I don't know the consequences in practice. Apparently,
this affects the ghostscript_font_dir variable, which is used only
by config/type-ghostscript.xml.in (a typemap file).

Anyway, in the attached patch, I've replaced this line by

       --with-urw-base35-font-dir=/usr/share/fonts/type1/urw-base35 \

The other changes are the replacement of the gsfonts package by
fonts-urw-base35 in control and the control.d directory.

I don't know what to do with the tests and tests.d directories,
as rebuilding the package with this patch doesn't fail.

-- 
Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
diff -aurd imagemagick-6.9.12.98+dfsg1-a/debian/control imagemagick-6.9.12.98+dfsg1-b/debian/control
--- imagemagick-6.9.12.98+dfsg1-a/debian/control	2023-10-21 16:00:53.000000000 +0200
+++ imagemagick-6.9.12.98+dfsg1-b/debian/control	2023-10-25 22:05:51.710331333 +0200
@@ -19,7 +19,7 @@
 # for special function
  libfftw3-dev, liblcms2-dev, liblqr-1-0-dev,
 # for fonts
- libfreetype-dev, libfontconfig-dev, gsfonts,
+ libfreetype-dev, libfontconfig-dev, fonts-urw-base35,
 # for compression
  zlib1g-dev, liblzma-dev, libbz2-dev,
 # for X
@@ -227,7 +227,7 @@
 Pre-Depends: ${misc:Pre-Depends}, dpkg (>= 1.17.6)
 Depends: ${shlibs:Depends}, ${misc:Depends},
  imagemagick-6-common (>= 8:6.9.6.2+dfsg-3)
-Recommends: ghostscript, gsfonts
+Recommends: ghostscript, fonts-urw-base35
 Suggests: libmagickcore-6.q16-7-extra
 Description: low-level image manipulation library -- quantum depth Q16
  The MagickCore API is a low-level interface between the C programming language
@@ -437,7 +437,7 @@
 Pre-Depends: ${misc:Pre-Depends}, dpkg (>= 1.17.6)
 Depends: ${shlibs:Depends}, ${misc:Depends},
  imagemagick-6-common (>= 8:6.9.6.2+dfsg-3)
-Recommends: ghostscript, gsfonts
+Recommends: ghostscript, fonts-urw-base35
 Suggests: libmagickcore-6.q16hdri-7-extra
 Description: low-level image manipulation library -- quantum depth Q16HDRI
  The MagickCore API is a low-level interface between the C programming language
diff -aurd imagemagick-6.9.12.98+dfsg1-a/debian/control.d/noquantum.in imagemagick-6.9.12.98+dfsg1-b/debian/control.d/noquantum.in
--- imagemagick-6.9.12.98+dfsg1-a/debian/control.d/noquantum.in	2023-10-12 11:08:33.000000000 +0200
+++ imagemagick-6.9.12.98+dfsg1-b/debian/control.d/noquantum.in	2023-10-25 22:03:05.422726491 +0200
@@ -18,7 +18,7 @@
 # for special function
  libfftw3-dev, liblcms2-dev, liblqr-1-0-dev,
 # for fonts
- libfreetype-dev, libfontconfig-dev, gsfonts,
+ libfreetype-dev, libfontconfig-dev, fonts-urw-base35,
 # for compression
  zlib1g-dev, liblzma-dev, libbz2-dev,
 # for X
diff -aurd imagemagick-6.9.12.98+dfsg1-a/debian/control.d/quantum.in imagemagick-6.9.12.98+dfsg1-b/debian/control.d/quantum.in
--- imagemagick-6.9.12.98+dfsg1-a/debian/control.d/quantum.in	2023-10-12 11:08:33.000000000 +0200
+++ imagemagick-6.9.12.98+dfsg1-b/debian/control.d/quantum.in	2023-10-25 22:03:05.422726491 +0200
@@ -38,7 +38,7 @@
 Pre-Depends: ${misc:Pre-Depends}, dpkg (>= 1.17.6)
 Depends: ${shlibs:Depends}, ${misc:Depends},
  imagemagick-${IMVERSION}-common (>= ${COMMONMINVERSION})
-Recommends: ghostscript, gsfonts
+Recommends: ghostscript, fonts-urw-base35
 Suggests: libmagickcore-${IMVERSION}.${QUANTUMDEPTH}-${CORESOVERSION}-extra
 Description: low-level image manipulation library -- quantum depth ${UCQUANTUMDEPTH}
  The MagickCore API is a low-level interface between the C programming language
diff -aurd imagemagick-6.9.12.98+dfsg1-a/debian/rules imagemagick-6.9.12.98+dfsg1-b/debian/rules
--- imagemagick-6.9.12.98+dfsg1-a/debian/rules	2023-10-21 16:39:53.000000000 +0200
+++ imagemagick-6.9.12.98+dfsg1-b/debian/rules	2023-10-25 22:03:05.422726491 +0200
@@ -78,7 +78,7 @@
 	--mandir=/usr/share/man \
 	--infodir=/usr/share/info \
 	--with-modules \
-	--with-gs-font-dir=/usr/share/fonts/type1/gsfonts \
+	--with-urw-base35-font-dir=/usr/share/fonts/type1/urw-base35 \
 	--with-magick-plus-plus \
 	--with-djvu \
         --with-heic \

Reply via email to