diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-01-17 19:38:32 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-01-17 19:38:32 +0100 |
commit | 1667f80fa8629bf55beda4e96d1a29282dc55ac9 (patch) | |
tree | 5fe2fe4e07207d2437758ab1380d73ae9ce10914 /packages | |
parent | 77ae2d506449c86b8618e9590eb5cdf6062b9db5 (diff) | |
download | vyos-build-1667f80fa8629bf55beda4e96d1a29282dc55ac9.tar.gz vyos-build-1667f80fa8629bf55beda4e96d1a29282dc55ac9.zip |
packages: T3164: Dropbear - apply VyOS patches without quilt
This prevents error:
dpkg-source: error: expected [ +-] at start of line 16 of diff 'dropbear/debian/patches/0001-Enable-PAM-support.patch'
dpkg-source: info: applying 0001-Enable-PAM-support.patch
dpkg-source: info: the patch has fuzz which is not allowed, or is malformed
Diffstat (limited to 'packages')
-rwxr-xr-x | packages/dropbear/build.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/dropbear/build.sh b/packages/dropbear/build.sh index 0934f4f7..6ac51d4f 100755 --- a/packages/dropbear/build.sh +++ b/packages/dropbear/build.sh @@ -8,16 +8,15 @@ if [ ! -d ${SRC} ]; then exit 1 fi +cd ${SRC} PATCH_DIR=${CWD}/patches if [ -d $PATCH_DIR ]; then for patch in $(ls ${PATCH_DIR}) do echo "I: Apply patch: ${patch} to main repository" - cp ${PATCH_DIR}/${patch} ${SRC}/debian/patches/ - echo ${patch} >> ${SRC}/debian/patches/series + patch -p1 < ${PATCH_DIR}/${patch} done fi -cd ${SRC} echo "I: Build Debian Package" dpkg-buildpackage -uc -us -tc -b |