gnu-octave / octave-audio

GNU General Public License v3.0
3 stars 0 forks source link

'__audio_pkg_lock__' undefined near line 32, column 1 #2

Closed Schamschula closed 1 year ago

Schamschula commented 1 year ago

While updating the MacPorts Portfile for octave-audio to version 2.0.7 I get the following error:

'__audio_pkg_lock__' undefined near line 32, column 1

PS: (Unrelated) I also see several of the following warnings:

warning: autoload: '__midi__.oct' is not an absolute filename

Schamschula commented 1 year ago

I also get the same error for previous versions pulled from github. I did not see this error when pulling from the old repository.

lostbard commented 1 year ago

Can you provide the logs of compiling octave-audio as audio_pkg_lock is a function within the audio package

https://github.com/gnu-octave/octave-audio/blob/main/src/pkglock.cc

lostbard commented 1 year ago

ALso to verify, octave is not running with the audio package already loaded when doing the update?

Schamschula commented 1 year ago

No octave wasn't running as I attempted the build.

Here's what I see

Executing:  cd "/opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_octave_octave-audio/octave-audio/work/audio" && /usr/bin/arch -arch $OCTAVE_ARCH /opt/local/bin/octave-cli -q -f -H --eval 'try; pkg prefix /opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_octave_octave-audio/octave-audio/work/destroot/opt/local/share/octave/packages /opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_octave_octave-audio/octave-audio/work/destroot/opt/local/lib/octave/packages; pkg install -verbose -nodeps -local /opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_octave_octave-audio/octave-audio/work/tmp-build/audio-2.0.7-any-none.tar.gz; catch; disp(lasterror.message); exit(1); end_try_catch;' 
mkdir (/opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_octave_octave-audio/octave-audio/work/.tmp/oct-6gL8Cl)
untar (/opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_octave_octave-audio/octave-audio/work/tmp-build/audio-2.0.7-any-none.tar.gz, /opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_octave_octave-audio/octave-audio/work/.tmp/oct-6gL8Cl)
warning: autoload: '__midi__.oct' is not an absolute filename
warning: called from
    /opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_octave_octave-audio/octave-audio/work/destroot/opt/local/share/octave/packages/audio-2.0.7/PKG_ADD at line 16 column 1
    doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
    doc_cache_create at line 62 column 12
    install>generate_lookfor_cache at line 840 column 5
    install at line 241 column 7
    pkg at line 619 column 9

warning: autoload: '__midi__.oct' is not an absolute filename
warning: called from
    /opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_octave_octave-audio/octave-audio/work/destroot/opt/local/share/octave/packages/audio-2.0.7/PKG_ADD at line 18 column 1
    doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
    doc_cache_create at line 62 column 12
    install>generate_lookfor_cache at line 840 column 5
    install at line 241 column 7
    pkg at line 619 column 9

warning: autoload: '__midi__.oct' is not an absolute filename
warning: called from
    /opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_octave_octave-audio/octave-audio/work/destroot/opt/local/share/octave/packages/audio-2.0.7/PKG_ADD at line 19 column 1
    doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
    doc_cache_create at line 62 column 12
    install>generate_lookfor_cache at line 840 column 5
    install at line 241 column 7
    pkg at line 619 column 9

warning: autoload: '__midi__.oct' is not an absolute filename
warning: called from
    /opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_octave_octave-audio/octave-audio/work/destroot/opt/local/share/octave/packages/audio-2.0.7/PKG_ADD at line 21 column 1
    doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
    doc_cache_create at line 62 column 12
    install>generate_lookfor_cache at line 840 column 5
    install at line 241 column 7
    pkg at line 619 column 9

warning: autoload: '__midi__.oct' is not an absolute filename
warning: called from
    /opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_octave_octave-audio/octave-audio/work/destroot/opt/local/share/octave/packages/audio-2.0.7/PKG_ADD at line 23 column 1
    doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
    doc_cache_create at line 62 column 12
    install>generate_lookfor_cache at line 840 column 5
    install at line 241 column 7
    pkg at line 619 column 9

warning: autoload: '__midi__.oct' is not an absolute filename
warning: called from
    /opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_octave_octave-audio/octave-audio/work/destroot/opt/local/share/octave/packages/audio-2.0.7/PKG_ADD at line 25 column 1
    doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
    doc_cache_create at line 62 column 12
    install>generate_lookfor_cache at line 840 column 5
    install at line 241 column 7
    pkg at line 619 column 9

warning: autoload: '__midi__.oct' is not an absolute filename
warning: called from
    /opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_octave_octave-audio/octave-audio/work/destroot/opt/local/share/octave/packages/audio-2.0.7/PKG_ADD at line 27 column 1
    doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
    doc_cache_create at line 62 column 12
    install>generate_lookfor_cache at line 840 column 5
    install at line 241 column 7
    pkg at line 619 column 9

warning: autoload: '__midi__.oct' is not an absolute filename
warning: called from
    /opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_octave_octave-audio/octave-audio/work/destroot/opt/local/share/octave/packages/audio-2.0.7/PKG_ADD at line 29 column 1
    doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
    doc_cache_create at line 62 column 12
    install>generate_lookfor_cache at line 840 column 5
    install at line 241 column 7
    pkg at line 619 column 9

warning: autoload: '__midi__.oct' is not an absolute filename
warning: called from
    /opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_octave_octave-audio/octave-audio/work/destroot/opt/local/share/octave/packages/audio-2.0.7/PKG_ADD at line 31 column 1
    doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
    doc_cache_create at line 62 column 12
    install>generate_lookfor_cache at line 840 column 5
    install at line 241 column 7
    pkg at line 619 column 9

'__audio_pkg_lock__' undefined near line 32, column 1
Command failed:  cd "/opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_octave_octave-audio/octave-audio/work/audio" && /usr/bin/arch -arch $OCTAVE_ARCH /opt/local/bin/octave-cli -q -f -H --eval 'try; pkg prefix /opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_octave_octave-audio/octave-audio/work/destroot/opt/local/share/octave/packages /opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_octave_octave-audio/octave-audio/work/destroot/opt/local/lib/octave/packages; pkg install -verbose -nodeps -local /opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_octave_octave-audio/octave-audio/work/tmp-build/audio-2.0.7-any-none.tar.gz; catch; disp(lasterror.message); exit(1); end_try_catch;' 

I take it that there no longer is a configure script. Am I using the wrong tarball? I used release-2.0.7.tar.gz

I tested the old (2.0.5) build using the package from SF. It ran configure and then make.

Now the build happens (but fails) in staging.

lostbard commented 1 year ago

ok ... you are using the wrong tarball, which is just githubs save of the sources at the release time. If you go to the releases page for 2.0.7, there is a link for the package tarball.

https://github.com/gnu-octave/octave-audio/releases/download/release-2.0.7/audio-2.0.7.tar.gz

Schamschula commented 1 year ago

Indeed. That did it! Strange that there is no consistency amongst octave packages. Earlier today, I updated octave-video and octave-zeromq using the default GitHub download settings.

https://github.com/macports/macports-ports/commit/2c5785284d9529f07ce8ebe8e397d03286f1a151

lostbard commented 1 year ago

yeah not sure as I did created the zeromq update and did nothing that I didnt do with audio - there is the default sources and the package-XXXXXXX.tar.gz file that is the actual package.

lostbard commented 1 year ago

Closing as releast files perform as expected