[MacPorts] #66726: gr-osmosdr fails to build due to errors with SWIGPY_SLICEOBJECT
MacPorts
noreply at macports.org
Mon Feb 6 06:39:34 UTC 2023
#66726: gr-osmosdr fails to build due to errors with SWIGPY_SLICEOBJECT
-------------------------+-----------------------
Reporter: sck-nogas | Owner: michaelld
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.8.0
Resolution: | Keywords: ventura
Port: gr-osmosdr |
-------------------------+-----------------------
Comment (by kencu):
To get started on this, first bladeRF doesn't extract with the new base
changes. This fixed that:
{{{
% git diff ../bladeRF/Portfile
diff --git a/science/bladeRF/Portfile b/science/bladeRF/Portfile
index fe519d654b9..11aff2ed2ce 100644
--- a/science/bladeRF/Portfile
+++ b/science/bladeRF/Portfile
@@ -49,20 +49,9 @@ checksums ${bladeRF_distfile} \
sha256
53670c8f0a9feaa774d8c3067ba201b31c0197294bdd00a1795c72a0368aac40 \
size 44184797
-post-extract {
+worksrcdir Nuand-bladeRF-[string range ${github.version} 0 6]
- # roughly replicate what's going on in the github PG post-extract
- # for the main tarball extract directory name. It doesn't work
- # here because we're using tags.
- if {[file exists [glob -nocomplain
${workpath}/${github.author}-${github.project}-*]] && \
- [file isdirectory [glob -nocomplain
${workpath}/${github.author}-${github.project}-*]]} {
- ui_debug "move [glob
${workpath}/${github.author}-${github.project}-*] ${workpath}/${distname}"
- move [glob ${workpath}/${github.author}-${github.project}-*]
${workpath}/${distname}
- } else {
- # tarball is not "${github.author}-${github.project}-*"
- ui_error "\n\NError: \${worksrcpath} for 'bladeRF' does not exist
after extracting distfiles. This might indicate that the author or project
is different than set in the Portfile due to a rename at GitHub. Please
examine the extracted directory in ${workpath} and try to correct the
Portfile by either changing the author or project or adding the worksrcdir
option with the correct directory name.\n"
- return -code error "Unexpected github tarball extract."
- }
+post-extract {
if {[file exists [glob -nocomplain
${workpath}/${no_OS_github_author}-${no_OS_github_project}-*]] && \
}}}
Then it turns out that gr-osmosdr doesn't use SWIG any more. It was
removed a few months ago.
https://github.com/osmocom/gr-
osmosdr/commit/0d727b3ef8ea56132fd538c9aa54b671950e1297
But updating the port to the current version fails because the gnuradio
port is not new enough to support it (3.9 is required, 3.8.5.0 is
available).
So gnuradio will need to be updated to 3.9+ before gr-osmosdr can be
updated.
AND right about here I realized this was getting too complicated for my
puttering, and I had best leave this with Michael, who actually knows
something about gnuradio.
--
Ticket URL: <https://trac.macports.org/ticket/66726#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list