#68946 closed defect (fixed)

aria2 @1.37.0 does not compile (apparently, just a sed error when building manuals)

Reported by: vigna (Sebastiano Vigna) Owned by: Schamschula (Marius Schamschula)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc:
Port: aria2

Description

Trying to install aria2 on a MacBook M1 Sonoma 14.2, XCode 15.1:

at 19:37:53 ➜ port install aria2
--->  Computing dependencies for aria2
--->  Fetching archive for aria2
--->  Attempting to fetch aria2-1.37.0_0.darwin_23.arm64.tbz2 from https://packages.macports.org/aria2
--->  Attempting to fetch aria2-1.37.0_0.darwin_23.arm64.tbz2 from https://fra.de.packages.macports.org/aria2
--->  Attempting to fetch aria2-1.37.0_0.darwin_23.arm64.tbz2 from https://nue.de.packages.macports.org/aria2
--->  Fetching distfiles for aria2
--->  Verifying checksums for aria2
--->  Extracting aria2
--->  Configuring aria2
--->  Building aria2
Error: Failed to build aria2: command execution failed
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

The problem appears to be the following:

:info:build sed -i -e '1i .\\" -*- mode: troff; coding: utf-8 -*-' _build/man/aria2c.1
:info:build sed: 1: "1i .\\" -*- mode: troff ...": command i expects \ followed by text
:info:build make[5]: *** [man] Error 1
:info:build make[5]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_aria2/aria2/work/aria2-1.37.0/doc/manual-src/ru'
:info:build make[4]: *** [_build/man/aria2c.1] Error 2
:info:build make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_aria2/aria2/work/aria2-1.37.0/doc/manual-src/ru'
:info:build make[3]: *** [all-recursive] Error 1
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_aria2/aria2/work/aria2-1.37.0/doc/manual-src'
:info:build make[2]: *** [all-recursive] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_aria2/aria2/work/aria2-1.37.0/doc'
:info:build make[1]: *** [all-recursive] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_aria2/aria2/work/aria2-1.37.0'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_aria2/aria2/work/aria2-1.37.0'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_aria2/aria2/work/aria2-1.37.0" && /usr/bin/make -j10 -w all
:info:build Exit code: 2

Attachments (1)

main.log (145.1 KB) - added by vigna (Sebastiano Vigna) 11 months ago.
log

Download all attachments as: .zip

Change History (6)

Changed 11 months ago by vigna (Sebastiano Vigna)

Attachment: main.log added

log

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

Owner: set to Schamschula
Port: aria2 added
Status: newassigned
Summary: aria2 does not compile (apparently, just a sed error when building manuals)aria2 @1.37.0 does not compile (apparently, just a sed error when building manuals)
Version: 2.8.1

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

Interesting: I get a clean build with Xcode 15.1.

However, I see

make[4]: Entering directory `/opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_net_aria2/aria2/work/aria2-1.37.0/doc/manual-src/en'
WARNING: Building only stub man pages. Please install sphinx-build: pip install sphinx
if [ ! -d "_build/man" ]; then mkdir -p "_build/man"; fi;
if [ ! -e "_build/man/aria2c.1" ]; then touch "_build/man/aria2c.1"; fi;
make[4]: Leaving directory `/opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_net_aria2/aria2/work/aria2-1.37.0/doc/manual-src/en'

So it seems aria2 needs a doc variant that pulls in sphinx.

comment:3 Changed 11 months ago by Schamschula (Marius Schamschula)

Sure, enough. After I did

sudo port select --set sphinx py311-sphinx

I get the same error.

comment:4 Changed 11 months ago by Schamschula (Marius Schamschula)

The error was in the pt page. I've disabled both pt and ru pages.

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

Resolution: fixed
Status: assignedclosed

In 0bc24b754c91ae1218f0169956bc248c9f2a3195/macports-ports (master):

aria2: correctly build man page (requires py-sphinx)

Closes: #68946

Note: See TracTickets for help on using tickets.