SHA256
1
0
forked from pool/transfig

120 Commits

Author SHA256 Message Date
099c3e0774 Accepting request 1277988 from Publishing
- Work around bug in obs service

- Add patches in order of our bug numbers (differs to upstream)
  * 192.patch -- Bug boo#1243260 (CVE-2025-46397)
    fig2dev stack-overflow
  * 187.patch -- Bug boo#1243261 (CVE-2025-46400)
    fig2dev segmentation fault in read_arcobject
  * 191.patch -- Bug boo#1243262 (CVE-2025-46398)
    fig2dev stack-overflow via read_objects
  * 190.patch -- Bug boo#1243263 (CVE-2025-46399)
    fig2dev segmentation fault in genge_itp_spline

    ____________________________________________________________

OBS-URL: https://build.opensuse.org/request/show/1277988
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=62
2025-05-23 12:28:04 +00:00
54376469a7 .
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=101
2025-05-16 09:33:05 +00:00
2dd361dbc0 .
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=100
2025-05-16 09:27:38 +00:00
3818378fd9 Fix bugs boo#1243260, boo#1243261, boo#1243262, and boo#1243263
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=99
2025-05-16 08:39:00 +00:00
98b48d5307 Accepting request 1274933 from Publishing
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1274933
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=61
2025-05-07 17:15:03 +00:00
0b5d38003d boo#1240379 boo#1240380 boo#1240381
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=97
2025-04-29 12:06:50 +00:00
32df0460a5 Accepting request 1237664 from Publishing
- Update to fig2dev version 3.2.9a (Dec 2024)
  o Specify pdf minor version with option -Y.
  o Specify width (-Z <wid>w) or height (-Z <height>h) of figure.
  o Correctly read from a pipe, ticket #156.
  o Fix behavior of option -F for e(e)pic and latex outputs, ticket #157.
  o Compounds containing ascii-only text would disable utf-8 output, #158.
  o Option --enable-versioning works in out-of-tree builds.
  o Correct links to embedded image files in svg output.
  o Correct font size in svg output, ticket #176.
- Port patches
  * 0001-Use-native-fig2dev-pdf-output-instead-of-epstopdf.patch
  * fig2dev-3.2.6-fig2mpdf.patch
  * transfig-3.2.9.dif
  * transfig-gs10.03.patch

OBS-URL: https://build.opensuse.org/request/show/1237664
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=60
2025-01-15 16:42:04 +00:00
c19039d08e Update fo transfig 3.2.9a
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=95
2025-01-14 09:07:00 +00:00
530b480f1b Accepting request 1200547 from Publishing
- Add patch transfig-gs10.03.patch
  * Avoid warnings about ignored WriteObjStms and WriteXRefStm
    directives with PDF 1.4 (boo#1230427)

OBS-URL: https://build.opensuse.org/request/show/1200547
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=59
2024-09-13 12:27:37 +00:00
00dfa45298 Accepting request 1184778 from Publishing
- Add patch transfig-gcc14.patch
  * Fix the last missing declaration of put_msg() (boo#1225947

OBS-URL: https://build.opensuse.org/request/show/1184778
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=58
2024-07-02 16:15:29 +00:00
f285cee377 boo#1225947
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=91
2024-07-02 06:12:17 +00:00
762b401b16 Accepting request 1152019 from Publishing
- Use %patch -P N instead of deprecated %patchN (forwarded request 1151818 from pgajdos)

OBS-URL: https://build.opensuse.org/request/show/1152019
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=57
2024-02-28 18:44:52 +00:00
7add4baa64 Accepting request 1151818 from home:pgajdos:t
- Use %patch -P N instead of deprecated %patchN

OBS-URL: https://build.opensuse.org/request/show/1151818
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=89
2024-02-27 07:05:34 +00:00
173df1b9fa Accepting request 1112311 from Publishing
- Update to fig2dev version 3.2.9 (Aug 2023)
  o Write utf8-encoded postscript and tex-outputs.
    Ticket numbers refer to https://sourceforge.net/p/mcj/tickets/#.
  o Include sys/wait.h to build on some bsds.
  o Process crafted input files, tickets #142, #145, #146, #147, #148,
    and #152.
  o Correctly scale dxf output, ticket #91.
  o Correct a typo causing incorrect eps import, ticket #137.
  o Regression, pass driver names to driver, ticket #139.
- Port and rename patch transfig-3.2.8.dif which is now transfig-3.2.9.dif
- Port patches
  * fig2dev-3.2.6-fig2mpdf.patch
  * transfig-fix-afl.patch
- Remove patches now upstream
  * 0001-Make-ModDate-and-CreationDate-in-PDF-reproducible.patch
  * 1b09a8.patch

OBS-URL: https://build.opensuse.org/request/show/1112311
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=56
2023-09-21 20:13:18 +00:00
a4bfe3aebc Update to transfig (fig2dev) 3.2.9 which is required by xfig 3.2.9
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=87
2023-09-19 13:54:09 +00:00
0b8c60c51b Accepting request 1073047 from Publishing
OBS-URL: https://build.opensuse.org/request/show/1073047
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=55
2023-03-22 21:28:56 +00:00
Martin Pluskal
ca6efafa18 Accepting request 1072992 from home:StefanBruens:branches:Publishing
- Drop obsolete fig2dev-3.2.6a-RGBFILE.patch.
- Set correct path for X11 rgb.txt file (no longer in /etc),
  recommend rgb package.
- Fix typo for enable-scale-pict2e option.
- Remove obsolsete hunks from transfig-3.2.8.dif,
  rebase fig2dev-3.2.6-fig2mpdf.patch.
- Avoid epstopdf dependency, add
  0001-Use-native-fig2dev-pdf-output-instead-of-epstopdf.patch
  This also fixes unreproducible figures created by fig2mpdf.
- Fix CFLAGS checks, -Wformat-security requires -Wformat.

OBS-URL: https://build.opensuse.org/request/show/1072992
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=85
2023-03-20 08:22:39 +00:00
2ea4baaedc Accepting request 1070627 from Publishing
OBS-URL: https://build.opensuse.org/request/show/1070627
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=54
2023-03-11 17:23:21 +00:00
9615ad6216 Accepting request 1070588 from home:StefanBruens:branches:Publishing
OBS-URL: https://build.opensuse.org/request/show/1070588
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=83
2023-03-10 08:19:23 +00:00
8126e1cdb1 Accepting request 927524 from Publishing
- This Update includes the fixes for
  * bsc#1190618, CVE-2020-21529: stack buffer overflow in the bezier_spline function in genepic.c.
  * bsc#1190615, CVE-2020-21530: segmentation fault in the read_objects function in read.c.
  * bsc#1190617, CVE-2020-21531: global buffer overflow in the conv_pattern_index function in gencgm.c.
  * bsc#1190616, CVE-2020-21532: global buffer overflow in the setfigfont function in genepic.c.
  * bsc#1190612, CVE-2020-21533: stack buffer overflow in the read_textobject function in read.c.
  * bsc#1190611, CVE-2020-21534: global buffer overflow in the get_line function in read.c.
  * bsc#1190607, CVE-2020-21535: segmentation fault in the gencgm_start function in gencgm.c.
  * bsc#1192019, CVE-2021-32280: NULL pointer dereference in compute_closed_spline() in trans_spline.c

OBS-URL: https://build.opensuse.org/request/show/927524
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=53
2021-10-26 19:03:11 +00:00
8b9196e968 Forgotten or late CVE
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=82
2021-10-26 12:51:26 +00:00
58f58d5b8a Accepting request 923484 from Publishing
- Update to fig2dev version 3.2.8 Patchlevel 8b (Aug 2021)
  o Detect the output language from the output file name.
  o On the command line, a minus (-) as input or output file name refers
    to standard input or standard output.
  o Correct buffer overflows and segfaults, mainly due to maliciously
    crafted input files, tickets #113-117, #122, #123, #125-#135.
  o With -Lepic -P, generate a complete tex file.
  o Correctly produce a gif if a transparent color is given, ticket #121.
  o Return with error if no space is left on the device. Ticket #101.
- Remove patch 6827c09d.patch now upstream
- Add patch 1b09a8.patch from upstream (for ticket #137)
- Port patch fig2dev-3.2.6-fig2mpdf.patch back

OBS-URL: https://build.opensuse.org/request/show/923484
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=52
2021-10-11 13:30:24 +00:00
b15ce829e9 Update transfig 3.2.8b + commit 1b09a8
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=81
2021-10-06 11:09:27 +00:00
f1b47ea08b Accepting request 921792 from Publishing
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/921792
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=51
2021-09-27 18:09:05 +00:00
78f11b810e transfig-fix-of-e0c4b024.patch
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=80
2021-09-20 12:59:00 +00:00
630223e119 Missed CVE numbers
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=79
2021-09-14 09:39:26 +00:00
a86473cf67 Accepting request 913712 from Publishing
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/913712
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=50
2021-08-25 18:56:29 +00:00
8979e0ec42 Really skip requirement of texlive-epstopdf
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=78
2021-08-16 07:42:20 +00:00
3519509b83 Skip build of fig2mpdf docs on SLE-12
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=77
2021-08-11 12:45:51 +00:00
2d2540faa9 Accepting request 903347 from Publishing
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/903347
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=49
2021-07-04 20:09:59 +00:00
98c48efe05 .
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=76
2021-06-24 06:26:09 +00:00
c08bfb5c9e .
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=75
2021-06-21 07:27:57 +00:00
a10c8f64a6 Support older products
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=74
2021-06-18 14:02:54 +00:00
13bee7b999 Accepting request 894796 from Publishing
- Add upstream commit as patch 6827c09d.patch
  Global buffer overflow in fig2dev/read.c in function read_colordef() 
  (boo#1186329, CVE-2021-3561)

OBS-URL: https://build.opensuse.org/request/show/894796
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=48
2021-05-23 21:30:39 +00:00
14435d2596 boo#1186329
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=72
2021-05-21 12:16:51 +00:00
Richard Brown
68586e206f Accepting request 882560 from Publishing
- Update to fig2dev version 3.2.8 Patchlevel 8a (Mar 2021)
  o Allow closed splines with three points.
  o Fix build under Darwin.
- Correct hunk offsets of the patch
  o transfig-3.2.8.dif

OBS-URL: https://build.opensuse.org/request/show/882560
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=47
2021-04-10 13:25:55 +00:00
9d875a506f .
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=70
2021-04-01 12:02:09 +00:00
67a1fee6ce Update to fig2dev 3.2.8a
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=69
2021-04-01 12:00:10 +00:00
Richard Brown
e0157c5a99 Accepting request 873730 from Publishing
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/873730
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=46
2021-02-22 13:39:30 +00:00
aa6675647f Update to fig2dev 3.2.8
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=67
2021-02-12 10:22:10 +00:00
9fb5ccc032 Accepting request 838775 from Publishing
- Add upstream security patches/commits
  * 100e27.patch
  * 3065eb.patch
  * ca48cc.patch

- Do hardening via compile and linker flags

OBS-URL: https://build.opensuse.org/request/show/838775
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=45
2020-10-03 16:55:00 +00:00
be676d2f8e Hardening and adding three commits
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=65
2020-09-30 10:50:09 +00:00
a8c2899b22 Accepting request 775156 from Publishing
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/775156
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=44
2020-02-21 15:39:29 +00:00
23107dc78c Various security fixes, second
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=63
2020-02-11 11:43:31 +00:00
55355626e5 Various security fixes
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=62
2020-02-11 11:42:48 +00:00
a9f96ae574 Accepting request 768027 from Publishing
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/768027
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=43
2020-01-30 08:38:23 +00:00
fab0225ae6 Avoid auto(re)config
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=60
2020-01-21 13:09:30 +00:00
fc3b4317e8 bsc#1159130 and bsc#1159293
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=59
2020-01-21 12:20:15 +00:00
f904d3e4a9 Accepting request 754322 from Publishing
- Add patch CVE-2019-19555.patch
  * Even if we are not affected add fix for CVE-2019-19555

OBS-URL: https://build.opensuse.org/request/show/754322
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=42
2019-12-11 11:01:06 +00:00
97337c5663 .
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=57
2019-12-05 10:22:23 +00:00
049340a945 CVE-2019-19555
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=56
2019-12-05 08:50:25 +00:00
a662bf1f3b Accepting request 743820 from Publishing
- Update to fig2dev version 3.2.7 (Patchlevel 7b (Oct 2019)
  o A X color database is not needed, but can be provided. The location of
    the database can be given at compile time, default /etc/X11/rgb.txt.
  Ticket numbers refer to https://sourceforge.net/p/mcj/tickets/#.
  Debian bug numbers refer to https://bugs.debian.org/#.
  o Do not clip objects with line-thickness 0 having arrows. Ticket #53.
  o Do not segfault on circle/half circle arrowheads with a magnification
    larger 42. Always draw circle arrowheads with 40 points. Ticket #52.
  o Allow circles or ellipses with negative radii. Ticket #49.
  o Avoid "dimension too large error" with tikz output by avoiding
    coordinate values smaller than -16383.
  o Make tests (test1.c) work with -fsanitize=address compiler option.
  o Obey join-style of lines in tikz output.
  o Pass utf8-strings to svg output, escape some chars (<>&).
  o Accept inclined boxes and change them to polygons. Fixes ticket #43.
  o Make tests #27 and #33 work on Mac Darwin, failed due to whitespace
    formatting differences. From Hanspeter Niederstrasser. Ticket #40.
  o Use only latex, neither etex or tex, to test tikz output. Usage of
    etex, after hint from Roland Rosenfeld, closed debian bug 920368.
  o For tikz output, do not draw arrows on a single point line.
  o Omit spurious showpage when including jpg-file. From Rainer Buchty.
  o Correct a few memory leaks and corruptions. See commit d1c54f6.
  o Change negative color numbers to default color. Fixes ticket #30.
  o A spline with one point would cause segfault. Fixed, see ticket #29.
  o Allow one char without newline in the last line of an input file.
    Fixes ticket #28.
  o Harden input, mainly against files in which an incomplete object would
    be created and freeing the object would violate memory, i.e, it may
    cause segfault. See, e.g., ticket #27.
  o Properly initalize line storage when reading fig files version 1.3.

OBS-URL: https://build.opensuse.org/request/show/743820
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=41
2019-11-03 09:51:41 +00:00
77b3dad9b3 Update to fig2dev-3.2.7b
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=54
2019-10-29 11:12:25 +00:00
73ede5f1d1 Accepting request 723457 from Publishing
- Add patch transfig-03ea4578.patch from upstream commit 03ea4578
  to fix bsc#1143650 with CVE-2019-14275

OBS-URL: https://build.opensuse.org/request/show/723457
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=40
2019-08-19 18:48:58 +00:00
573a48c6d5 Add patch transfig-03ea4578.patch
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=52
2019-08-15 07:23:21 +00:00
13750cf3c7 Accepting request 632307 from Publishing
- Add patch transfig-e0c4b024.patch from upstream commit e0c4b024
  to fix bsc#1106531 with CVE-2018-16140

OBS-URL: https://build.opensuse.org/request/show/632307
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=39
2018-09-04 20:48:05 +00:00
56eb478239 Avoid automake
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=50
2018-08-30 10:07:54 +00:00
23cf431efc Add patch transfig-e0c4b024.patch
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=49
2018-08-30 09:53:59 +00:00
36907eb5e2 Accepting request 605087 from Publishing
- Update to fig2dev version 3.2.7a (Patchlevel 7a (April 2018))
  o  Language         previous option         current option
    ------------------------------------------------------------
     cgm              -b dummy                -a
     epic             -A scale                -d scale
     eepic            -A scale                -d scale
     eepicemu         -A scale                -d scale
     gbx              -i on|off               -v
     ibmgl            -m mag,xoff,yoff        -m mag -x xoff -y yoff
     mp               -I file                 -d file
     ps               -S dummy                -o
  o Print language-specific help text by using fig2dev -L lang -h.
  o Add option -M, multipage, for MetaPost output language.
  o Add option -P, pagemode, and -z to choose a pagesize for pdf output.
  o Add option -W (scaling of figures not possible) for tikz.
  o Add option -b, border width, for LaTeX output language.
  o Add option -f for pstex_t and pdftex_t output language.
  o Add uk_UA and ru_RU encodings for PostScript output. Ticket #12.
  o Fix regression whereupon flipped ellipses were not read. Ticket #23.
  o Distribute i18n files ru_RU.CP1251.ps and uk_UA.KOI8-U.ps.
  o Make test "survive debian bug #890016" succeed on 32 bit systems.
  o Distribute the X bitmaps files within fig2dev, no need to install
    these files. The files were needed for Tk and Perl/Tk output.
  o Add option -w, wrap (create stand-alone perl file) for Perl/Tk output.
  o Update help text: Output help for dxf and textyl output language,
    add description of -g option for Tk/Tcl and Perl/Tk output, allow -f
    option for pstex_t and pdftex_t output language.
  o Sanitize input. Do not segfault on malformed input files. Fixes debian
    bugs 881143, 881144, 881396, 890015, 890016, 882021 and also 882022.
  o Do not put an %%Orientation: comment into PostScript output. Some

OBS-URL: https://build.opensuse.org/request/show/605087
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=38
2018-05-08 11:37:55 +00:00
82b79c281c Update to fig2dev-3.2.7a
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=47
2018-05-07 10:32:51 +00:00
2c5338bbd8 Accepting request 582071 from Publishing
OBS-URL: https://build.opensuse.org/request/show/582071
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=37
2018-03-04 11:51:24 +00:00
Tomáš Chvátal
2f9781b750 Accepting request 582012 from home:elvigia:branches:Publishing
- Change xorg-x11-devel --> pkgconfig(xpm)
- buildrequire default libpng.

OBS-URL: https://build.opensuse.org/request/show/582012
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=45
2018-03-02 21:39:09 +00:00
55244af1a9 Accepting request 544416 from Publishing
- Added patches
  * fig2dev-3.2.6a-RGBFILE.patch to let rgb.txt be located via
    environment variable FIG2DEV_RGBFILE
  * fig2dev-3.2.6a-man-typo.patch to fix simple typo in manual page
  * fig2dev-3.2.6a-input-sanitizing.patch to do some input
    sanitizing when reading FIG files (bsc#1069257, CVE-2017-16899)
  * fig2dev-3.2.6a-style-overflow.patch

OBS-URL: https://build.opensuse.org/request/show/544416
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=36
2017-12-19 09:49:59 +00:00
d0dca8bc4a Bug bsc#1069257, CVE-2017-16899
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=43
2017-11-22 12:37:26 +00:00
654157ecd5 Accepting request 454942 from Publishing
- Fix now failing download source service, that is don't do this

- Update to fig2dev version 3.2.6a (Patchlevel 6a (January 2017))
  NEW FEATURES:
    o Distribute transfig.pdf. No need to build it from the TeX sources.
    o Enable reproducible build for svg output.
    o Set the creator to fig2dev, not to the path by which fig2dev is
      invoked.
  BUGS FIXED:
    Ticket numbers refer to https://sourceforge.net/p/mcj/tickets/#.
    o The svg output now produces correct patterns and pie-wege arcs.
      Property names instead of style attributes are used. Hollow arrow
      heads are really hollow, not filled with white. In the PostScript
      output, this might also clip a bit of the filling underneath an arrow.
    o tikz output: Re-use \dimen \XFigu if it is already defined. Ticket #3.
    o tikz output: A pattern in an object with line width zero and the
      stroke color equal to the fill color would produce a white fill.
      The tikz output now does not try to be smart and puts a pattern, even
      if the result is equal to a solid fill. Ticket #1.
    o pict2e output: Standalone tex-files always include color.sty. #2.
    o pict2e output: A pattern with stroke color equal to fill color is
      rendered as a solid fill.
    o Compiles when gnu iconv and standard iconv are present.

- Update to fig2dev version 3.2.6 (the successor of transfig)
  o Add compile switch --enable-versioning and script update-version_m4,
    to create version string from source control system
  o tikz output: Support -G (grid) option. Make \XFigwidth and \XFigheight
    only scale coordinates, not line widths; Do not set unnecessarily
    \color{black} on text.

OBS-URL: https://build.opensuse.org/request/show/454942
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=35
2017-02-07 11:06:29 +00:00
875b3e390e Update to 3.2.6a
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=41
2017-02-06 11:54:25 +00:00
cbf2ce16bd Update to 3.2.6a
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=37
2017-02-02 14:27:06 +00:00
f3339b9ae6 Update to 3.2.6a
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=36
2017-02-02 14:06:14 +00:00
18fff3098c .
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=35
2016-09-23 12:11:02 +00:00
4d8c4b7014 Accepting request 298075 from Publishing
OBS-URL: https://build.opensuse.org/request/show/298075
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=34
2015-04-21 23:15:39 +00:00
OBS User mrdocs
8918a5c772 Accepting request 297172 from home:msmeissn:branches:Publishing
- transfig-fix-afl.patch: fixed crashes due to uninitialized memory,
  found by afl.

OBS-URL: https://build.opensuse.org/request/show/297172
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=34
2015-04-19 19:33:35 +00:00
Stephan Kulow
d9622e6998 Accepting request 210385 from Publishing
- Update to transfig version 3.2.5e
  * HTML map output was limited to 100 links.
    Fix by Jan van Dijk
  * Updated for compatibility to PNG 1.5
    From Matthias Scheler
  * Was adding "showpage" command when producing bitmap formats from intermediate EPS.
    This produced "illegal" PNG and JPEG files with extra, blank image.
  * Maximum width of included image in PS/EPS output increased from 8192 to 16384
  * Precision of some PIC objects increased from %.2f to %.3f
  * Double close of output file when ghostscript fails. Original bug report from
    https://bugzilla.redhat.com/728825
- Change out patch sets to fit 3.2.5e

OBS-URL: https://build.opensuse.org/request/show/210385
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=32
2013-12-11 15:24:20 +00:00
292b19be38 .
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=32
2013-12-10 14:58:13 +00:00
Stephan Kulow
296cb26a6c Accepting request 162890 from Publishing
- Add Source URL, see https://en.opensuse.org/SourceUrls 

- Use original patches from Debian (forwarded request 162752 from namtrac)

OBS-URL: https://build.opensuse.org/request/show/162890
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=30
2013-04-09 08:27:54 +00:00
e73900083f Accepting request 162752 from home:namtrac:bugfix
- Add Source URL, see https://en.opensuse.org/SourceUrls 

- Use original patches from Debian

OBS-URL: https://build.opensuse.org/request/show/162752
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=30
2013-04-05 15:52:19 +00:00
Stephan Kulow
96b1294dce Accepting request 154913 from Publishing
- User original patches from Debian

- Add xfig.3.2.5b-mediaboxrealnb.dif to fix regarding pdf import,
  reported by Loic Le Guyader compare with Debian bug #530898

OBS-URL: https://build.opensuse.org/request/show/154913
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=29
2013-02-11 13:55:14 +00:00
af825be77c .
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=28
2013-02-08 13:03:56 +00:00
b4a8a0f1d0 .
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=27
2013-02-08 12:54:00 +00:00
99dc2e1407 .
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=26
2013-02-07 16:34:33 +00:00
8de30f6ab1 .
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=25
2013-02-07 16:27:43 +00:00
Stephan Kulow
3dae4d343c Accepting request 138798 from Publishing
- Update to transfig version 3.2.5d
  * made PostScript output DSC 3.0 compliant to work with CUPS 
    patch from Ian Dall (see https://bugzilla.redhat.com/558380)
  * Changed STOCK_LAST from 17 to 19 in fig2dev/dev/genemf.c
  * Questionable copy of one data type to another in genemf.c
  * Changed definition of command for short slanted lines in genlatex.c
  * Added check for existance of arrows in SVG line generator
  * Removed %%Page: directive from included JPEG files in PostScript/EPS output
  * bound.c was passing pointers to int instead of double to arc_tangent
  * put_msg function uses proper varargs now
  * Option for debug comments in GBX output is "yes" or "no", not "on" or "off"
  * Added help (-h)  info for GBX output
  * In version 1.4 of the PNG library dither was removed so fig2dev now uses
    quantize when importing PNG images with palettes
  * put_msg was declared twice (fig2dev/dev/genemf.c)
  * Added xlink namespace for images in SVG export
  * SVG output for imported images didn't form href link properly
  * New PSTricks driver from Gene Ressler (see man fig2dev for info)
  * transfig command was hardwired for "tex" for "make all" directive and
    removing files with "make clean" directive in creating Makefile
  * -a option added to PostScript and PICTeX languages to NOT include user's
    login name in output
  * Gerber (RS-247-X for CAD drawings for printed circuits) export language from Edward Gr

OBS-URL: https://build.opensuse.org/request/show/138798
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=27
2012-10-24 05:18:17 +00:00
7b41917290 .
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=23
2012-10-19 08:42:40 +00:00
bc00f7c49a .
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=22
2012-09-28 14:38:45 +00:00
Stephan Kulow
817230fb52 Accepting request 128835 from Publishing
- Add missed fonts

OBS-URL: https://build.opensuse.org/request/show/128835
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=26
2012-07-24 14:11:51 +00:00
a75b9d8f04 .
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=20
2012-07-24 09:46:54 +00:00
Ismail Dönmez
a62468d815 Accepting request 127472 from Publishing
- Make it build with latest TeXLive 2012 with new package layout

OBS-URL: https://build.opensuse.org/request/show/127472
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=25
2012-07-12 08:53:47 +00:00
88c5b50552 .
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=18
2012-07-10 10:13:42 +00:00
Stephan Kulow
99a03283c1 replace license with spdx.org variant
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=23
2011-12-06 18:09:11 +00:00
Sascha Peilicke
8b4b510ca4 Autobuild autoformatter for 74797
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=21
2011-06-29 07:46:07 +00:00
Sascha Peilicke
283deb866f Accepting request 74797 from Publishing
-Add URL due bnc#676463

OBS-URL: https://build.opensuse.org/request/show/74797
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=20
2011-06-29 07:45:59 +00:00
f18320c41a .
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=16
2011-06-28 17:22:04 +00:00
OBS User autobuild
bef50f01ef Accepting request 38368 from Publishing
Copy from Publishing/transfig based on submit request 38368 from user WernerFink

OBS-URL: https://build.opensuse.org/request/show/38368
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=16
2010-04-20 23:53:45 +00:00
OBS User autobuild
9072e53647 Accepting request 38368 from Publishing
checked in (request 38368)

OBS-URL: https://build.opensuse.org/request/show/38368
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=15
2010-04-20 23:53:44 +00:00
9b2791ccf3 .
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=14
2010-04-20 15:42:58 +00:00
OBS User autobuild
396974a929 Accepting request 38300 from Publishing
Copy from Publishing/transfig based on submit request 38300 from user coolo

OBS-URL: https://build.opensuse.org/request/show/38300
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=15
2010-04-20 00:08:45 +00:00
OBS User buildservice-autocommit
777d53ba89 Updating link to change in openSUSE:Factory/transfig revision 15.0
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=f31d2c5a952bafd0f4dbc0dfe4fc92ea
2010-04-20 00:08:45 +00:00
OBS User autobuild
70df4189b6 Accepting request 38300 from Publishing
checked in (request 38300)

OBS-URL: https://build.opensuse.org/request/show/38300
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=13
2010-04-20 00:08:44 +00:00
Stephan Kulow
2630750a26 Accepting request 38213 from home:sndirsch:branches:Publishing
Copy from home:sndirsch:branches:Publishing/transfig via accept of submit request 38213 revision 3.
Request was accepted with message:
Reviewed ok

OBS-URL: https://build.opensuse.org/request/show/38213
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=12
2010-04-19 19:46:11 +00:00
OBS User autobuild
b33ee5d838 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=14 2010-03-18 15:32:48 +00:00
OBS User buildservice-autocommit
7f6617bcba Updating link to change in openSUSE:Factory/transfig revision 14.0
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=4dc49ab5bcbe35636e3f8f191f6b5275
2010-03-18 15:32:48 +00:00
OBS User autobuild
4519737a00 Accepting request 26898 from Publishing
Copy from Publishing/transfig based on submit request 26898 from user WernerFink

OBS-URL: https://build.opensuse.org/request/show/26898
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=13
2009-12-18 12:44:37 +00:00
OBS User buildservice-autocommit
062d7e61fd Updating link to change in openSUSE:Factory/transfig revision 13.0
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=991ba433b1a95aa0279f24c062e4345c
2009-12-18 12:44:37 +00:00
OBS User autobuild
83697ff2da checked in
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=10
2009-12-18 12:44:36 +00:00
39a52a9ad7 .
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=9
2009-12-17 08:31:27 +00:00
OBS User autobuild
f86faf1b89 Accepting request 26737 from Publishing
Copy from Publishing/transfig based on submit request 26737 from user WernerFink

OBS-URL: https://build.opensuse.org/request/show/26737
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=12
2009-12-16 16:02:41 +00:00
OBS User buildservice-autocommit
ee25f1fd38 Updating link to change in openSUSE:Factory/transfig revision 12.0
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=8ecbebab05db2ff77aae651a03c85fab
2009-12-16 16:02:41 +00:00
OBS User autobuild
4d72016aef checked in
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=8
2009-12-16 16:02:40 +00:00
dfc1093522 .
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=7
2009-12-16 10:22:24 +00:00
OBS User autobuild
cbf82d81cf Accepting request 23129 from Publishing
Copy from Publishing/transfig based on submit request 23129 from user WernerFink

OBS-URL: https://build.opensuse.org/request/show/23129
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=11
2009-10-26 16:11:15 +00:00
OBS User autobuild
b67633ffac checked in
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=6
2009-10-26 16:11:14 +00:00
fe00fef069 .
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=5
2009-10-26 10:34:09 +00:00
cb309e2baf .
OBS-URL: https://build.opensuse.org/package/show/Publishing/transfig?expand=0&rev=4
2009-10-09 12:19:26 +00:00
OBS User autobuild
52026d29f4 Accepting request 18828 from Publishing
Copy from Publishing/transfig based on submit request 18828 from user mlschroe

OBS-URL: https://build.opensuse.org/request/show/18828
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=9
2009-08-26 13:05:27 +00:00
OBS User unknown
bfb99c4067 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=8 2008-10-11 22:29:41 +00:00
OBS User unknown
3dd5b9ef18 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=6 2008-04-25 14:49:47 +00:00
OBS User unknown
8ed082a7a4 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=5 2007-11-05 23:41:08 +00:00
OBS User unknown
702a5826d9 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=4 2007-07-27 00:12:53 +00:00
OBS User unknown
f2da2c0808 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=3 2007-05-17 10:00:12 +00:00
OBS User unknown
d2c00ff371 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=2 2007-04-20 14:00:50 +00:00
OBS User unknown
82eb2c72cc OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/transfig?expand=0&rev=1 2007-01-15 23:39:38 +00:00
15 changed files with 571 additions and 25 deletions

View File

@@ -12,7 +12,7 @@ diff --git a/fig2dev/dev/genpstex.c b/fig2dev/dev/genpstex.c
index bb081fd..5999e03 100644 index bb081fd..5999e03 100644
--- a/fig2dev/dev/genpstex.c --- a/fig2dev/dev/genpstex.c
+++ b/fig2dev/dev/genpstex.c +++ b/fig2dev/dev/genpstex.c
@@ -279,10 +279,7 @@ int depth; @@ -280,10 +280,7 @@ int depth;
sprintf(szFileName + iLength, "%03d", iObjectsFileNumber++); sprintf(szFileName + iLength, "%03d", iObjectsFileNumber++);
fprintf(ptCreateFile, "if [ \"$iOptRemove\" == \"\" ]; then\n"); fprintf(ptCreateFile, "if [ \"$iOptRemove\" == \"\" ]; then\n");
if (iPdfOutputs) if (iPdfOutputs)

58
184.patch Normal file
View File

@@ -0,0 +1,58 @@
From ff9aba206a30288f456dfc91584a52ba9927b438 Mon Sep 17 00:00:00 2001
From: Thomas Loimer <thomas.loimer@tuwien.ac.at>
Date: Tue, 21 Jan 2025 20:50:15 +0100
Subject: [PATCH] Allow an arc-box with zero radius, ticket #184
In the pict2e output, a rectangle with rounded corners,
dashed line type and zero corner-radius would cause a crash.
Convert rectangles with rounded corners and zero corner-radius to
regular rectangles.
---
fig2dev/read.c | 8 ++++++++
fig2dev/tests/read.at | 11 +++++++++++
2 files changed, 19 insertions(+)
diff --git fig2dev/read.c fig2dev/read.c
index 387527b..f643f7e 100644
--- fig2dev/read.c
+++ fig2dev/read.c
@@ -1037,6 +1037,14 @@ sanitize_lineobject(F_line *l, int line_no)
line_no);
return -1;
}
+ if (l->type == T_ARC_BOX && l->radius == 0) {
+ put_msg("A %s, but zero corner radius "
+ "at line %d - convert "
+ "to a rectangle.",
+ obj_name[l->type - 2],
+ line_no);
+ l->type = T_BOX;
+ }
}
} else { /* T_BOX || T_POLYGON */
diff --git fig2dev/tests/read.at fig2dev/tests/read.at
index 588424d..1b4baea 100644
--- fig2dev/tests/read.at
+++ fig2dev/tests/read.at
@@ -123,6 +123,17 @@ A rectangle with 3 corners at line 11 - convert to a polygon.
])
AT_CLEANUP
+AT_SETUP([convert an arc-box with zero radius to a box])
+AT_KEYWORDS(read.c arc-box)
+AT_CHECK([fig2dev -L pict2e <<EOF
+FIG_FILE_TOP
+2 4 1 1 0 0 50 -1 -1 4.0 0 0 0 0 0 5
+ 0 0 300 0 300 300 0 300 0 0
+EOF
+],0,ignore,[A rectangle with rounded corners, but zero corner radius at line 11 - convert to a rectangle.
+])
+AT_CLEANUP
+
AT_SETUP([fail on a malformed arc-box])
AT_KEYWORDS(read.c malformed arc-box)
AT_CHECK([fig2dev -L pict2e <<EOF
--
2.35.3

33
185.patch Normal file
View File

@@ -0,0 +1,33 @@
From da8992f44b84a337b4edaa67fc8b36b55eaef696 Mon Sep 17 00:00:00 2001
From: Thomas Loimer <thomas.loimer@tuwien.ac.at>
Date: Wed, 22 Jan 2025 23:18:54 +0100
Subject: [PATCH] Reject huge pattern lengths, ticket #185
Reject patterned lines, e.g., dashed lines, where the
pattern length exceeds 80 inches.
---
fig2dev/object.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git fig2dev/object.h fig2dev/object.h
index 29f5a62..7f83939 100644
--- fig2dev/object.h
+++ fig2dev/object.h
@@ -57,12 +57,13 @@ typedef struct f_comment {
struct f_comment *next;
} F_comment;
+#define STYLE_VAL_MAX 6400.0 /* dash length 80 inches, that is enough */
#define COMMON_PROPERTIES(o) \
o->style < SOLID_LINE || o->style > DASH_3_DOTS_LINE || \
o->thickness < 0 || o->depth < 0 || o->depth > 999 || \
o->fill_style < UNFILLED || \
o->fill_style >= NUMSHADES + NUMTINTS + NUMPATTERNS || \
- o->style_val < 0.0
+ o->style_val < 0.0 || o->style_val > STYLE_VAL_MAX
typedef struct f_ellipse {
int type;
--
2.35.3

91
186.patch Normal file
View File

@@ -0,0 +1,91 @@
From c8a87d22036e62bac0c6f7836078d8103caa6457 Mon Sep 17 00:00:00 2001
From: Thomas Loimer <thomas.loimer@tuwien.ac.at>
Date: Wed, 22 Jan 2025 23:27:43 +0100
Subject: [PATCH] Reject arcs with co-incident points, ticket #186
---
fig2dev/object.h | 16 ++++++++++------
fig2dev/tests/read.at | 14 ++++++++++++--
2 files changed, 22 insertions(+), 8 deletions(-)
--- fig2dev/object.h
+++ fig2dev/object.h 2025-04-29 11:58:54.335653487 +0000
@@ -3,7 +3,7 @@
* Copyright (c) 1991 by Micah Beck
* Parts Copyright (c) 1985-1988 by Supoj Sutanthavibul
* Parts Copyright (c) 1989-2015 by Brian V. Smith
- * Parts Copyright (c) 2015-2023 by Thomas Loimer
+ * Parts Copyright (c) 2015-2025 by Thomas Loimer
*
* Any party obtaining a copy of these files is granted, free of charge, a
* full and unrestricted irrevocable, world-wide, paid up, royalty-free,
@@ -92,10 +92,10 @@ typedef struct f_ellipse {
struct f_ellipse *next;
} F_ellipse;
-#define INVALID_ELLIPSE(e) \
+#define INVALID_ELLIPSE(e) \
e->type < T_ELLIPSE_BY_RAD || e->type > T_CIRCLE_BY_DIA || \
- COMMON_PROPERTIES(e) || (e->direction != 1 && e->direction != 0) || \
- e->radiuses.x == 0 || e->radiuses.y == 0 || \
+ COMMON_PROPERTIES(e) || (e->direction != 1 && e->direction != 0) || \
+ e->radiuses.x == 0 || e->radiuses.y == 0 || \
e->angle < -7. || e->angle > 7.
typedef struct f_arc {
@@ -122,12 +122,16 @@ typedef struct f_arc {
struct f_arc *next;
} F_arc;
-#define INVALID_ARC(a) \
+#define COINCIDENT(a, b) (a.x == b.x && a.y == b.y)
+#define INVALID_ARC(a) \
a->type < T_OPEN_ARC || a->type > T_PIE_WEDGE_ARC || \
COMMON_PROPERTIES(a) || a->cap_style < 0 || a->cap_style > 2 || \
a->center.x < COORD_MIN || a->center.x > COORD_MAX || \
a->center.y < COORD_MIN || a->center.y > COORD_MAX || \
- (a->direction != 0 && a->direction != 1)
+ (a->direction != 0 && a->direction != 1) || \
+ COINCIDENT(a->point[0], a->point[1]) || \
+ COINCIDENT(a->point[0], a->point[2]) || \
+ COINCIDENT(a->point[1], a->point[2])
typedef struct f_line {
int type;
--- fig2dev/tests/read.at
+++ fig2dev/tests/read.at 2025-04-29 11:58:54.335653487 +0000
@@ -2,7 +2,7 @@ dnl Fig2dev: Translate Fig code to vario
dnl Copyright (c) 1991 by Micah Beck
dnl Parts Copyright (c) 1985-1988 by Supoj Sutanthavibul
dnl Parts Copyright (c) 1989-2015 by Brian V. Smith
-dnl Parts Copyright (c) 2015-2024 by Thomas Loimer
+dnl Parts Copyright (c) 2015-2025 by Thomas Loimer
dnl
dnl Any party obtaining a copy of these files is granted, free of charge, a
dnl full and unrestricted irrevocable, world-wide, paid up, royalty-free,
@@ -14,7 +14,7 @@ dnl party to do so, with the only requir
dnl and this permission notice remain intact.
dnl read.at
-dnl Author: Thomas Loimer, 2017-2024
+dnl Author: Thomas Loimer, 2017-2025
AT_BANNER([Sanitize and harden input.])
@@ -246,6 +246,16 @@ FIG_FILE_TOP
EOF
], 1, ignore, [Invalid arc object at line 10.
])
+AT_CLEANUP
+
+AT_SETUP([reject arcs with coincident points, ticket #186])
+AT_KEYWORDS(read.c arc)
+AT_CHECK([fig2dev -L pict2e <<EOF
+FIG_FILE_TOP
+5 1 0 15 0 7 50 0 -1 0.0 1 0 0 0 0.0 0.0 1 1 1 1 2 0
+EOF
+], 1, ignore, [Invalid arc object at line 10.
+])
AT_CLEANUP
AT_SETUP([survive debian bugs #881143, #881144])

179
187.patch Normal file
View File

@@ -0,0 +1,179 @@
commit 1e5515a1ea2ec8651cf85ab5000d026bb962492a
Author: Thomas Loimer <thomas.loimer@tuwien.ac.at>
Date: Thu Jan 23 21:08:43 2025 +0100
pict2e: deal with arcs with an radius of 1, #187
The pict2e driver resolves patterned arcs to a series of line segments.
The line is constructed from a spline approximating a circle.
For an arc radius of about 1, no line remains. Ignore such small arcs.
diff --git fig2dev/dev/genpict2e.c fig2dev/dev/genpict2e.c
index 423032c..b55bf38 100644
--- fig2dev/dev/genpict2e.c
+++ fig2dev/dev/genpict2e.c
@@ -3,7 +3,7 @@
* Copyright (c) 1991 by Micah Beck
* Parts Copyright (c) 1985-1988 by Supoj Sutanthavibul
* Parts Copyright (c) 1989-2015 by Brian V. Smith
- * Parts Copyright (c) 2015-2023 by Thomas Loimer
+ * Parts Copyright (c) 2015-2025 by Thomas Loimer
*
* Any party obtaining a copy of these files is granted, free of charge, a
* full and unrestricted irrevocable, world-wide, paid up, royalty-free,
@@ -19,7 +19,7 @@
/*
* genpict2e.c: convert fig to pict2e macro language for LaTeX
*
- * Author: Thomas Loimer, 2014-2023
+ * Author: Thomas Loimer, 2014-2025
* Based on the latex picture driver, genlatex.c
*
*/
@@ -2277,8 +2277,13 @@ put_patternarc(
l->join_style = MITERJOIN;
p = l->points;
- if (p == NULL)
+ for (i = 0; i < 8 && p != NULL; ++i)
+ p = p->next;
+ /* If the radius is about 1, the spline may consist of
+ a few points only. */
+ if (i < 7)
return;
+ p = l->points;
/*
* Walk along the spline, until the arc angle is covered.
@@ -2428,7 +2433,7 @@ genpict2e_arc(F_arc *a)
rad = 0.5*(sqrt((double)d1x*d1x + (double)d1y*d1y)
+ sqrt((double)d2x*d2x + (double)d2y*d2y));
rad = round(rad*10.0) / 10.0;
- /* how precise must the angle be given?
+ /* how precise must the angle be given?
1/rad is the view angle of one pixel */
da = 180.0 / M_PI / rad;
preca = 0;
commit c4465e0d9af89d9738aad31c2d0873ac1fa03c96
Author: Thomas Loimer <thomas.loimer@tuwien.ac.at>
Date: Sat Jan 25 21:06:59 2025 +0100
Reject arcs with an radius smaller than 3, #187
This also reverts the previous commit, 1e5515. An arc with too
small radius caused a crash in pict2e output. Instead of dealing
with such arcs in the pict2e driver, reject them already when
reading.
diff --git fig2dev/dev/genpict2e.c fig2dev/dev/genpict2e.c
index b55bf38..423032c 100644
--- fig2dev/dev/genpict2e.c
+++ fig2dev/dev/genpict2e.c
@@ -3,7 +3,7 @@
* Copyright (c) 1991 by Micah Beck
* Parts Copyright (c) 1985-1988 by Supoj Sutanthavibul
* Parts Copyright (c) 1989-2015 by Brian V. Smith
- * Parts Copyright (c) 2015-2025 by Thomas Loimer
+ * Parts Copyright (c) 2015-2023 by Thomas Loimer
*
* Any party obtaining a copy of these files is granted, free of charge, a
* full and unrestricted irrevocable, world-wide, paid up, royalty-free,
@@ -19,7 +19,7 @@
/*
* genpict2e.c: convert fig to pict2e macro language for LaTeX
*
- * Author: Thomas Loimer, 2014-2025
+ * Author: Thomas Loimer, 2014-2023
* Based on the latex picture driver, genlatex.c
*
*/
@@ -2277,13 +2277,8 @@ put_patternarc(
l->join_style = MITERJOIN;
p = l->points;
- for (i = 0; i < 8 && p != NULL; ++i)
- p = p->next;
- /* If the radius is about 1, the spline may consist of
- a few points only. */
- if (i < 7)
+ if (p == NULL)
return;
- p = l->points;
/*
* Walk along the spline, until the arc angle is covered.
@@ -2433,7 +2428,7 @@ genpict2e_arc(F_arc *a)
rad = 0.5*(sqrt((double)d1x*d1x + (double)d1y*d1y)
+ sqrt((double)d2x*d2x + (double)d2y*d2y));
rad = round(rad*10.0) / 10.0;
- /* how precise must the angle be given?
+ /* how precise must the angle be given?
1/rad is the view angle of one pixel */
da = 180.0 / M_PI / rad;
preca = 0;
diff --git fig2dev/object.h fig2dev/object.h
index 50afbf0..178d629 100644
--- fig2dev/object.h
+++ fig2dev/object.h
@@ -92,11 +92,14 @@ typedef struct f_ellipse {
struct f_ellipse *next;
} F_ellipse;
+#define RADIUS2_MIN 9
#define INVALID_ELLIPSE(e) \
e->type < T_ELLIPSE_BY_RAD || e->type > T_CIRCLE_BY_DIA || \
COMMON_PROPERTIES(e) || (e->direction != 1 && e->direction != 0) || \
e->radiuses.x == 0 || e->radiuses.y == 0 || \
+ e->radiuses.x + e->radiuses.y < RADIUS2_MIN || \
e->angle < -7. || e->angle > 7.
+ /* radiuses are set to positive in read.c */
typedef struct f_arc {
int type;
@@ -131,7 +134,10 @@ typedef struct f_arc {
(a->direction != 0 && a->direction != 1) || \
COINCIDENT(a->point[0], a->point[1]) || \
COINCIDENT(a->point[0], a->point[2]) || \
- COINCIDENT(a->point[1], a->point[2])
+ COINCIDENT(a->point[1], a->point[2]) || \
+ (a->point[0].x - a->center.x) * (a->point[0].x - a->center.x) + \
+ (a->point[0].y - a->center.y) * (a->point[0].y - a->center.y) < \
+ RADIUS2_MIN
typedef struct f_line {
int type;
diff --git fig2dev/read1_3.c fig2dev/read1_3.c
index 8a1a89a..1605498 100644
--- fig2dev/read1_3.c
+++ fig2dev/read1_3.c
@@ -3,7 +3,7 @@
* Copyright (c) 1991 by Micah Beck
* Parts Copyright (c) 1985-1988 by Supoj Sutanthavibul
* Parts Copyright (c) 1989-2015 by Brian V. Smith
- * Parts Copyright (c) 2015-2022 by Thomas Loimer
+ * Parts Copyright (c) 2015-2025 by Thomas Loimer
*
* Any party obtaining a copy of these files is granted, free of charge, a
* full and unrestricted irrevocable, world-wide, paid up, royalty-free,
@@ -156,8 +156,10 @@ read_arcobject(FILE *fp)
a->pen_color = a->fill_color = BLACK_COLOR;
a->depth = 0;
a->pen = 0;
+ a->fill_style = 0;
a->for_arrow = NULL;
a->back_arrow = NULL;
+ a->cap_style = 0;
a->comments = NULL;
a->next = NULL;
n = fscanf(fp,
@@ -328,6 +330,10 @@ read_ellipseobject(FILE *fp)
e->type = T_CIRCLE_BY_RAD;
else
e->type = T_CIRCLE_BY_DIA;
+ if (e->radiuses.x < 0)
+ e->radiuses.x *= -1;
+ if (e->radiuses.y < 0)
+ e->radiuses.y *= -1;
if (INVALID_ELLIPSE(e)) {
put_msg(Err_invalid, "ellipse");
free(e);

29
190.patch Normal file
View File

@@ -0,0 +1,29 @@
commit 2bd6c0b210916d0d3ca81f304535b5af0849aa93
Author: Thomas Loimer <thomas.loimer@tuwien.ac.at>
Date: Tue Apr 8 22:45:57 2025 +0200
ge output: correct spline computation, ticket #190
---
fig2dev/dev/genge.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
--- fig2dev/dev/genge.c
+++ fig2dev/dev/genge.c 2025-05-16 08:15:58.678040763 +0000
@@ -229,8 +229,6 @@ genge_itp_spline(F_spline *s)
int xmin, ymin;
a = s->controls;
-
- a = s->controls;
p = s->points;
/* go through the points to find the last two */
for (q = p->next; q != NULL; p = q, q = q->next) {
@@ -238,6 +236,7 @@ genge_itp_spline(F_spline *s)
a = b;
}
+ a = s->controls;
p = s->points;
fprintf(tfp, "n %d %d m\n", p->x, p->y);
xmin = 999999;

29
191.patch Normal file
View File

@@ -0,0 +1,29 @@
commit 5f22009dba73922e98d49c0096cece8b215cd45b
Author: Thomas Loimer <thomas.loimer@tuwien.ac.at>
Date: Tue Apr 8 21:34:23 2025 +0200
Permit \0 in the second line in the fig file, #191
diff --git fig2dev/read.c fig2dev/read.c
index 0ec958d..2ea18ef 100644
--- fig2dev/read.c
+++ fig2dev/read.c
@@ -190,7 +190,8 @@ read_objects(FILE *fp, F_compound *obj)
}
/* check for embedded '\0' */
- if (strlen(buf) < sizeof buf - 1 && buf[strlen(buf) - 1] != '\n') {
+ if (*buf == '\0' || (strlen(buf) < sizeof buf - 1 &&
+ buf[strlen(buf) - 1] != '\n')) {
put_msg("ASCII NUL ('\\0') character within the first line.");
exit(EXIT_FAILURE);
/* seek to the end of the first line
@@ -239,7 +240,7 @@ read_objects(FILE *fp, F_compound *obj)
the encoding given in the file */
if (!input_encoding && !strcmp(buf, "encoding: UTF-8\n")) {
input_encoding = "UTF-8";
- } else if (buf[strlen(buf) - 1] != '\n') {
+ } else if (*buf == '\0' || buf[strlen(buf) - 1] != '\n') {
/* seek forward to the end of the line;
comments here are not mentioned by the
specification, thus ignore this comment */

65
192.patch Normal file
View File

@@ -0,0 +1,65 @@
commit dfa8b661b506a463a669754ed635b0a8eb67580e
Author: Thomas Loimer <thomas.loimer@tuwien.ac.at>
Date: Thu Apr 10 09:03:30 2025 +0200
Detect nan in spline control values, ticket #192
---
fig2dev/read.c | 17 +++++++++++------
fig2dev/tests/read.at | 19 +++++++++++++++++++
2 files changed, 30 insertions(+), 6 deletions(-)
--- fig2dev/read.c
+++ fig2dev/read.c 2025-05-16 08:04:13.646999235 +0000
@@ -1581,12 +1581,17 @@ read_splineobject(FILE *fp, char **restr
free_splinestorage(s);
return NULL;
}
- if (lx < INT_MIN || lx > INT_MAX || ly < INT_MIN ||
- ly > INT_MAX || rx < INT_MIN || rx > INT_MAX ||
- ry < INT_MIN || ry > INT_MAX) {
- /* do not care to clean up, we exit anyway
- cp->next = NULL;
- free_splinestorage(s); */
+ if ( !isfinite(lx) || lx < INT_MIN || lx > INT_MAX ||
+ !isfinite(ly) || ly < INT_MIN || ly > INT_MAX ||
+ !isfinite(rx) || rx < INT_MIN || rx > INT_MAX ||
+ !isfinite(ry) || ry < INT_MIN || ry > INT_MAX)
+ {
+
+ /* clean up, to pass test "reject huge spline controls
+ values" when -fsanitize=address is enabled */
+ cp->next = NULL;
+ free_splinestorage(s);
+ free(cq);
put_msg("Spline control points out of range "
"at line %d.", *line_no);
exit(EXIT_FAILURE);
--- fig2dev/tests/read.at
+++ fig2dev/tests/read.at 2025-05-16 08:07:33.111333617 +0000
@@ -608,6 +608,25 @@ EOF
])
AT_CLEANUP
+AT_SETUP([reject nan in spline controls values, #192])
+AT_KEYWORDS([read.c])
+# Use an output language that does not natively support Bezier splines.
+# Otherwise, the huge values are simply copied to the output.
+AT_CHECK([fig2dev -L epic <<EOF
+#FIG 3.1
+Landscape
+Center
+Metric
+1200 2
+3 2 0 1 0 7 50 -1 -1 0.0 0 0 0 2
+ 0 0 1200 0
+ 600 600 600 nan
+ 600 600 600 600
+EOF
+], 1, ignore, [Spline control points out of range at line 8.
+])
+AT_CLEANUP
+
AT_BANNER([Dynamically allocate picture file name.])
AT_SETUP([prepend fig file path to picture file name])

View File

@@ -400,7 +400,7 @@ diff --git a/fig2dev/drivers.h b/fig2dev/drivers.h
diff --git a/fig2dev/fig2dev.c b/fig2dev/fig2dev.c diff --git a/fig2dev/fig2dev.c b/fig2dev/fig2dev.c
--- a/fig2dev/fig2dev.c --- a/fig2dev/fig2dev.c
+++ b/fig2dev/fig2dev.c +++ b/fig2dev/fig2dev.c
@@ -829,6 +829,23 @@ help_msg(void) @@ -858,6 +858,23 @@ help_msg(void)
); );
} }
@@ -424,7 +424,7 @@ diff --git a/fig2dev/fig2dev.c b/fig2dev/fig2dev.c
if (dev == NULL || !strcmp(lang, "shape")) { if (dev == NULL || !strcmp(lang, "shape")) {
puts( puts(
"SHAPE (ShapePar driver) Options:\n" "SHAPE (ShapePar driver) Options:\n"
@@ -974,6 +991,12 @@ static int compound_dump(F_compound *com @@ -1003,6 +1020,12 @@ static int compound_dump(F_compound *com
static int static int
rec_comp(struct obj_rec *r1, struct obj_rec *r2) rec_comp(struct obj_rec *r1, struct obj_rec *r2)
{ {
@@ -1338,7 +1338,7 @@ diff --git a/fig2mpdf/fig2mpdf b/fig2mpdf/fig2mpdf
diff --git a/man/fig2dev.1.in b/man/fig2dev.1.in diff --git a/man/fig2dev.1.in b/man/fig2dev.1.in
--- a/man/fig2dev.1.in --- a/man/fig2dev.1.in
+++ b/man/fig2dev.1.in +++ b/man/fig2dev.1.in
@@ -75,8 +75,8 @@ Set the output graphics language. @@ -80,8 +80,8 @@ Set the output graphics language.
Valid languages are Valid languages are
\fBbox, cgm, dxf, epic, eepic, eepicemu, emf, eps, gbx (Gerber beta \fBbox, cgm, dxf, epic, eepic, eepicemu, emf, eps, gbx (Gerber beta
driver), gif, ibmgl, jpeg, latex, map (HTML image map), mf (MetaFont), driver), gif, ibmgl, jpeg, latex, map (HTML image map), mf (MetaFont),
@@ -1349,7 +1349,7 @@ diff --git a/man/fig2dev.1.in b/man/fig2dev.1.in
shape (LaTeX shaped paragraphs), sld (AutoCad slide format), svg, shape (LaTeX shaped paragraphs), sld (AutoCad slide format), svg,
textyl, tiff, tikz, tk (tcl/tk), tpic, xbm and xpm\fR. textyl, tiff, tikz, tk (tcl/tk), tpic, xbm and xpm\fR.
@@ -1145,6 +1145,61 @@ text flagged as "TeX Text". @@ -1152,6 +1152,61 @@ text flagged as "TeX Text".
The pstex and pdftex drivers accept the same options that the EPS driver The pstex and pdftex drivers accept the same options that the EPS driver
accepts. accepts.
@@ -1411,7 +1411,7 @@ diff --git a/man/fig2dev.1.in b/man/fig2dev.1.in
.TP .TP
.B \-n name .B \-n name
Set the Title part of the PostScript output to Set the Title part of the PostScript output to
@@ -1551,6 +1606,12 @@ The string \fIfont\fR can be one of @@ -1558,6 +1613,12 @@ The string \fIfont\fR can be one of
.SH BUGS and RESTRICTIONS .SH BUGS and RESTRICTIONS
@@ -1424,7 +1424,7 @@ diff --git a/man/fig2dev.1.in b/man/fig2dev.1.in
Please send bug reports, fixes, new features etc. to: Please send bug reports, fixes, new features etc. to:
.br .br
\&@PACKAGE_BUGREPORT@ \&@PACKAGE_BUGREPORT@
@@ -1640,3 +1701,7 @@ Michael Schrick (m_schrick@hotmail.com) @@ -1647,3 +1708,7 @@ Michael Schrick (m_schrick@hotmail.com)
The GBX (Gerber) driver was written by The GBX (Gerber) driver was written by
.br .br
Edward Grace (ej.grace@imperial.ac.uk). Edward Grace (ej.grace@imperial.ac.uk).

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:15e246c8d13cc72de25e08314038ad50ce7d2defa9cf1afc172fd7f5932090b1
size 529892

BIN
fig2dev-3.2.9a.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -7,7 +7,7 @@
--- configure --- configure
+++ configure 2023-09-15 07:11:23.442594968 +0000 +++ configure 2023-09-15 07:11:23.442594968 +0000
@@ -2340,7 +2340,7 @@ ac_c_conftest_c99_main=' @@ -2359,7 +2359,7 @@ ac_c_conftest_c99_main='
int dynamic_array[ni.number]; int dynamic_array[ni.number];
dynamic_array[0] = argv[0][0]; dynamic_array[0] = argv[0][0];
dynamic_array[ni.number - 1] = 543; dynamic_array[ni.number - 1] = 543;
@@ -26,7 +26,7 @@
#include "fig2dev.h" /* includes bool.h and object.h */ #include "fig2dev.h" /* includes bool.h and object.h */
//#include "object.h" /* NUMSHADES, NUMTINTS */ //#include "object.h" /* NUMSHADES, NUMTINTS */
@@ -1363,10 +1364,10 @@ append(const char *restrict infilename, @@ -1366,10 +1367,10 @@ append(const char *restrict infilename,
static bool static bool
append_find_composite(FILE *restrict out) append_find_composite(FILE *restrict out)
{ {
@@ -40,7 +40,7 @@
libdir = getenv("FIG2DEV_LIBDIR"); libdir = getenv("FIG2DEV_LIBDIR");
#ifdef I18N_DATADIR #ifdef I18N_DATADIR
@@ -1378,18 +1379,28 @@ append_find_composite(FILE *restrict out @@ -1381,18 +1382,28 @@ append_find_composite(FILE *restrict out
fputs(COMPOSITE_ERRMSG, stderr); fputs(COMPOSITE_ERRMSG, stderr);
return false; return false;
} }
@@ -76,7 +76,7 @@
return false; return false;
} }
@@ -1443,8 +1454,7 @@ append_find_composite(FILE *restrict out @@ -1446,8 +1457,7 @@ append_find_composite(FILE *restrict out
put_msg("The output might be broken."); put_msg("The output might be broken.");
} }

View File

@@ -4,11 +4,11 @@
--- fig2dev/dev/genpdf.c --- fig2dev/dev/genpdf.c
+++ fig2dev/dev/genpdf.c 2024-09-12 11:42:17.585579884 +0000 +++ fig2dev/dev/genpdf.c 2024-09-12 11:42:17.585579884 +0000
@@ -48,6 +48,7 @@ @@ -49,6 +49,7 @@
*/ */
#ifdef GSEXE #ifdef GSEXE
#define GSFMT GSEXE " -q -dSAFER -dAutoRotatePages=/None -sDEVICE=pdfwrite " \ #define GSFMT GSEXE " -q -dSAFER -dAutoRotatePages=/None -sDEVICE=pdfwrite " \
+ "-dWriteXRefStm=false -dWriteObjStms=false " \ + "-dWriteXRefStm=false -dWriteObjStms=false " \
"-dCompatibilityLevel=1.4 -dPDFSETTINGS=/prepress -o '%s' -" "-dCompatibilityLevel=1.%d -dPDFSETTINGS=/prepress -o '%s' -"
#else #else
#define GSFMT "" #define GSFMT ""

View File

@@ -1,3 +1,53 @@
-------------------------------------------------------------------
Fri May 16 09:32:21 UTC 2025 - Dr. Werner Fink <werner@suse.de>
- Work around bug in obs service
-------------------------------------------------------------------
Fri May 16 08:18:32 UTC 2025 - Dr. Werner Fink <werner@suse.de>
- Add patches in order of our bug numbers (differs to upstream)
* 192.patch -- Bug boo#1243260 (CVE-2025-46397)
fig2dev stack-overflow
* 187.patch -- Bug boo#1243261 (CVE-2025-46400)
fig2dev segmentation fault in read_arcobject
* 191.patch -- Bug boo#1243262 (CVE-2025-46398)
fig2dev stack-overflow via read_objects
* 190.patch -- Bug boo#1243263 (CVE-2025-46399)
fig2dev segmentation fault in genge_itp_spline
-------------------------------------------------------------------
Tue Apr 29 12:01:57 UTC 2025 - Dr. Werner Fink <werner@suse.de>
- Add patches
* 184.patch -- Bug boo#1240379 (CVE-2025-31164)
heap-buffer overflow in fig2dev in version 3.2.9a allows an attacker
to availability via local input manipulation via  create_line_with_spline
* 185.patch -- Bug boo#1240380 (CVE-2025-31162)
Floating point exception in fig2dev in version 3.2.9a allows an attacker
to availability via local input manipulation via get_slope function
* 186.patch -- Bug boo#1240381 (CVE-2025-31163)
Segmentation fault in fig2dev in version 3.2.9a allows an attacker to
availability via local input manipulation via put_patternarc function
-------------------------------------------------------------------
Tue Jan 14 08:47:58 UTC 2025 - Dr. Werner Fink <werner@suse.de>
- Update to fig2dev version 3.2.9a (Dec 2024)
o Specify pdf minor version with option -Y.
o Specify width (-Z <wid>w) or height (-Z <height>h) of figure.
o Correctly read from a pipe, ticket #156.
o Fix behavior of option -F for e(e)pic and latex outputs, ticket #157.
o Compounds containing ascii-only text would disable utf-8 output, #158.
o Option --enable-versioning works in out-of-tree builds.
o Correct links to embedded image files in svg output.
o Correct font size in svg output, ticket #176.
- Port patches
* 0001-Use-native-fig2dev-pdf-output-instead-of-epstopdf.patch
* fig2dev-3.2.6-fig2mpdf.patch
* transfig-3.2.9.dif
* transfig-gs10.03.patch
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Sep 12 12:00:53 UTC 2024 - Dr. Werner Fink <werner@suse.de> Thu Sep 12 12:00:53 UTC 2024 - Dr. Werner Fink <werner@suse.de>
@@ -312,7 +362,7 @@ Mon May 7 10:28:07 UTC 2018 - werner@suse.de
- Update to fig2dev version 3.2.7a (Patchlevel 7a (April 2018)) - Update to fig2dev version 3.2.7a (Patchlevel 7a (April 2018))
o Language previous option current option o Language previous option current option
------------------------------------------------------------ ____________________________________________________________
cgm -b dummy -a cgm -b dummy -a
epic -A scale -d scale epic -A scale -d scale
eepic -A scale -d scale eepic -A scale -d scale
@@ -886,12 +936,10 @@ Wed Oct 18 15:58:04 CEST 2000 - werner@suse.de
- Avoid epsfig style, use normal graphics style (bug# 4168) - Avoid epsfig style, use normal graphics style (bug# 4168)
-------------------------------------------------------------------
Fri Sep 15 17:01:53 CEST 2000 - werner Fri Sep 15 17:01:53 CEST 2000 - werner
- Update to 3.2.3c to fit xfig version - Update to 3.2.3c to fit xfig version
-------------------------------------------------------------------
Wed May 31 16:26:42 CEST 2000 - werner Wed May 31 16:26:42 CEST 2000 - werner
- Use %{_defaultdocdir} - Use %{_defaultdocdir}
@@ -928,17 +976,17 @@ Thu Sep 17 18:15:53 MEST 1998 - ro@suse.de
- dont redeclare sys_errlist for glibc - dont redeclare sys_errlist for glibc
---------------------------------------------------------------------------- -------------------------------------------------------------------
Fri Oct 10 15:32:09 MEST 1997 - florian@suse.de Fri Oct 10 15:32:09 MEST 1997 - florian@suse.de
- update to version 3.2 - update to version 3.2
---------------------------------------------------------------------------- -------------------------------------------------------------------
Wed Oct 8 16:06:02 CEST 1997 - ro@suse.de Wed Oct 8 16:06:02 CEST 1997 - ro@suse.de
- Prepared package for automatic build - Prepared package for automatic build
---------------------------------------------------------------------------- -------------------------------------------------------------------
Tue May 27 20:03:59 MEST 1997 - florian@suse.de Tue May 27 20:03:59 MEST 1997 - florian@suse.de

View File

@@ -1,7 +1,7 @@
# #
# spec file for package transfig # spec file for package transfig
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -17,18 +17,25 @@
Name: transfig Name: transfig
Version: 3.2.9 Version: 3.2.9a
Release: 0 Release: 0
Summary: Graphic Converter Summary: Graphic Converter
# www.xfig.org is dead # www.xfig.org is dead
URL: https://mcj.sourceforge.net/ URL: https://mcj.sourceforge.net/
License: MIT License: MIT
Group: Productivity/Graphics/Convertors Group: Productivity/Graphics/Convertors
#Source: http://sourceforge.net/projects/mcj/files/fig2dev-%%{version}.tar.xz/download#/fig2dev-%%{version}.tar.xz #Source: https://sourceforge.net/projects/mcj/files/fig2dev-%%{version}.tar.xz/download#/fig2dev-%%{version}.tar.xz
Source: fig2dev-%{version}.tar.xz Source: fig2dev-%{version}.tar.xz
Patch0: transfig-3.2.9.dif Patch0: transfig-3.2.9.dif
Patch1: transfig-gs10.03.patch Patch1: transfig-gs10.03.patch
Patch4: transfig-fix-afl.patch Patch4: transfig-fix-afl.patch
Patch20: 184.patch
Patch21: 185.patch
Patch22: 186.patch
Patch23: 192.patch
Patch24: 187.patch
Patch25: 191.patch
Patch26: 190.patch
Patch43: fig2dev-3.2.6-fig2mpdf.patch Patch43: fig2dev-3.2.6-fig2mpdf.patch
Patch44: fig2dev-3.2.6-fig2mpdf-doc.patch Patch44: fig2dev-3.2.6-fig2mpdf-doc.patch
Patch45: transfig-gcc14.patch Patch45: transfig-gcc14.patch
@@ -72,6 +79,13 @@ find -type f -exec chmod a-x,go-w '{}' \;
%patch -P 0 -p0 -b .p0 %patch -P 0 -p0 -b .p0
%patch -P 1 -p0 -b .p1 %patch -P 1 -p0 -b .p1
%patch -P 4 -p1 -b .afl %patch -P 4 -p1 -b .afl
%patch -P 20 -p0
%patch -P 21 -p0
%patch -P 22 -p0
%patch -P 23 -p0
%patch -P 24 -p0
%patch -P 25 -p0
%patch -P 26 -p0
%patch -P 43 -p1 -b .mpdf %patch -P 43 -p1 -b .mpdf
%patch -P 44 -p1 -b .mpdfdoc %patch -P 44 -p1 -b .mpdfdoc
%patch -P 45 -p0 -b .gcc14 %patch -P 45 -p0 -b .gcc14