Bug 273098 - graphics/povray38: Remove NATIVE option and do some cleanups
Summary: graphics/povray38: Remove NATIVE option and do some cleanups
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Daniel Engberg
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-13 09:53 UTC by Daniel Engberg
Modified: 2023-08-26 17:09 UTC (History)
1 user (show)

See Also:
bsd: maintainer-feedback+


Attachments
Patch for povray38 (2.16 KB, patch)
2023-08-13 09:53 UTC, Daniel Engberg
no flags Details | Diff
graphics/povray38/Makefile: drop NATIVE option, carry over rest of changes (1.96 KB, patch)
2023-08-22 20:13 UTC, Philipp Ost
bsd: maintainer-approval-
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 2023-08-13 09:53:44 UTC
Created attachment 244048 [details]
Patch for povray38

* Drop NATIVE option, utilize CPUTYPE instead which is support using the framework via /etc/make.conf
* Don't try to override optimization set by framework by defualt
* Utilize framework helpers more and do some slight rearrangement for better readability and consistentcy with Porters Handbook
Comment 1 Philipp Ost 2023-08-13 18:29:46 UTC
I'm fine with the changes, except dropping OPTIMIZED_CFLAGS. I'd like to keep that option around.

You mention using CPUTYPE, but it's nowhere to be found in your patch. Am I missing something?
Comment 2 Daniel Engberg freebsd_committer freebsd_triage 2023-08-13 21:33:24 UTC
Hi,

We're working on removing -march=native treewide because it's non-portable (doesn't work on anything non x86), known to cause issues including misdetection and can possibly override framework settings. CPUTYPE is a part of the framework and is documented here: https://cgit.freebsd.org/src/tree/share/examples/etc/make.conf#n25

Best regards,
Daniel
Comment 3 Daniel Engberg freebsd_committer freebsd_triage 2023-08-18 16:56:00 UTC
Friendly ping
Comment 4 Philipp Ost 2023-08-18 20:14:17 UTC
(In reply to Daniel Engberg from comment #3)

I haven't forgotten this PR. As I'm quite busy currently, I didn't yet reply with a constructive answer. Please allow me a couple of days; I'll get back to you as soon as I can.
Comment 5 Philipp Ost 2023-08-22 20:13:07 UTC
Created attachment 244288 [details]
graphics/povray38/Makefile: drop NATIVE option, carry over rest of changes

Drop NATIVE, but keep OPTIMIZED_CFLAGS around. The rest of the changes are carried over.
Comment 6 Philipp Ost 2023-08-23 18:55:39 UTC
Comment on attachment 244048 [details]
Patch for povray38

After some additional test, it became clear that OPTIMIZED_CFLAGS without march=native is not giving the speed gains that make it worthwhile keeping around. Please commit your original patch.

I'm very sorry for the mess and the delay.
Comment 7 commit-hook freebsd_committer freebsd_triage 2023-08-26 17:08:22 UTC
A commit in branch main references this bug:

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

commit 9549a20a0be5687d170dc419de5e5c8f1026af8c
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2023-08-26 17:03:12 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2023-08-26 17:03:18 +0000

    graphics/povray38: Remove NATIVE option and do some cleanups

    - Drop NATIVE option, utilize CPUTYPE instead which is supported using
      the framework via /etc/make.conf
    - Don't override optimization set by framework
    - Utilize framework helpers more and do some slight rearrangement
      for better readability and consistency with Porters Handbook

    PR:             273098
    Reviewed by:    Philipp Ost <bsd@philippost.de> (maintainer)
    Sponsored by:   Blinkinblox

 graphics/povray38/Makefile | 32 +++++++++++++-------------------
 1 file changed, 13 insertions(+), 19 deletions(-)
Comment 8 Daniel Engberg freebsd_committer freebsd_triage 2023-08-26 17:09:49 UTC
Committed, thanks!