New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libbsd: new Portfile 0.11.7 & files #19785
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* 'libbsd v0.11.7' from FreeBSD * port 'libbsd' & subport 'libbsd-devel' * port 'libbsd' known to fail * subport 'libbsd-devel' with patches - taken from branch w/ macos improv - builds successfully - provides tests - CAVEAT: utility 'closefrom' fails * WIP
NB: Builds with both 'libmd' 1.0.4_1 port and my local 'libmd' 1.1.0 port update. ref #19784 |
Zweihorn
changed the title
libbsd: new Portfile 0.11.7 & files (WIP)
libbsd: new Portfile 0.11.7 & files
Aug 7, 2023
11 tasks
Provided as Merge Request (MR) to the upstream project. |
ryandesign
reviewed
Aug 10, 2023
Update Portfile according to reviewer comments. * Make use of 'PortGroup gitlab 1.0' libbsd * Move 'livecheck' here libbsd-devel * Set version explicitly * Reorder 'depends_build' alphabetically Re: https://github.com/macports/macports-ports/pull/19785/files/d5415d81aeaf0d6bdad3a334930870d935e615c5
libbsd: new port & sub-port with new Portfile 0.11.7 & patch files * 'libbsd v0.11.7' from FreeBSD * port 'libbsd' & subport 'libbsd-devel' * port 'libbsd' known to fail * subport 'libbsd-devel' with build patches - taken from upstream branch w/ macos improv - builds successfully - provides tests - CAVEAT: utility 'closefrom' fails test * provides patches specific to the build process * no patches to the upstream code basis Furthermore: * Make use of 'PortGroup gitlab 1.0' libbsd * Move 'livecheck' here libbsd-devel * Set version explicitly * Reorder 'depends_build' alphabetically Re: https://github.com/macports/macports-ports/pull/19785/files/d5415d81aeaf0d6bdad3a334930870d935e615c5
…-ports into libbsd-0.11.7a
…macports-ports into libbsd-0.11.7a" This reverts commit 41b9016, reversing changes made to 961db61.
This mess calls for a new branch, I presume. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Provides new port libbsd and subport libbsd-devel with new Portfile and patch files.
Thanks to @guillem as the 'libbsd' upstream maintainer of the freedesktop project.
Description
Utility functions from BSD systems, stripped down to a subset of utilities not available to Mac OS X / macOS yet.
This library provides useful functions commonly found on BSD systems, and lacking on others like GNU systems. Thus making it easier to port projects with strong BSD origins, without needing to embed the same code over and over again on each project.
ref https://libbsd.freedesktop.org/wiki/
ref https://gitlab.freedesktop.org/libbsd/libbsd
However, this libbsd port provides a minimized subset of utilities and was reduced to those BSD functions which are not available to Mac OS X / macOS platforms by SDK on default.
This subset of BSD utilities new to macOS is:
The libbsd-devel sub-port provides the development version of the libbsd port, as appropriate.
A new Portfile was established accordingly.
Patch files solely address the build process to allow for a build on macOS and are based on the existing files of the autotools chain. There is no change to the code of any utility. The patches (besides the b.m. workaround) should be reusable and should have no true influence on the build process to other operating systems.
The patch files included are:
need_X
flags as applicable for macOS and reordering most of the statements alphabetically to not get lostThe 'include' files were not touched intentionally.
Type(s)
Tested on
macOS 11.7.9 20G1426 x86_64
Xcode 13.0 13A233
Verification
Have you
port lint --nitpick
?sudo port test
?sudo port -vst install
?