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
bfs: new port #3421
bfs: new port #3421
Conversation
Travis Build #4898 Passed. Lint results
Port bfs success on xcode9.4. Log |
Oops, I accidentally meant to commit a change which changed |
Travis Build #4899 Passed. Lint results
Port bfs success on xcode9.4. Log |
textproc/bfs/Portfile
Outdated
size 88162 | ||
|
||
worksrcdir ${name}-${version} | ||
use_configure no |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are going to need to make sure that you are using the right compiler.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mf2k I don't think this program cares very much about which compiler it uses. It's supposed to be portable, so the default one chosen by Macports should suffice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to at least make sure the universal variant works or not. Without the configure phase, manual changes, as mentioned in the wiki page, need to happen to make it work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mf2k I am on Mojave, where the universal variant does not work and is no longer an option. Do I need to test it on another machine, then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Macports supports the current and prior 2 versions of macOS officially. So you need to account for it. You can disable the universal variant and say in a comment that it is not tested and likely will not work. Because it will not work without modification and no configure script.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mf2k Ok, I added some code for the universal variant so that it can build a universal binary if chosen by the user. According to the docs: "The [universal] variant can be overridden if the default code does not work."
Selecting +universal
does not work on Mojave; it fails with this error:
Error: bfs cannot be installed for the configured universal_archs 'x86_64 i386' because it only supports the arch(s) ''.
I'm inclined to believe this error occurred because Mojave does not seem to play nice with universal binaries anymore. I don't know whether this warrants a note or not.
However, selecting +universal
does work on High Sierra. It installed successfully and the output of file /opt/local/bin/bfs
is:
/opt/local/bin/bfs: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64] [i386:Mach-O executable i386]
/opt/local/bin/bfs (for architecture x86_64): Mach-O 64-bit executable x86_64
/opt/local/bin/bfs (for architecture i386): Mach-O executable i386
@mf2k I implemented the changes you requested, except for the one about using the right compiler. I don't think that's an issue in this case. |
Travis Build #4902 Passed. Lint results
Port bfs success on xcode9.4. Log |
b4ff2a0
to
f7722a5
Compare
Travis Build #4958 Passed. Lint results
Port bfs success on xcode9.4. Log |
@mf2k I went ahead and added some code for running the tests and I also added a So, all in all I think this is good to go, unless you have any other concerns. |
Travis Build #4959 Passed. Lint results
Port bfs success on xcode9.4. Log |
Thanks! |
@ylluminarious Feel like opening a bfs issue with those failures? |
@tavianator Strange, after I installed |
Description
This adds a new port for the
bfs
program, a breadth-first version of the Unixfind
command.Type(s)
Tested on
macOS 10.14.2 18C54
Xcode 10.1 10B61
Verification
Have you
port lint
?sudo port test
?sudo port -vst install
?