Bug 269031 - devel/popt: Backport patches for conversion to CMake
Summary: devel/popt: Backport patches for conversion to CMake
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: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-18 16:46 UTC by Daniel Engberg
Modified: 2024-04-08 05:28 UTC (History)
0 users

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


Attachments
Patch for popt (3.30 KB, patch)
2023-01-18 16:46 UTC, Daniel Engberg
no flags Details | Diff
Patch for popt v2 (3.77 KB, patch)
2023-01-20 10:05 UTC, Daniel Engberg
no flags Details | Diff
Patch for popt v3 (69.97 KB, patch)
2023-02-06 11:39 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 2023-01-18 16:46:11 UTC
Created attachment 239560 [details]
Patch for popt

As with many other projects upstream is moving away from GNU Autotools, backport patches for switching to CMake so other ports can utilize CMake package files.

* Switch to CMake as upstream no longer supports GNU Autotools [1]
* Backport upstream patches for CMake conversion [2]
* Backport patch to fix tests [3]
* Remove USES= iconv, port uses iconv in libc
* Rework port to follow Porters Handbook more closely

Compile and runtime tested on FreeBSD 13.1-STABLE (amd64) (make, make check-plist, make test)
Poudriere testport OK 12.3-RELEASE (amd64)
Poudriere testport OK 13.1-RELEASE (i386)

References:

[1] https://github.com/rpm-software-management/popt/commit/e145ea481570a42b2617f5c4be1ada1aaacf6026 

[2]
https://github.com/rpm-software-management/popt/commit/692ae48f58a659015b38bdf20d8279d87fc9b0b0
https://github.com/rpm-software-management/popt/commit/0788cb2c5e8b606a7c4e6e0b77cbfb8c55e42e2a
https://github.com/rpm-software-management/popt/commit/975cf4b143d5287c9c9a8e8e9c5f1554b79cb255

[3]
https://github.com/rpm-software-management/popt/commit/ce80a8045c70db57084008a3fd98a7f0ba79544e
Comment 2 Po-Chuan Hsieh freebsd_committer freebsd_triage 2023-02-05 13:52:08 UTC
Is there any port requires the cmake files right now? Could we postpone this until the official release?
Comment 3 Daniel Engberg freebsd_committer freebsd_triage 2023-02-06 11:39:50 UTC
Created attachment 239943 [details]
Patch for popt v3

Fold all backport patches into one file
Comment 4 Daniel Engberg freebsd_committer freebsd_triage 2023-02-06 11:42:28 UTC
Hi,

We are seeing more and more projects moving away from GNU Autotools and more requests of providing .cmake files (PR 260402, 267652 for example) so instead of holding up development why not be proactive?

Best regards,
Daniel
Comment 5 Po-Chuan Hsieh freebsd_committer freebsd_triage 2024-04-08 05:28:58 UTC
I'll move to cmake with the new release if needed but not now.