Since trac is still down:

MacPorts can generate .deb packages, a feature I just tried on Linux. Turns out 
it set the architecture to i386, which AFAIK is not appropriate for a 64 bit 
platform like mine.

So fwiw, attached is a patch that appears to address that issue; it prevents 
os.arch from being set to i386 instead of x86_64. I'm not sure why that logic 
is in place in the 1st place: a remnant from the days there were only 32bit 
MacIntels?

R
--- src/macports1.0/orig.macports.tcl	2015-10-10 12:44:21.527987995 +0200
+++ src/macports1.0/macports.tcl	2015-10-10 12:44:34.062987669 +0200
@@ -670,12 +670,16 @@
 
     # set up platform info variables
     set os_arch $tcl_platform(machine)
+    set os_platform [string tolower $tcl_platform(os)]
     if {$os_arch eq "Power Macintosh"} {set os_arch "powerpc"}
-    if {$os_arch eq "i586" || $os_arch eq "i686" || $os_arch eq "x86_64"} {set os_arch "i386"}
+    if {${os_platform} eq "linux"} {
+        if {$os_arch eq {i586} || $os_arch eq {i686}} {set os_arch "i386"}
+    } else {
+        if {$os_arch eq "i586" || $os_arch eq "i686" || $os_arch eq "x86_64"} {set os_arch "i386"}
+    }
     set os_version $tcl_platform(osVersion)
     set os_major [lindex [split $os_version .] 0]
     set os_minor [lindex [split $os_version .] 1]
-    set os_platform [string tolower $tcl_platform(os)]
     # Remove trailing "Endian"
     set os_endian [string range $tcl_platform(byteOrder) 0 end-6]
     set macosx_version {}
_______________________________________________
macports-dev mailing list
[email protected]
https://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to