Props no longer need escaping which means fix them

This commit is contained in:
Max Howell 2023-12-26 07:47:39 +00:00
parent 3fa63bdd37
commit cc24a480c1
5 changed files with 15 additions and 20 deletions

View file

@ -35,10 +35,10 @@ build:
prop: | prop: |
/^REMOVE_MATCHES_FROM_LISTS\(files hfiles/ { /^REMOVE_MATCHES_FROM_LISTS\(files hfiles/ {
i\\ i\\
string(REPLACE "+" "\\\\\\\\+" ESCAPED_FOLLY_DIR "\\\${FOLLY_DIR}") string(REPLACE "+" "\\\\\\\\+" ESCAPED_FOLLY_DIR "\${FOLLY_DIR}")
} }
s/\^\\\$\{FOLLY_DIR\}/^\\\$\{ESCAPED_FOLLY_DIR\}/g s/\^\$\{FOLLY_DIR\}/^\$\{ESCAPED_FOLLY_DIR\}/g
- cmake $ARGS -DBUILD_SHARED_LIBS=ON -S . -B shared - cmake $ARGS -DBUILD_SHARED_LIBS=ON -S . -B shared
- cmake --build shared - cmake --build shared

View file

@ -21,8 +21,7 @@ build:
working-directory: ${{prefix}}/bin working-directory: ${{prefix}}/bin
prop: | prop: |
#!/bin/bash #!/bin/bash
$(dirname $0)/../terminal-notifier.app/Contents/MacOS/terminal-notifier $*
\$(dirname \$0)/../terminal-notifier.app/Contents/MacOS/terminal-notifier \$*
provides: provides:
- bin/terminal-notifier - bin/terminal-notifier

View file

@ -33,7 +33,7 @@ build:
MANM_ROFF=mandoc_roff MANM_ROFF=mandoc_roff
MANM_EQN=eqn MANM_EQN=eqn
MANM_TBL=tbl MANM_TBL=tbl
OSNAME='$(uname -a)' OSNAME=$(uname -a)
MANPATH_DEFAULT={{prefix}}/share/man MANPATH_DEFAULT={{prefix}}/share/man
HAVE_MANPATH=0 HAVE_MANPATH=0
STATIC= STATIC=

View file

@ -42,27 +42,27 @@ build:
- run: sed -i.bak 's|CFLAGS_SHLIB = |CFLAGS_SHLIB = -fPIC|g' config.mk - run: sed -i.bak 's|CFLAGS_SHLIB = |CFLAGS_SHLIB = -fPIC|g' config.mk
if: linux if: linux
- rm config.mk.bak - rm config.mk.bak
- make --jobs {{hw.concurrency}} - make --jobs {{hw.concurrency}}
- make --jobs {{hw.concurrency}} package pkgdir=$SRCROOT/stage - make --jobs {{hw.concurrency}} package pkgdir=$SRCROOT/stage
- run: | - run: |
mkdir -p {{prefix}} mkdir -p {{prefix}}
mv bin include lib misc {{prefix}}/ mv bin include lib misc {{prefix}}/
mkdir -p {{prefix}}/lib/pkgconfig mkdir -p {{prefix}}/lib/pkgconfig
cp $PROP {{prefix}}/lib/pkgconfig/netpbm.pc cp $PROP {{prefix}}/lib/pkgconfig/netpbm.pc
working-directory: stage working-directory: stage
prop: | prop: |
prefix=\${pcfiledir}/../.. prefix=${pcfiledir}/../..
exec_prefix=\${prefix} exec_prefix=${prefix}
libdir=\${exec_prefix}/lib libdir=${exec_prefix}/lib
includedir=\${prefix}/include/netpbm includedir=${prefix}/include/netpbm
Name: Netpbm Name: Netpbm
Description: Graphics utilities Description: Graphics utilities
Version: {{version}} Version: {{version}}
Libs: -L\${libdir} -lmylibrary Libs: -L${libdir} -lmylibrary
Cflags: -I\${includedir} Cflags: -I${includedir}
env: env:
CFLAGS: "-Wno-implicit-function-declaration $CFLAGS" CFLAGS: "-Wno-implicit-function-declaration $CFLAGS"
provides: provides:

View file

@ -28,10 +28,11 @@ build:
- run: | - run: |
sed -i.bak -f $PROP config_{darwin,linux}.go sed -i.bak -f $PROP config_{darwin,linux}.go
rm config_{darwin,linux}.go.bak rm config_{darwin,linux}.go.bak
working-directory: vendor/github.com/containers/common/pkg/config working-directory:
vendor/github.com/containers/common/pkg/config
prop: |- prop: |-
s_\(^var defaultHelperBinariesDir.*\)_\ s_\(^var defaultHelperBinariesDir.*\)_\
\1\n "\$BINDIR/../../../$GVISOR_MAJOR/bin",_ \1\n "$BINDIR/../../../github.com/containers/gvisor-tap-vsock/v{{deps.github.com/containers/gvisor-tap-vsock.version.major}}/bin",_
- mkdir -p "{{ prefix }}"/bin - mkdir -p "{{ prefix }}"/bin
- make --jobs {{ hw.concurrency }} podman-remote - make --jobs {{ hw.concurrency }} podman-remote
@ -47,11 +48,6 @@ build:
ln -s podman "{{ prefix }}"/bin/podman-remote ln -s podman "{{ prefix }}"/bin/podman-remote
if: darwin if: darwin
env: env:
# path for gvproxy to add to platform config
GVISOR_MAJOR: |-
$(cd "{{deps.github.com/containers/gvisor-tap-vsock.prefix}}/../\
/v{{deps.github.com/containers/gvisor-tap-vsock.version.major}}" \
&& pwd | sed -e "s_$PKGX_DIR/__")
CGO_ENABLED: 1 CGO_ENABLED: 1
linux: linux:
EXTRA_LDFLAGS: -buildmode=pie EXTRA_LDFLAGS: -buildmode=pie