Bug 278510 - net/sdl2_net: Use upstream release archive
Summary: net/sdl2_net: Use upstream release archive
Status: Closed Not Accepted
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Dmitry Marakasov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-21 14:29 UTC by Daniel Engberg
Modified: 2024-05-04 11:25 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (amdmi3)


Attachments
Patch for sdl2_net (1.34 KB, patch)
2024-04-21 14:29 UTC, Daniel Engberg
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Engberg freebsd_committer freebsd_triage 2024-04-21 14:29:01 UTC
Created attachment 250137 [details]
Patch for sdl2_net

* Switch to upstream's official release archive
* Don't extract files we don't need (saves about 10Mbyte)
Comment 1 Dmitry Marakasov freebsd_committer freebsd_triage 2024-04-22 18:20:40 UTC
> Switch to upstream's official release archive

This hinders both port maintainability (see sdl2_sound port to see what it's useful for) and security (recent xz case). Please do not suggest this change any more.

> Don't extract files we don't need (saves about 10Mbyte)

Unjustified complication for no measurable gain.

Similar thing for other PRs.
Comment 2 commit-hook freebsd_committer freebsd_triage 2024-04-22 18:21:02 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5b634162c6b63002436e316c8f35b442bb58f41c

commit 5b634162c6b63002436e316c8f35b442bb58f41c
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2024-04-22 18:12:51 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2024-04-22 18:20:02 +0000

    audio/sdl2_mixer: sort options, remove stray OGG option

    PR:             278510
    Submitted by:   diizzy

 audio/sdl2_mixer/Makefile | 53 ++++++++++++++++++++---------------------------
 1 file changed, 23 insertions(+), 30 deletions(-)
Comment 3 Daniel Engberg freebsd_committer freebsd_triage 2024-04-22 19:09:44 UTC
> Don't extract files we don't need (saves about 10Mbyte)
Unjustified complication for no measurable gain.

If you look across 4 affected ports (sdl2_net,sdl2_tff,sdl2_image,sdl2_mixer) we save close to 50Mbyte of pointless I/O (XCode alone is 11.5Mbyte). That's measurable on spinning rust and wear on SSDs. There are no complications apart from a few directories not being extracted? I'd agree if we would need additional patching though.
Comment 4 Dmitry Marakasov freebsd_committer freebsd_triage 2024-04-23 16:32:24 UTC
> If you look across 4 affected ports (sdl2_net,sdl2_tff,sdl2_image,sdl2_mixer) we save close to 50Mbyte of pointless I/O (XCode alone is 11.5Mbyte). That's measurable on spinning rust and wear on SSDs.

These ports are rebuilt once a month at most, so no it is not, neither absolutely, nor compared to I/O generated by other ports.

> There are no complications apart from a few directories not being extracted? I'd agree if we would need additional patching though.

Each extra line has a non-zero maintenance cost, which will never pay off in this case.
Comment 5 Daniel Engberg freebsd_committer freebsd_triage 2024-05-04 11:25:57 UTC
You are already doing it in in sdl2_image so why not make an improvement?
https://cgit.freebsd.org/ports/tree/graphics/sdl2_image/Makefile#n53