pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/56001: lang/rakudo: [macOS Big Sur] `post-install` fails due to illegal option `-i` in call to `sed`



>Number:         56001
>Category:       pkg
>Synopsis:       lang/rakudo: [macOS Big Sur] `post-install` fails due to illegal option `-i` in call to `sed`
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 21 01:40:00 +0000 2021
>Originator:     Dean Matzkov
>Release:        pkgsrc-2020Q4
>Organization:
>Environment:
Darwin MBP.local 20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64 x86_64
>Description:
lang/rakudo fails to insall on macOS Big Sur due to the `sed` command within `post-install`, as such:


---SNIP---
sed -i "s,/usr/bin/env raku,/opt/pkg/bin/raku," /Volumes/Devel/pkgscrc_stuff/work/2020Q4/lang/rakudo/work.x86_64/rakudo-2020.10/tools/install-dist.p6                                sed: illegal option -- i
usage:  sed [-aEn] script [file ...]                                                                                                                                                         sed [-aEn] [-e script] ... [-f script_file] ... [file ...]
*** Error code 1

Stop.
---/SNIP---


The offending line is this line in rakudo's pkgsrc Makefile:

sed -i "s,/usr/bin/env raku,${PREFIX}/bin/raku," ${WRKSRC}/tools/install-dist.p6


This error occurs because on macOS Big Sur, the system-supplied /usr/bin/sed does not support the `-i` flag.
>How-To-Repeat:
1. Run macOS Big Sur.
2. cd $pkgsrc/lang/rakudo && bmake install

>Fix:
Perhaps it should explicitly use gsed instead, as it supports the `-i` flag.


Home | Main Index | Thread Index | Old Index