-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
op25 (new formula) #55327
op25 (new formula) #55327
Conversation
depends_on "itpp" | ||
|
||
def install | ||
# TODO: apply patch if gnuradio >= 3.8? |
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.
Currently expects to build against [email protected]
as explained in https://git.osmocom.org/op25/commit/?id=c26b51e0c1b5fd9eee0c5b13dc137050cd0c988b, refs #49733
# TODO: apply patch if gnuradio >= 3.8? | ||
|
||
args = std_cmake_args + %w[ | ||
-Wno-dev |
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.
Suppresses warnings intended for project development, but they're only visible when installing with --verbose
, should this just be removed?
libexec.install Dir["#{buildpath}/op25/gr-op25_repeater/apps/**"] | ||
|
||
# FIXME: is this an appropriate way to install? | ||
bin.install_symlink libexec/"rx.py" => "op25" |
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.
I'm unsure if any of the Python application scripts in the apps
directory should actually be renamed or installed to bin
or if only installing into libexec
would be more appropriate.
depends_on "cppunit" => :build | ||
depends_on "swig" => :build | ||
depends_on "gnuradio" | ||
depends_on "gr-osmosdr" |
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.
Successfully builds against [email protected]
, will need to be updated if/when #50921 is unblocked and merged.
depends_on "cmake" => :build | ||
depends_on "cppunit" => :build | ||
depends_on "swig" => :build | ||
depends_on "gnuradio" |
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.
I believe this defaults to building with macOS system Python 2.7 but I think should also build successfully with Python 3 (refs #54848). I tested building against the [email protected]
formula from #49733 and it appeared to work.
Formula["gr-osmosdr"].lib, | ||
lib, | ||
].each do |dep| | ||
Pathname.glob(dep/"python*/site-packages").each do |path| |
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.
Would using Language::Python.major_minor_version
similar to https://github.com/Homebrew/homebrew-core/blob/master/Formula/urh.rb#L32 be a better option here?
|
@iMichka can you help here? It's python + gnuradio |
Our gnuradio uses system Python 2. We can not accept new formulae that depend on a deprecated library. #49733 is ready but has one issue; and I am still waiting from feedback from upstream to get it fixed, as I was not able to fix it myself. As long as #49733 is not merged, we can not accept the |
@iMichka Happy to wait for #49733 and update or reopen this targeting Python 3 and |
I'd say reopening is the way to go here, given the uncertainty in the timing of #49733 |
Missing/broken dependencies (for future reference):
|
brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew test <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingbrew install <formula>
)?