Skip to content

sed command is broken, causing clp tasks to fail #84

@junhaoliao

Description

@junhaoliao

Bug

as the title says. the issue has been tracked by y-scope/clp#1089 .

@kirkrodrigues has provided a temporary fix by changing

sed -E "{{.SED_EXP}}" "${src}" > "${dst}"

to

sed -E "{{.SED_EXP | replace "\\" "\\\\" | replace "\"" "\\\"" }}" "${src}" > "${dst}"

yscope-dev-utils version

b965f19

Environment

junhao@ASUS-X870E:~/workspace/2-clp$ sed --version
sed (GNU sed) 4.8
Packaged by Debian
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Jay Fenlason, Tom Lord, Ken Pizzini,
Paolo Bonzini, Jim Meyering, and Assaf Gordon.

This sed program was built with SELinux support.
SELinux is disabled on this system.

GNU sed home page: <https://www.gnu.org/software/sed/>.
General help using GNU software: <https://www.gnu.org/gethelp/>.
E-mail bug reports to: <[email protected]>.
junhao@ASUS-X870E:~/workspace/2-clp$ cat /etc/os-release 
PRETTY_NAME="Ubuntu 22.04.5 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.5 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

Reproduction steps

git clone --recurse-submodules https://github.com/y-scope/clp.git
cd clp
task clp-json-pkg-tar

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions