From 1a7f239556da8cdf4a387e1cd1c558933d194c0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Fri, 25 Jun 2021 07:54:39 +0700 Subject: [PATCH] drawterm: fix '^diff ' line in patches patch(1) also applies -p1 to this line --- srcpkgs/drawterm/patches/posix_generic.patch | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/srcpkgs/drawterm/patches/posix_generic.patch b/srcpkgs/drawterm/patches/posix_generic.patch index afe4d1c8f27..a28ea112f25 100644 --- a/srcpkgs/drawterm/patches/posix_generic.patch +++ b/srcpkgs/drawterm/patches/posix_generic.patch @@ -15,7 +15,7 @@ Also make sure our CFLAGS/LDFLAGS are respected. create mode 100644 posix-generic/getcallerpc.c create mode 100644 posix-generic/tas.c -diff --git Make.unix Make.unix +diff --git a/Make.unix b/Make.unix index f61c516..3a536b3 100644 --- a/Make.unix +++ b/Make.unix @@ -45,7 +45,7 @@ index f61c516..3a536b3 100644 - arch=`uname -m|sed 's/i.86/386/;s/Power Macintosh/power/; s/x86_64/amd64/; s/armv[567].*/arm/; s/aarch64/arm64/'`; \ - (cd posix-$$arch && make) + cd posix-generic && make -diff --git posix-generic/Makefile posix-generic/Makefile +diff --git a/posix-generic/Makefile b/posix-generic/Makefile new file mode 100644 index 0000000..970204e --- /dev/null @@ -66,7 +66,7 @@ index 0000000..970204e + +%.$O: %.c + $(CC) $(CFLAGS) $*.c -diff --git posix-generic/getcallerpc.c posix-generic/getcallerpc.c +diff --git a/posix-generic/getcallerpc.c b/posix-generic/getcallerpc.c new file mode 100644 index 0000000..3614c59 --- /dev/null @@ -80,7 +80,7 @@ index 0000000..3614c59 +{ + return ((uintptr*)a)[-1]; +} -diff --git posix-generic/tas.c posix-generic/tas.c +diff --git a/posix-generic/tas.c b/posix-generic/tas.c new file mode 100644 index 0000000..289f747 --- /dev/null