#52878 closed defect (fixed)
mpv @0.20.0_1-network: Configuration fails due to invalid sed expression
Reported by: | Eitot | Owned by: | Ionic (Mihai Moldovan) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.4 |
Keywords: | Cc: | ||
Port: | mpv |
Description
Build configuration fails when variant network
is deselected. I presume that the error is caused by this line in the Portfile:
reinplace -W "${worksrcpath}/TOOLS" "|@@NETWORK@@|d" config-maintainer
Replacing the |
characters in the expression with something else, e.g. /
, seems to work.
Error log:
:debug:configure configure phase started at Mon Nov 14 15:32:39 CET 2016 :notice:configure ---> Configuring mpv :debug:configure Using compiler 'Xcode Clang' :debug:configure Executing proc-pre-org.macports.configure-configure-0 :info:configure ---> Patching config-maintainer: |@@NETWORK@@|d :debug:configure Executing reinplace: /usr/bin/sed |@@NETWORK@@|d < /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-0.20.0/TOOLS/config-maintainer >@ file18 2>@stderr :debug:configure illegal use of | or |& in command while executing "exec /usr/bin/sed |@@NETWORK@@|d < /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_..." ("eval" body line 1) invoked from within "eval exec $cmdline" :error:configure reinplace: illegal use of | or |& in command :error:configure org.macports.configure for port mpv returned: reinplace sed(1) failed :debug:configure Error code: NONE :debug:configure Backtrace: reinplace sed(1) failed while executing "proc-pre-org.macports.configure-configure-0 org.macports.configure" ("eval" body line 1) invoked from within "eval $pre $targetname"
Change History (3)
comment:1 Changed 8 years ago by raimue (Rainer Müller)
Cc: | Ionic removed |
---|---|
Owner: | changed from macports-tickets@… to Ionic |
Status: | new → assigned |
comment:2 Changed 8 years ago by Mihai Moldovan <ionic@…>
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
Indeed,
|
is special in Tcl's exec and there is no way to escape it (upstream TIP#424). You will need to use another separator, common choices would be/
or,
.