Closed rfc6919 closed 2 years ago
This is https://github.com/Homebrew/homebrew-core/issues/74398 again.
Upstream have said they won't automate install of the firmware binaries as that's distro-specific - see https://github.com/greatscottgadgets/hackrf/issues/868
I'm happy to provide a PR automating this, but it would require shifting the source url from the source only tarball https://github.com/greatscottgadgets/hackrf/archive/v2022.09.1.tar.gz to the one containing built artefacts https://github.com/greatscottgadgets/hackrf/releases/download/v2022.09.1/hackrf-2022.09.1.tar.xz and I don't see how to do that using the github livecheck.
No, we only ship software we built from source. However, I think we can do what you suggested in the previous issue:
I'm just suggesting that the
install
method, as well as runningmake install
inhost
, also copyfirmware-bin
from the root of the release archive into eg..../share/hackrf/firmware-bin
@carlocab
No, we only ship software we built from source.
Do you mean the device firmware? This would involve pulling an entire embedded cross-dev toolchain in to the package dependencies.
The source tarball that's currently referenced in the formula doesn't contain the pre-built device firmware, it's just a package of the git repo at a release tag. The https://github.com/greatscottgadgets/hackrf/releases/download/v2022.09.1/hackrf-2022.09.1.tar.xz release bundle contains pre-built device firmware (so end-users don't need an embedded cross-dev toolchain) but not pre-built host binaries - they still need to be built on the target host using exactly the same process as with the source-only bundle (the cd "host" do
build/install block in the current formula's install
function would remain unchanged).
I believe the changes required are:
pkgshare.install Dir["firmware-bin/"]
as the last line in the install function, after the cd "host" do
block@rfc6919 your suggestion seems alright to me. We'll still build the host tools from source, but download the full tarball including firmware.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
PR https://github.com/Homebrew/homebrew-core/pull/113899 pending review
brew gist-logs <formula>
link ORbrew config
ANDbrew doctor
outputVerification
brew update
and am still able to reproduce my issue.brew doctor
and that did not fix my problem.What were you trying to do (and why)?
trying to upgrade hackrf firmware for new 2022.09.1 release as noted in release notes at https://github.com/greatscottgadgets/hackrf/releases/tag/v2022.09.1
What happened (include all command output)?
required device firmware (provided in upstream release bundle in the firmware-bin/ directory) wasn't included in the homebrew install, so I needed to download the upstream release myself
What did you expect to happen?
the required device firmware files would be installed by the formula
Step-by-step reproduction instructions (by running
brew
commands)