diff -Nru python-reportlab-4.1.0/debian/changelog python-reportlab-4.1.0/debian/changelog --- python-reportlab-4.1.0/debian/changelog 2024-02-12 14:18:26.000000000 +0000 +++ python-reportlab-4.1.0/debian/changelog 2024-03-19 18:09:52.000000000 +0000 @@ -1,3 +1,30 @@ +python-reportlab (4.1.0-4) unstable; urgency=medium + + * added autopkgtests + * cleaned the patch t1searchpath.patch + * install callig15 fonts + * rewritten d/copyright to comply with copyright-format/1.0/ + * removed copyright mentions about LibHnj since the relevant files are no + longer part of ReportLab (they were C code, compiled to the older library + pyHnj.x86_64-linux-gnu.so) + + -- Georges Khaznadar Tue, 19 Mar 2024 19:09:52 +0100 + +python-reportlab (4.1.0-3) unstable; urgency=medium + + * install DarkGardenMK fonts + * add symlinks for .afm files, regarding urw-base35 fonts + * fixed the brute-force search path for T1 fonts + + -- Georges Khaznadar Tue, 19 Mar 2024 18:22:03 +0100 + +python-reportlab (4.1.0-2) unstable; urgency=medium + + * reduced the number of plain dependencies on fonts packages. + Closes: #1051487 + + -- Georges Khaznadar Tue, 12 Mar 2024 16:29:00 +0100 + python-reportlab (4.1.0-1) unstable; urgency=medium * ignore some generated files @@ -654,7 +681,7 @@ python-reportlab (1.20debian-2) unstable; urgency=low - * New maintainer + * New maintainer * Fixed README.Debian * added debian/compat * debian/control: bumped Standards-Version to 3.6.2 diff -Nru python-reportlab-4.1.0/debian/control python-reportlab-4.1.0/debian/control --- python-reportlab-4.1.0/debian/control 2023-12-16 14:25:01.000000000 +0000 +++ python-reportlab-4.1.0/debian/control 2024-03-19 18:09:52.000000000 +0000 @@ -10,6 +10,9 @@ libfreetype-dev, sharutils, python3-pil, + fonts-urw-base35, + fonts-dejavu-core, + fonts-dejavu-extra, python3-sphinx Homepage: https://www.reportlab.com/opensource/ Vcs-Browser: https://salsa.debian.org/python-team/packages/python-reportlab @@ -17,14 +20,16 @@ Package: python3-reportlab Architecture: all -Depends: ${python3:Depends}, +Depends: + ${python3:Depends}, ${misc:Depends}, python3-rlpycairo, python3-freetype, + fonts-urw-base35, +Recommends: + python3-pil, fonts-dejavu-core, fonts-dejavu-extra, - fonts-urw-base35, -Recommends: python3-pil Conflicts: python3-reportlab-accel (<= 4.0.4), python3-renderpm (<= 4.0.4) Provides: python3-reportlab-accel, @@ -49,9 +54,9 @@ Sample use cases are: * Dynamic PDF generation on the web * High-volume corporate reporting and database publishing - * As embeddable print engine for other applications, including a + * As embeddable print engine for other applications, including a 'report language' so that users can customize their own reports. - * As 'build system' for complex documents with charts, tables and text + * As 'build system' for complex documents with charts, tables and text such as management accounts, statistical reports and scientific papers * from XML to PDF in one step diff -Nru python-reportlab-4.1.0/debian/copyright python-reportlab-4.1.0/debian/copyright --- python-reportlab-4.1.0/debian/copyright 2023-06-17 19:44:10.000000000 +0000 +++ python-reportlab-4.1.0/debian/copyright 2024-03-19 18:09:52.000000000 +0000 @@ -1,230 +1,149 @@ -This is the Debian package of ReportLab, a Python library to creat PDF -documents. The Debian package of ReportLab was put together by Gregor Hoffleit -. - -The upstream source for ReportLab is http://www.reportlab.com/. - -ReportLab was written by ReportLab Inc. . - - - -Most of ReportLab is Copyright (c) 2000-2014, ReportLab Inc., and -licensed under the terms listed below. - -Portions of the code included in ReportLab (LibHnj - a library for -high quality hyphenation and justification) are Copyright (C) 1998 -Raph Levien, and are dual licensed under LGPL and MPL, see below (on -Debian systems, the complete text of the LGPL can be found as -/usr/share/common-licenses/LGPL, the complete text of the MPL is -available as http://www.mozilla.org/MPL/). - -This is the license of ReportLab: - -##################################################################################### -# -# Copyright (c) 2000-2008, ReportLab Inc. -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: -# -# * Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# * Neither the name of the company nor the names of its contributors may be -# used to endorse or promote products derived from this software without -# specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -# IN NO EVENT SHALL THE OFFICERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -# TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER -# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING -# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -# SUCH DAMAGE. -# -##################################################################################### - - -------------------------------------------------------------------------------- -/* LibHnj is dual licensed under LGPL and MPL. Boilerplate for both - * licenses follows. - */ - -/* LibHnj - a library for high quality hyphenation and justification - * Copyright (C) 1998 Raph Levien - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Library General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Library General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * if not, see . -*/ - -/* - * The contents of this file are subject to the Mozilla Public License - * Version 1.0 (the "MPL"); you may not use this file except in - * compliance with the MPL. You may obtain a copy of the MPL at - * http://www.mozilla.org/MPL/ - * - * Software distributed under the MPL is distributed on an "AS IS" basis, - * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the MPL - * for the specific language governing rights and limitations under the - * MPL. - * - */ -------------------------------------------------------------------------------- - -src/rl_addons/renderPM/gt1/parseAFM.c: - -/* - * (C) 1988, 1989, 1990 by Adobe Systems Incorporated. All rights reserved. - * - * This file may be freely copied and redistributed as long as: - * 1) This entire notice continues to be included in the file, - * 2) If the file has been modified in any way, a notice of such - * modification is conspicuously indicated. - * - * PostScript, Display PostScript, and Adobe are registered trademarks of - * Adobe Systems Incorporated. - * - * ************************************************************************ - * THE INFORMATION BELOW IS FURNISHED AS IS, IS SUBJECT TO CHANGE WITHOUT - * NOTICE, AND SHOULD NOT BE CONSTRUED AS A COMMITMENT BY ADOBE SYSTEMS - * INCORPORATED. ADOBE SYSTEMS INCORPORATED ASSUMES NO RESPONSIBILITY OR - * LIABILITY FOR ANY ERRORS OR INACCURACIES, MAKES NO WARRANTY OF ANY - * KIND (EXPRESS, IMPLIED OR STATUTORY) WITH RESPECT TO THIS INFORMATION, - * AND EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR PARTICULAR PURPOSES AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. - * ************************************************************************ - */ - -src/rl_addons/renderPM/libart_lgpl/ - -Upstream Author: Raph Levien - -Copyright: 1998, 1999, 2000, 2001 Raph Levien - -License: - - This package is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This package is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - if not, see . - -On Debian systems, the complete text of the GNU Lesser General -Public License can be found in `/usr/share/common-licenses/LGPL'. - - -src/reportlab/fonts/DarkGarden*: - - Copyright (C) 1999, 2000, 2004 Michal Kosmulski - - This font is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This font is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - if not, see . - - As a special exception, if you create a document which uses - this font, and embed this font or unaltered portions of this font into - the document, this font does not by itself cause the resulting - document to be covered by the GNU General Public License. This - exception does not however invalidate any other reasons why the - document might be covered by the GNU General Public License. If you - modify this font, you may extend this exception to your version of the - font, but you are not obligated to do so. If you do not wish to do so, - delete this exception statement from your version. - -On Debian GNU/Linux systems, the complete text of the GNU General -Public License is in `/usr/share/common-licenses/GPL'. - -src/reportlab/fonts/Vera*: - -Bitstream Vera Fonts Copyright - -The fonts have a generous copyright, allowing derivative works (as -long as "Bitstream" or "Vera" are not in the names), and full -redistribution (so long as they are not *sold* by themselves). They -can be be bundled, redistributed and sold with any software. - -The fonts are distributed under the following copyright: - -Copyright -========= - -Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved. Bitstream -Vera is a trademark of Bitstream, Inc. - -Permission is hereby granted, free of charge, to any person obtaining -a copy of the fonts accompanying this license ("Fonts") and associated -documentation files (the "Font Software"), to reproduce and distribute -the Font Software, including without limitation the rights to use, -copy, merge, publish, distribute, and/or sell copies of the Font -Software, and to permit persons to whom the Font Software is furnished -to do so, subject to the following conditions: - -The above copyright and trademark notices and this permission notice -shall be included in all copies of one or more of the Font Software -typefaces. - -The Font Software may be modified, altered, or added to, and in -particular the designs of glyphs or characters in the Fonts may be -modified and additional glyphs or characters may be added to the -Fonts, only if the fonts are renamed to names not containing either -the words "Bitstream" or the word "Vera". - -This License becomes null and void to the extent applicable to Fonts -or Font Software that has been modified and is distributed under the -"Bitstream Vera" names. - -The Font Software may be sold as part of a larger software package but -no copy of one or more of the Font Software typefaces may be sold by -itself. - -THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT -OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL -BITSTREAM OR THE GNOME FOUNDATION BE LIABLE FOR ANY CLAIM, DAMAGES OR -OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, -OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR -OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT -SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. - -Except as contained in this notice, the names of Gnome, the Gnome -Foundation, and Bitstream Inc., shall not be used in advertising or -otherwise to promote the sale, use or other dealings in this Font -Software without prior written authorization from the Gnome Foundation -or Bitstream Inc., respectively. For further information, contact: -fonts at gnome dot org. +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: ReportLab +Upstream-Contact: ReportLab Inc. +Source: http://www.reportlab.com + +Files: * +Copyright: 2000-2014, ReportLab Inc. +License: ReportLab-License + +Files: src/reportlab/fonts/DarkGarden* +Copyright: 1999, 2000, 2004 Michal Kosmulski +License: GPL-2-with-exception + +Files: src/reportlab/fonts/Vera* +Copyright: 2003 Bitstream, Inc. +License: Bitstream-License + +Files: src/reportlab/fonts/callig15* +Copyright: 1992 Peter Vanroose + 1999 S. Dachian +License: Vanroose-License + +Files: debian/* +Copyright: 2000-2003 Gregor Hoffleit + 2023-2024 Georges Khaznadar +License: GPL-2+ + +License: ReportLab-License + Copyright (c) 2000-2008, ReportLab Inc. + All rights reserved. + . + Redistribution and use in source and binary forms, with or without modification, + are permitted provided that the following conditions are met: + . + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of the company nor the names of its contributors may be + used to endorse or promote products derived from this software without + specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + IN NO EVENT SHALL THE OFFICERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED + TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; + OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER + IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING + IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + SUCH DAMAGE. + +License: GPL-2-with-exception + This font is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + . + This font is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this font; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + . + As a special exception, if you create a document which uses + this font, and embed this font or unaltered portions of this font into + the document, this font does not by itself cause the resulting + document to be covered by the GNU General Public License. This + exception does not however invalidate any other reasons why the + document might be covered by the GNU General Public License. If you + modify this font, you may extend this exception to your version of the + font, but you are not obligated to do so. If you do not wish to do so, + delete this exception statement from your version. + +Comment: Bitstream Vera Fonts Copyright + The fonts have a generous copyright, allowing derivative works (as + long as "Bitstream" or "Vera" are not in the names), and full + redistribution (so long as they are not *sold* by themselves). They + can be be bundled, redistributed and sold with any software. + +License: Bitstream-License + Permission is hereby granted, free of charge, to any person obtaining + a copy of the fonts accompanying this license ("Fonts") and associated + documentation files (the "Font Software"), to reproduce and distribute + the Font Software, including without limitation the rights to use, + copy, merge, publish, distribute, and/or sell copies of the Font + Software, and to permit persons to whom the Font Software is furnished + to do so, subject to the following conditions: + . + The above copyright and trademark notices and this permission notice + shall be included in all copies of one or more of the Font Software + typefaces. + . + The Font Software may be modified, altered, or added to, and in + particular the designs of glyphs or characters in the Fonts may be + modified and additional glyphs or characters may be added to the + Fonts, only if the fonts are renamed to names not containing either + the words "Bitstream" or the word "Vera". + . + This License becomes null and void to the extent applicable to Fonts + or Font Software that has been modified and is distributed under the + "Bitstream Vera" names. + . + The Font Software may be sold as part of a larger software package but + no copy of one or more of the Font Software typefaces may be sold by + itself. + . + THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT + OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL + BITSTREAM OR THE GNOME FOUNDATION BE LIABLE FOR ANY CLAIM, DAMAGES OR + OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, + OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR + OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT + SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. + . + Except as contained in this notice, the names of Gnome, the Gnome + Foundation, and Bitstream Inc., shall not be used in advertising or + otherwise to promote the sale, use or other dealings in this Font + Software without prior written authorization from the Gnome Foundation + or Bitstream Inc., respectively. For further information, contact: + fonts at gnome dot org. + +License: Vanroose-License + You may freely use, modify and/or distribute this file, as long as + this copyright notice is retained + +License: GPL-2+ + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + . + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see + . + On Debian systems, the complete text of the GNU General + Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". \ No newline at end of file diff -Nru python-reportlab-4.1.0/debian/patches/C059-Roman-font-default.diff python-reportlab-4.1.0/debian/patches/C059-Roman-font-default.diff --- python-reportlab-4.1.0/debian/patches/C059-Roman-font-default.diff 1970-01-01 00:00:00.000000000 +0000 +++ python-reportlab-4.1.0/debian/patches/C059-Roman-font-default.diff 2024-03-12 15:22:40.000000000 +0000 @@ -0,0 +1,16 @@ +Index: python-reportlab/src/reportlab/graphics/utils.py +=================================================================== +--- python-reportlab.orig/src/reportlab/graphics/utils.py ++++ python-reportlab/src/reportlab/graphics/utils.py +@@ -84,6 +84,11 @@ def __makeTextPathsCode__(tp=None, _TP = + path_or_stream = getattr(font.face,'pfbFileName',None) + if not path_or_stream: + path_or_stream = font.face.findT1File() ++ if not path_or_stream: ++ # the T1 file was not yet found! ++ # fall back to C059-Roman ++ font = getFont("C059-Roman") ++ path_or_stream = getattr(font.face,'pfbFileName',None) + face = freetype.Face(path_or_stream) + self.faces[fontName] = (face,font) + return self.faces[fontName] diff -Nru python-reportlab-4.1.0/debian/patches/dejavu-font-default.diff python-reportlab-4.1.0/debian/patches/dejavu-font-default.diff --- python-reportlab-4.1.0/debian/patches/dejavu-font-default.diff 2023-08-23 17:02:58.000000000 +0000 +++ python-reportlab-4.1.0/debian/patches/dejavu-font-default.diff 1970-01-01 00:00:00.000000000 +0000 @@ -1,23 +0,0 @@ -Index: python-reportlab/src/reportlab/graphics/utils.py -=================================================================== ---- python-reportlab.orig/src/reportlab/graphics/utils.py -+++ python-reportlab/src/reportlab/graphics/utils.py -@@ -84,6 +84,18 @@ def __makeTextPathsCode__(tp=None, _TP = - path_or_stream = getattr(font.face,'pfbFileName',None) - if not path_or_stream: - path_or_stream = font.face.findT1File() -+ if not path_or_stream: -+ # the T1 file was not yet found! -+ # fall back to Vera TTF font -+ import reportlab.rl_config -+ reportlab.rl_config.warnOnMissingFontGlyphs = 0 -+ from reportlab.pdfbase import pdfmetrics -+ from reportlab.pdfbase.ttfonts import TTFont -+ pdfmetrics.registerFont(TTFont( -+ 'DejaVuSans', 'DejaVuSans.ttf')) -+ font = getFont("DejaVuSans") -+ path_or_stream = font.face._ttf_data -+ path_or_stream = io.BytesIO(path_or_stream) - face = freetype.Face(path_or_stream) - self.faces[fontName] = (face,font) - return self.faces[fontName] diff -Nru python-reportlab-4.1.0/debian/patches/series python-reportlab-4.1.0/debian/patches/series --- python-reportlab-4.1.0/debian/patches/series 2023-08-24 08:33:47.000000000 +0000 +++ python-reportlab-4.1.0/debian/patches/series 2024-03-19 17:00:58.000000000 +0000 @@ -1,4 +1,5 @@ gsfonts.diff reproducible-build.patch reportlab-version.diff -dejavu-font-default.diff +C059-Roman-font-default.diff +t1searchpath.patch diff -Nru python-reportlab-4.1.0/debian/patches/t1searchpath.patch python-reportlab-4.1.0/debian/patches/t1searchpath.patch --- python-reportlab-4.1.0/debian/patches/t1searchpath.patch 1970-01-01 00:00:00.000000000 +0000 +++ python-reportlab-4.1.0/debian/patches/t1searchpath.patch 2024-03-19 18:09:52.000000000 +0000 @@ -0,0 +1,26 @@ +Index: python-reportlab/src/reportlab/rl_settings.py +=================================================================== +--- python-reportlab.orig/src/reportlab/rl_settings.py ++++ python-reportlab/src/reportlab/rl_settings.py +@@ -200,6 +200,8 @@ T1SearchPath = ( + '~/.fonts', + '%(XDG_DATA_HOME)s/fonts', + '~/.local/share/fonts', ++ '/usr/lib/python3/dist-packages/reportlab/fonts', ++ '/usr/share/fonts/X11/Type1/', + ) + + # places to look for TT Font information +Index: python-reportlab/src/reportlab/pdfbase/pdfmetrics.py +=================================================================== +--- python-reportlab.orig/src/reportlab/pdfbase/pdfmetrics.py ++++ python-reportlab/src/reportlab/pdfbase/pdfmetrics.py +@@ -194,7 +194,7 @@ def bruteForceSearchForAFM(faceName): + """Looks in all AFM files on path for face with given name. + + Returns AFM file name or None. Ouch!""" +- from reportlab.rl_config import T1SearchPath ++ from reportlab.rl_settings import T1SearchPath + + for dirname in T1SearchPath: + if not rl_isdir(dirname): continue diff -Nru python-reportlab-4.1.0/debian/python3-reportlab.install python-reportlab-4.1.0/debian/python3-reportlab.install --- python-reportlab-4.1.0/debian/python3-reportlab.install 2023-08-24 08:22:31.000000000 +0000 +++ python-reportlab-4.1.0/debian/python3-reportlab.install 2024-03-19 18:09:52.000000000 +0000 @@ -1 +1,3 @@ -src/reportlab/fonts/Vera* usr/lib/python3/dist-packages/reportlab/fonts +src/reportlab/fonts/Vera* usr/lib/python3/dist-packages/reportlab/fonts +src/reportlab/fonts/DarkGardenMK.* usr/lib/python3/dist-packages/reportlab/fonts +src/reportlab/fonts/callig15.* usr/lib/python3/dist-packages/reportlab/fonts diff -Nru python-reportlab-4.1.0/debian/python3-reportlab.links python-reportlab-4.1.0/debian/python3-reportlab.links --- python-reportlab-4.1.0/debian/python3-reportlab.links 2023-08-24 08:12:28.000000000 +0000 +++ python-reportlab-4.1.0/debian/python3-reportlab.links 2024-03-19 17:15:29.000000000 +0000 @@ -1,4 +1,5 @@ -# linking all the files provided by the dependency +# linking all the files provided by the dependency +# TTF files /usr/share/fonts/truetype/dejavu/DejaVuMathTeXGyre.ttf usr/lib/python3/dist-packages/reportlab/fonts/DejaVuMathTeXGyre.ttf /usr/share/fonts/truetype/dejavu/DejaVuSans-BoldOblique.ttf usr/lib/python3/dist-packages/reportlab/fonts/DejaVuSans-BoldOblique.ttf /usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf usr/lib/python3/dist-packages/reportlab/fonts/DejaVuSans-Bold.ttf @@ -23,6 +24,8 @@ /usr/share/fonts/truetype/dejavu/DejaVuSerif.ttf usr/lib/python3/dist-packages/reportlab/fonts/DejaVuSerif.ttf # other links to replace files provided in src/reportlab/fonts +# PFB files + /usr/share/fonts/X11/Type1/C059-BdIta.pfb usr/lib/python3/dist-packages/reportlab/fonts/C059-BdIta.pfb /usr/share/fonts/X11/Type1/C059-Bold.pfb usr/lib/python3/dist-packages/reportlab/fonts/C059-Bold.pfb /usr/share/fonts/X11/Type1/C059-Italic.pfb usr/lib/python3/dist-packages/reportlab/fonts/C059-Italic.pfb @@ -58,3 +61,41 @@ /usr/share/fonts/X11/Type1/URWGothic-Demi.pfb usr/lib/python3/dist-packages/reportlab/fonts/URWGothic-Demi.pfb /usr/share/fonts/X11/Type1/URWGothic-DemiOblique.pfb usr/lib/python3/dist-packages/reportlab/fonts/URWGothic-DemiOblique.pfb /usr/share/fonts/X11/Type1/Z003-MediumItalic.pfb usr/lib/python3/dist-packages/reportlab/fonts/Z003-MediumItalic.pfb + +# AFM files + +/usr/share/fonts/type1/urw-base35/C059-BdIta.afm usr/lib/python3/dist-packages/reportlab/fonts/C059-BdIta.afm +/usr/share/fonts/type1/urw-base35/C059-Bold.afm usr/lib/python3/dist-packages/reportlab/fonts/C059-Bold.afm +/usr/share/fonts/type1/urw-base35/C059-Italic.afm usr/lib/python3/dist-packages/reportlab/fonts/C059-Italic.afm +/usr/share/fonts/type1/urw-base35/C059-Roman.afm usr/lib/python3/dist-packages/reportlab/fonts/C059-Roman.afm +/usr/share/fonts/type1/urw-base35/D050000L.afm usr/lib/python3/dist-packages/reportlab/fonts/D050000L.afm +/usr/share/fonts/type1/urw-base35/NimbusMonoPS-Bold.afm usr/lib/python3/dist-packages/reportlab/fonts/NimbusMonoPS-Bold.afm +/usr/share/fonts/type1/urw-base35/NimbusMonoPS-BoldItalic.afm usr/lib/python3/dist-packages/reportlab/fonts/NimbusMonoPS-BoldItalic.afm +/usr/share/fonts/type1/urw-base35/NimbusMonoPS-Italic.afm usr/lib/python3/dist-packages/reportlab/fonts/NimbusMonoPS-Italic.afm +/usr/share/fonts/type1/urw-base35/NimbusMonoPS-Regular.afm usr/lib/python3/dist-packages/reportlab/fonts/NimbusMonoPS-Regular.afm +/usr/share/fonts/type1/urw-base35/NimbusRoman-Bold.afm usr/lib/python3/dist-packages/reportlab/fonts/NimbusRoman-Bold.afm +/usr/share/fonts/type1/urw-base35/NimbusRoman-BoldItalic.afm usr/lib/python3/dist-packages/reportlab/fonts/NimbusRoman-BoldItalic.afm +/usr/share/fonts/type1/urw-base35/NimbusRoman-Italic.afm usr/lib/python3/dist-packages/reportlab/fonts/NimbusRoman-Italic.afm +/usr/share/fonts/type1/urw-base35/NimbusRoman-Regular.afm usr/lib/python3/dist-packages/reportlab/fonts/NimbusRoman-Regular.afm +/usr/share/fonts/type1/urw-base35/NimbusSans-Bold.afm usr/lib/python3/dist-packages/reportlab/fonts/NimbusSans-Bold.afm +/usr/share/fonts/type1/urw-base35/NimbusSans-BoldItalic.afm usr/lib/python3/dist-packages/reportlab/fonts/NimbusSans-BoldItalic.afm +/usr/share/fonts/type1/urw-base35/NimbusSans-Italic.afm usr/lib/python3/dist-packages/reportlab/fonts/NimbusSans-Italic.afm +/usr/share/fonts/type1/urw-base35/NimbusSans-Regular.afm usr/lib/python3/dist-packages/reportlab/fonts/NimbusSans-Regular.afm +/usr/share/fonts/type1/urw-base35/NimbusSansNarrow-Bold.afm usr/lib/python3/dist-packages/reportlab/fonts/NimbusSansNarrow-Bold.afm +/usr/share/fonts/type1/urw-base35/NimbusSansNarrow-BoldOblique.afm usr/lib/python3/dist-packages/reportlab/fonts/NimbusSansNarrow-BoldOblique.afm +/usr/share/fonts/type1/urw-base35/NimbusSansNarrow-Oblique.afm usr/lib/python3/dist-packages/reportlab/fonts/NimbusSansNarrow-Oblique.afm +/usr/share/fonts/type1/urw-base35/NimbusSansNarrow-Regular.afm usr/lib/python3/dist-packages/reportlab/fonts/NimbusSansNarrow-Regular.afm +/usr/share/fonts/type1/urw-base35/P052-Bold.afm usr/lib/python3/dist-packages/reportlab/fonts/P052-Bold.afm +/usr/share/fonts/type1/urw-base35/P052-BoldItalic.afm usr/lib/python3/dist-packages/reportlab/fonts/P052-BoldItalic.afm +/usr/share/fonts/type1/urw-base35/P052-Italic.afm usr/lib/python3/dist-packages/reportlab/fonts/P052-Italic.afm +/usr/share/fonts/type1/urw-base35/P052-Roman.afm usr/lib/python3/dist-packages/reportlab/fonts/P052-Roman.afm +/usr/share/fonts/type1/urw-base35/StandardSymbolsPS.afm usr/lib/python3/dist-packages/reportlab/fonts/StandardSymbolsPS.afm +/usr/share/fonts/type1/urw-base35/URWBookman-Demi.afm usr/lib/python3/dist-packages/reportlab/fonts/URWBookman-Demi.afm +/usr/share/fonts/type1/urw-base35/URWBookman-DemiItalic.afm usr/lib/python3/dist-packages/reportlab/fonts/URWBookman-DemiItalic.afm +/usr/share/fonts/type1/urw-base35/URWBookman-Light.afm usr/lib/python3/dist-packages/reportlab/fonts/URWBookman-Light.afm +/usr/share/fonts/type1/urw-base35/URWBookman-LightItalic.afm usr/lib/python3/dist-packages/reportlab/fonts/URWBookman-LightItalic.afm +/usr/share/fonts/type1/urw-base35/URWGothic-Book.afm usr/lib/python3/dist-packages/reportlab/fonts/URWGothic-Book.afm +/usr/share/fonts/type1/urw-base35/URWGothic-BookOblique.afm usr/lib/python3/dist-packages/reportlab/fonts/URWGothic-BookOblique.afm +/usr/share/fonts/type1/urw-base35/URWGothic-Demi.afm usr/lib/python3/dist-packages/reportlab/fonts/URWGothic-Demi.afm +/usr/share/fonts/type1/urw-base35/URWGothic-DemiOblique.afm usr/lib/python3/dist-packages/reportlab/fonts/URWGothic-DemiOblique.afm +/usr/share/fonts/type1/urw-base35/Z003-MediumItalic.afm usr/lib/python3/dist-packages/reportlab/fonts/Z003-MediumItalic.afm diff -Nru python-reportlab-4.1.0/debian/python3-reportlab.lintian-overrides python-reportlab-4.1.0/debian/python3-reportlab.lintian-overrides --- python-reportlab-4.1.0/debian/python3-reportlab.lintian-overrides 1970-01-01 00:00:00.000000000 +0000 +++ python-reportlab-4.1.0/debian/python3-reportlab.lintian-overrides 2024-03-19 18:09:52.000000000 +0000 @@ -0,0 +1,4 @@ +# the copyrights of those files are documented in d/copyright + +python3-reportlab: license-problem-font-adobe-copyrighted-fragment [usr/lib/python3/dist-packages/reportlab/fonts/DarkGardenMK.pfb] +python3-reportlab: license-problem-font-adobe-copyrighted-fragment [usr/lib/python3/dist-packages/reportlab/fonts/callig15.pfb] diff -Nru python-reportlab-4.1.0/debian/rules python-reportlab-4.1.0/debian/rules --- python-reportlab-4.1.0/debian/rules 2023-07-01 18:29:33.000000000 +0000 +++ python-reportlab-4.1.0/debian/rules 2024-03-19 18:09:52.000000000 +0000 @@ -43,6 +43,11 @@ rm -f debian/python3-reportlab/usr/lib/python3/*-packages/reportlab/README.txt rm -f debian/python3-reportlab/usr/lib/python3/*-packages/reportlab/CHANGES.txt + : # copy tests, then remove useless contents + target_dir=debian/python3-reportlab/usr/share/doc/python3-reportlab; \ + mkdir -p $${target_dir}; cp -a tests $${target_dir}; \ + rm -f $${target_dir}/tests/*-out/* + : # Replace all '#!' calls to python with python3 : # and make them executable for i in `find debian/python3-reportlab -type f`; do \ diff -Nru python-reportlab-4.1.0/debian/salsa-ci.yml python-reportlab-4.1.0/debian/salsa-ci.yml --- python-reportlab-4.1.0/debian/salsa-ci.yml 1970-01-01 00:00:00.000000000 +0000 +++ python-reportlab-4.1.0/debian/salsa-ci.yml 2024-03-19 18:09:52.000000000 +0000 @@ -0,0 +1,10 @@ +# For more information on what jobs are run see: +# https://salsa.debian.org/salsa-ci-team/pipeline +# +# To enable the jobs, go to your repository (at salsa.debian.org) +# and click over Settings > CI/CD > Expand (in General pipelines). +# In "CI/CD configuration file" write debian/salsa-ci.yml and click +# in "Save Changes". The CI tests will run after the next commit. +--- +include: + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/recipes/debian.yml diff -Nru python-reportlab-4.1.0/debian/tests/control python-reportlab-4.1.0/debian/tests/control --- python-reportlab-4.1.0/debian/tests/control 1970-01-01 00:00:00.000000000 +0000 +++ python-reportlab-4.1.0/debian/tests/control 2024-03-19 18:09:52.000000000 +0000 @@ -0,0 +1,2 @@ +Tests: run +Depends: @ diff -Nru python-reportlab-4.1.0/debian/tests/run python-reportlab-4.1.0/debian/tests/run --- python-reportlab-4.1.0/debian/tests/run 1970-01-01 00:00:00.000000000 +0000 +++ python-reportlab-4.1.0/debian/tests/run 2024-03-19 18:09:52.000000000 +0000 @@ -0,0 +1,12 @@ +#! /usr/bin/sh -e + +cp -a /usr/share/doc/python3-reportlab/tests . +cd tests +# run tests, excluding some of them, and redirecting the error message +# "Warn: Can't find .pfb for face 'Times-Roman'" to stdout +python3 runAll.py --post-install \ + --exclude=test_pdfbase_fontembed --exclude=test_docs_build \ + --exclude=test_platypus_paragraphs --exclude=test_lib_utils \ + --exclude=test_graphics_images --exclude=test_platypus_tables \ + --exclude=test_tools_pythonpoint \ + 2>&1