summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util/catalyst/files/catalyst-2.0.18-fbsd-fix-linux32.patch')
-rw-r--r--dev-util/catalyst/files/catalyst-2.0.18-fbsd-fix-linux32.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/dev-util/catalyst/files/catalyst-2.0.18-fbsd-fix-linux32.patch b/dev-util/catalyst/files/catalyst-2.0.18-fbsd-fix-linux32.patch
new file mode 100644
index 0000000..8a394f2
--- /dev/null
+++ b/dev-util/catalyst/files/catalyst-2.0.18-fbsd-fix-linux32.patch
@@ -0,0 +1,22 @@
+https://bugs.gentoo.org/show_bug.cgi?id=363577
+
+diff --git a/catalyst-2.0.18/arch/x86.py b/catalyst-2.0.18/arch/x86.py
+index 0391b79..2b67dba 100644
+--- a/catalyst-2.0.18/arch/x86.py
++++ b/catalyst-2.0.18/arch/x86.py
+@@ -7,9 +7,12 @@ class generic_x86(builder.generic):
+ def __init__(self,myspec):
+ builder.generic.__init__(self,myspec)
+ if self.settings["buildarch"]=="amd64":
+- if not os.path.exists("/bin/linux32") and not os.path.exists("/usr/bin/linux32"):
+- raise CatalystError,"required executable linux32 not found (\"emerge setarch\" to fix.)"
+- self.settings["CHROOT"]="linux32 chroot"
++ if os.uname()[0] == "Linux":
++ if not os.path.exists("/bin/linux32") and not os.path.exists("/usr/bin/linux32"):
++ raise CatalystError,"required executable linux32 not found (\"emerge setarch\" to fix.)"
++ self.settings["CHROOT"]="linux32 chroot"
++ else:
++ self.settings["CHROOT"]="chroot"
+ self.settings["crosscompile"] = False;
+ else:
+ self.settings["CHROOT"]="chroot"