Opened 8 months ago

Closed 8 months ago

#69563 closed defect (fixed)

aria2 @1.37.0_4+docs: can't read "python.version": no such variable

Reported by: ShadSterling (Shad Sterling) Owned by: Schamschula (Marius Schamschula)
Priority: Normal Milestone:
Component: ports Version: 2.9.1
Keywords: Cc:
Port: aria2

Description

Isolating just the docs variant with port clean aria2; port install aria2 -cares+docs-gnutls-openssl-sqlite3-universal fails:

--->  Cleaning aria2
--->  Computing dependencies for aria2
--->  Fetching archive for aria2
--->  Attempting to fetch aria2-1.37.0_4+docs.darwin_22.x86_64.tbz2 from https://packages.macports.org/aria2
--->  Attempting to fetch aria2-1.37.0_4+docs.darwin_22.x86_64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/aria2
--->  Attempting to fetch aria2-1.37.0_4+docs.darwin_22.x86_64.tbz2 from http://mirror.fcix.net/macports/packages/aria2
--->  Fetching distfiles for aria2
--->  Verifying checksums for aria2
--->  Extracting aria2
--->  Applying patches to aria2
--->  Configuring aria2
Error: Failed to configure aria2: can't read "python.version": no such variable
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_aria2/aria2/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port aria2 failed

Attachments (2)

main.log (148.4 KB) - added by ShadSterling (Shad Sterling) 8 months ago.
main.2.log (147.1 KB) - added by ShadSterling (Shad Sterling) 8 months ago.
Log from destroot rather than install

Download all attachments as: .zip

Change History (10)

Changed 8 months ago by ShadSterling (Shad Sterling)

Attachment: main.log added

comment:1 Changed 8 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: Schamschula removed
Owner: set to Schamschula
Status: newassigned
Summary: aria2 +docs configure failsaria2 @1.37.0_4+docs: can't read "python.version": no such variable

comment:2 Changed 8 months ago by Schamschula (Marius Schamschula)

I cannot reproduce this error.

I have the identical Portfile in my local tree. I just ran sudo port -v destroot aria2 +docs: No errors.

python.version is set at the beginning of the docs variant block.

Changed 8 months ago by ShadSterling (Shad Sterling)

Attachment: main.2.log added

Log from destroot rather than install

comment:3 Changed 8 months ago by ShadSterling (Shad Sterling)

destroot gives me the same error as install. If the log doesn't show why, where else would the reason show up? Is there a trace option that will show python.version being set?

comment:4 Changed 8 months ago by jmroot (Joshua Root)

Since python.version is not a pre-existing global variable when the variant runs, you have to declare it global or it will go out of scope at the end of the variant block. The pre-configure code is of course saved and run later as a separate procedure.

comment:5 Changed 8 months ago by jmroot (Joshua Root)

But of course the bigger problem is that building a port should not require the user to use port select.

comment:6 Changed 8 months ago by ryandesign (Ryan Carsten Schmidt)

Also the +docs variant only adds dependencies. It doesn't do anything to ensure that docs won't be built if the +docs variant isn't selected but those dependencies happen already to be installed.

comment:7 Changed 8 months ago by Schamschula (Marius Schamschula)

Indeed, having to run port select is not desirable.

This issue had bugged me for quite some time.

Hopefully, both issues are now fixed.

comment:8 Changed 8 months ago by Marius Schamschula <mschamschula@…>

Resolution: fixed
Status: assignedclosed

In 0c049338d4d1bc62ca7818f53db2f87cc361de6b/macports-ports (master):

aria2: don't opornistically build man page

Don't require port select sphinx
Closes: #69563

Note: See TracTickets for help on using tickets.