Bug 282106 - print/rtf2latex2e: update 2.2.2 → 2.2.3
Summary: print/rtf2latex2e: update 2.2.2 → 2.2.3
Status: In Progress
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Zsolt Udvari
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-15 12:58 UTC by Älven
Modified: 2024-11-29 15:03 UTC (History)
3 users (show)

See Also:


Attachments
[PATCH] print/rtf2latex2e: update 2.2.2 → 2.2.3 (3.87 KB, patch)
2024-10-15 12:58 UTC, Älven
no flags Details | Diff
[PATCH] print/rtf2latex2e: update 2.2.2 → 2.2.3 (3.89 KB, patch)
2024-10-26 19:25 UTC, Älven
martin.dieringer: maintainer-approval+
Details | Diff
remove multiline.tex from test (4.50 KB, patch)
2024-10-27 06:50 UTC, Zsolt Udvari
uzsolt: maintainer-approval?
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Älven 2024-10-15 12:58:23 UTC
Created attachment 254258 [details]
[PATCH] print/rtf2latex2e: update 2.2.2 → 2.2.3

Release 2-2-3 adds the option to delimit LaTeX equations 
by \(...\) instead of $...$ and \[...\] instead of $$...$$
Comment 1 Zsolt Udvari freebsd_committer freebsd_triage 2024-10-23 17:41:42 UTC
Martin, do you approve this patch?
Comment 2 martin.dieringer 2024-10-23 17:51:28 UTC
Where is the OK button?
Comment 3 Zsolt Udvari freebsd_committer freebsd_triage 2024-10-23 20:03:49 UTC
(In reply to martin.dieringer from comment #2)
You approved at 2024-10-15 15:42:39 CEST but remove the flag at 2024-10-21 06:36:17 CEST.
So the removing was a mistake and the patch is accepted.
Comment 4 martin.dieringer 2024-10-23 20:08:39 UTC
I got an email after I approved.
Comment 5 Zsolt Udvari freebsd_committer freebsd_triage 2024-10-24 09:59:40 UTC
(In reply to martin.dieringer from comment #4)
Okay, no problem. I test it...
Comment 6 Zsolt Udvari freebsd_committer freebsd_triage 2024-10-24 10:04:40 UTC
The 'make test' fails:
4545717175756161747469696f6f6e6e2e2e444453534d4d545433333636000
000000000000000000180000d0cf11e0gmake[1]: *** [Makefile:86: multiline.tex] Abort trap (core dumped)
gmake[1]: Leaving directory '/wrkdirs/usr/ports/print/rtf2latex2e/work/rtf2latex2e-2-2-3/test'


Could you please check?
Comment 7 Älven 2024-10-24 10:33:15 UTC
Sure, I'll check it.
Comment 8 Älven 2024-10-25 18:39:38 UTC
Thanks for pointing to this.
I've checked both 2.2.2 from ports and my proposed 2.2.3 and found 2.2.2 to also fail the same test, with message mentioning the same code line:

Processing multiline.rtf
gmake[1]: *** [Makefile:86: multiline.tex] Abort trap (core dumped)
gmake[1]: Leaving directory '/usr/ports/default/print/rtf2latex2e/work/rtf2latex2e-2-2-2/test'
gmake: *** [Makefile:151: test] Error 2
*** Error code 1

So it was already broken. The only reason it appeared now and not before was me adding TEST_TARGET=test line to Makefile, making tests actually run.

I think it still may be updated, possibly even with TEST_TARGET added, as nothing bad actually happened: the situation hadn't become any worse than it already was.

And what do you think?
Comment 9 martin.dieringer 2024-10-25 19:39:40 UTC
Yes, ignore the test, or remove the port altogether (the source is of 2016)?
Comment 10 Zsolt Udvari freebsd_committer freebsd_triage 2024-10-26 18:43:11 UTC
(In reply to Älven from comment #8)
Could you patch the source to skip this test? Or can use TESTING_UNSAFE (https://cgit.freebsd.org/ports/tree/Mk/Features/testing.mk#n7).
Comment 11 Älven 2024-10-26 19:04:03 UTC
(In reply to Zsolt Udvari from comment #10)
> Or can use TESTING_UNSAFE

Thank you for the advice! :) I'll do this exactly.
Glad to know it's possible and how to do it should I need it for some other ports too.
Comment 12 Älven 2024-10-26 19:25:19 UTC
Created attachment 254542 [details]
[PATCH] print/rtf2latex2e: update 2.2.2 → 2.2.3

+ Skip failing test
Comment 13 Zsolt Udvari freebsd_committer freebsd_triage 2024-10-27 06:50:22 UTC
Created attachment 254552 [details]
remove multiline.tex from test

I'd suggest remove multiline.tex from tests. Now it runs fine.
Comment 14 martin.dieringer 2024-10-27 08:41:51 UTC
Comment on attachment 254552 [details]
remove multiline.tex from test

Better skip than forge the test
Comment 15 Zsolt Udvari freebsd_committer freebsd_triage 2024-10-27 17:39:26 UTC
(In reply to martin.dieringer from comment #14)
A partial test is better than no test (document why we skip). The 2.2.2 fails on this file too.
Comment 16 Zsolt Udvari freebsd_committer freebsd_triage 2024-11-29 15:03:15 UTC
(In reply to martin.dieringer from comment #14)
Martin, what do you think? Do you want skip the whole test?