summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2020-09-16 20:17:57 +0200
committerDavid Seifert <soap@gentoo.org>2020-09-16 20:17:57 +0200
commit4c72b1dce0ed34038d77133cbcdbdc3979c30303 (patch)
treebcf203800e2dfb95cad12f1ae53aaab2c1757c21 /dev-embedded/libdisasm/files
parentdev-embedded/kobs-ng: Port to EAPI 7 (diff)
downloadgentoo-4c72b1dce0ed34038d77133cbcdbdc3979c30303.tar.gz
gentoo-4c72b1dce0ed34038d77133cbcdbdc3979c30303.tar.bz2
gentoo-4c72b1dce0ed34038d77133cbcdbdc3979c30303.zip
dev-embedded/libdisasm: Port to EAPI 7
Closes: https://bugs.gentoo.org/722606 Closes: https://bugs.gentoo.org/726870 Closes: https://bugs.gentoo.org/742191 Package-Manager: Portage-3.0.7, Repoman-3.0.1 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'dev-embedded/libdisasm/files')
-rw-r--r--dev-embedded/libdisasm/files/libdisasm-0.23-user-AS-OBJDUMP.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/dev-embedded/libdisasm/files/libdisasm-0.23-user-AS-OBJDUMP.patch b/dev-embedded/libdisasm/files/libdisasm-0.23-user-AS-OBJDUMP.patch
new file mode 100644
index 000000000000..93e1131b0c81
--- /dev/null
+++ b/dev-embedded/libdisasm/files/libdisasm-0.23-user-AS-OBJDUMP.patch
@@ -0,0 +1,15 @@
+--- a/test/asmdisasm.pl
++++ b/test/asmdisasm.pl
+@@ -22,10 +22,10 @@
+ # uninitialized stuff
+ my ($line, $output);
+
+-system "as --32 -o $obj_file $asm_file";
++system "$ENV{AS} --32 -o $obj_file $asm_file";
+ exit(1) if ($? != 0);
+
+-$output = (grep(/\.text/,`objdump -h $obj_file`))[0];
++$output = (grep(/\.text/,`$ENV{OBJDUMP} -h $obj_file`))[0];
+ $output =~ s/^\s+//g;
+ my ($idx,$name,$size,$vma,$lma,$offset,$align)=split(/\s+/,$output);
+ $size = hex($size);