Bug 282381 - emulators/dosbox-staging: fix bug in build scripts
Summary: emulators/dosbox-staging: fix bug in build scripts
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: Max Brazhnikov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-28 11:47 UTC by Eirik Oeverby
Modified: 2024-10-31 10:34 UTC (History)
0 users

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


Attachments
Patch to emulators/dosbox-staging/Makefile (521 bytes, text/plain)
2024-10-28 11:47 UTC, Eirik Oeverby
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eirik Oeverby 2024-10-28 11:47:48 UTC
Created attachment 254591 [details]
Patch to emulators/dosbox-staging/Makefile

For some time, dosbox-staging has failed with SIGILL when installed from the FreeBSD package repositories. Building locally results in a working binary.

After discussing with dosbox-staging developers on GitHub, this has been flagged as a bug in their meson build scripts causing `march=native` to be set. See
https://github.com/dosbox-staging/dosbox-staging/issues/4020

Suggested workaround in attached patch: Pass the same MESON_ARGS as dosbox-staging uses in their own official builds until upstream has fixed the build scripts.
Comment 1 Eirik Oeverby 2024-10-28 17:32:06 UTC
Sorry Mark, dunno what I was doing there (no description).
Comment 2 commit-hook freebsd_committer freebsd_triage 2024-10-29 20:49:18 UTC
A commit in branch main references this bug:

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

commit d7d4e43aebc2bf74335fd425cbc7f2d8045a16be
Author:     Max Brazhnikov <makc@FreeBSD.org>
AuthorDate: 2024-10-29 20:47:31 +0000
Commit:     Max Brazhnikov <makc@FreeBSD.org>
CommitDate: 2024-10-29 20:47:31 +0000

    emulators/dosbox-staging: Disable SIMD autodetection

    Disable SIMD autodetection when building official package.

    PR:             282381
    Reported by:    Eirik Oeverby

 emulators/dosbox-staging/Makefile | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
Comment 3 Max Brazhnikov freebsd_committer freebsd_triage 2024-10-29 20:53:04 UTC
Should be fixed for newer packages. Thanks for report!
Comment 4 Eirik Oeverby 2024-10-29 21:01:33 UTC
I forgot to bump the revision in my patch.. :(
Comment 5 Max Brazhnikov freebsd_committer freebsd_triage 2024-10-29 21:10:52 UTC
(In reply to Eirik Oeverby from comment #4)
> I forgot to bump the revision in my patch.. :(

Not to worry, I have committed different patch and updated the port to latest version.
Comment 6 commit-hook freebsd_committer freebsd_triage 2024-10-31 10:34:50 UTC
A commit in branch 2024Q4 references this bug:

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

commit a0b5fd06395afc496d330fb44586496093b080a2
Author:     Max Brazhnikov <makc@FreeBSD.org>
AuthorDate: 2024-10-29 20:47:31 +0000
Commit:     Max Brazhnikov <makc@FreeBSD.org>
CommitDate: 2024-10-31 10:33:33 +0000

    emulators/dosbox-staging: Disable SIMD autodetection

    Disable SIMD autodetection when building official package.

    PR:             282381
    Reported by:    Eirik Oeverby

    (cherry picked from commit d7d4e43aebc2bf74335fd425cbc7f2d8045a16be)

 emulators/dosbox-staging/Makefile | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)