rappel: fix path to tmpdir
Should fix https://github.com/termux/termux-packages/issues/6057 Blacklist i686 and x86_64 because we don't have nasm.
This commit is contained in:
parent
3b6a7d1234
commit
35ea9c8ac4
@ -3,11 +3,15 @@ TERMUX_PKG_DESCRIPTION="Rappel is a pretty janky assembly REPL."
|
||||
TERMUX_PKG_LICENSE="custom"
|
||||
TERMUX_PKG_LICENSE_FILE="LICENSE"
|
||||
TERMUX_PKG_VERSION=2020.09.18
|
||||
TERMUX_PKG_REVISION=1
|
||||
TERMUX_PKG_SRCURL=https://github.com/yrp604/rappel/archive/dd45bfa000efb89357d5c80a3a77550b96dee499.tar.gz
|
||||
TERMUX_PKG_SHA256=c310855880051a9e0c802b74ba0c8eafddeb5bd2a930728356101e385d04d015
|
||||
TERMUX_PKG_DEPENDS="binutils, libedit"
|
||||
TERMUX_PKG_BUILD_IN_SRC=true
|
||||
|
||||
# Need nasm.
|
||||
TERMUX_PKG_BLACKLISTED_ARCHES="i686, x86_64"
|
||||
|
||||
termux_step_make() {
|
||||
local _ARCH
|
||||
|
||||
|
36
packages/rappel/tmpdir.patch
Normal file
36
packages/rappel/tmpdir.patch
Normal file
@ -0,0 +1,36 @@
|
||||
diff -uNr rappel-dd45bfa000efb89357d5c80a3a77550b96dee499/arch/amd64/assemble_intel.c rappel-dd45bfa000efb89357d5c80a3a77550b96dee499.mod/arch/amd64/assemble_intel.c
|
||||
--- rappel-dd45bfa000efb89357d5c80a3a77550b96dee499/arch/amd64/assemble_intel.c 2020-09-18 06:37:45.000000000 +0000
|
||||
+++ rappel-dd45bfa000efb89357d5c80a3a77550b96dee499.mod/arch/amd64/assemble_intel.c 2020-11-21 21:07:16.115225932 +0000
|
||||
@@ -46,7 +46,7 @@
|
||||
const size_t asm_sz)
|
||||
{
|
||||
char path[PATH_MAX];
|
||||
- snprintf(path, sizeof(path), "/tmp/rappel-input.XXXXXX");
|
||||
+ snprintf(path, sizeof(path), "@TERMUX_PREFIX@/tmp/rappel-input.XXXXXX");
|
||||
|
||||
const int t = mkstemp(path);
|
||||
|
||||
diff -uNr rappel-dd45bfa000efb89357d5c80a3a77550b96dee499/arch/armv7/assemble_armv7.c rappel-dd45bfa000efb89357d5c80a3a77550b96dee499.mod/arch/armv7/assemble_armv7.c
|
||||
--- rappel-dd45bfa000efb89357d5c80a3a77550b96dee499/arch/armv7/assemble_armv7.c 2020-09-18 06:37:45.000000000 +0000
|
||||
+++ rappel-dd45bfa000efb89357d5c80a3a77550b96dee499.mod/arch/armv7/assemble_armv7.c 2020-11-21 21:06:17.924054920 +0000
|
||||
@@ -62,7 +62,7 @@
|
||||
size_t sz = 0;
|
||||
|
||||
char path[PATH_MAX];
|
||||
- snprintf(path, sizeof(path), "/tmp/rappel-output.XXXXXX");
|
||||
+ snprintf(path, sizeof(path), "@TERMUX_PREFIX@/tmp/rappel-output.XXXXXX");
|
||||
|
||||
const int t = mkstemp(path);
|
||||
|
||||
diff -uNr rappel-dd45bfa000efb89357d5c80a3a77550b96dee499/arch/armv8/assemble_armv8.c rappel-dd45bfa000efb89357d5c80a3a77550b96dee499.mod/arch/armv8/assemble_armv8.c
|
||||
--- rappel-dd45bfa000efb89357d5c80a3a77550b96dee499/arch/armv8/assemble_armv8.c 2020-09-18 06:37:45.000000000 +0000
|
||||
+++ rappel-dd45bfa000efb89357d5c80a3a77550b96dee499.mod/arch/armv8/assemble_armv8.c 2020-11-21 21:06:48.237748667 +0000
|
||||
@@ -62,7 +62,7 @@
|
||||
size_t sz = 0;
|
||||
|
||||
char path[PATH_MAX];
|
||||
- snprintf(path, sizeof(path), "/tmp/rappel-output.XXXXXX");
|
||||
+ snprintf(path, sizeof(path), "@TERMUX_PREFIX@/tmp/rappel-output.XXXXXX");
|
||||
|
||||
const int t = mkstemp(path);
|
||||
|
Loading…
Reference in New Issue
Block a user