Patrick Williams | 864cc43 | 2023-02-09 14:54:44 -0600 | [diff] [blame^] | 1 | From fc8e8d4cb19ff30e69aa1855332544f1017f974c Mon Sep 17 00:00:00 2001 |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 2 | From: Paul Gortmaker <paul.gortmaker@windriver.com> |
| 3 | Date: Wed, 6 Aug 2014 14:54:12 -0400 |
Patrick Williams | 864cc43 | 2023-02-09 14:54:44 -0600 | [diff] [blame^] | 4 | Subject: [PATCH] defn2[c|man]: don't rely on dpkg-architecture to set arch |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 5 | |
| 6 | In yocto we'll always be cross compiling, and we'll always |
| 7 | be building on linux for linux (vs. *BSD, hurd, etc.) |
| 8 | |
| 9 | Without this the arch is not detected, but it doesn't error |
| 10 | out, and hence you get useless binaries that don't know any |
| 11 | arch specific methods, and the end result will be strangeness |
| 12 | like the loopback device not being configured/enabled. |
| 13 | |
| 14 | Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 15 | Upstream-Status: Pending |
Patrick Williams | 864cc43 | 2023-02-09 14:54:44 -0600 | [diff] [blame^] | 16 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 17 | --- |
| 18 | defn2c.pl | 6 +++--- |
| 19 | defn2man.pl | 6 +++--- |
| 20 | 2 files changed, 6 insertions(+), 6 deletions(-) |
| 21 | |
| 22 | diff --git a/defn2c.pl b/defn2c.pl |
Patrick Williams | 864cc43 | 2023-02-09 14:54:44 -0600 | [diff] [blame^] | 23 | index fa7a02e..bb4987d 100755 |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 24 | --- a/defn2c.pl |
| 25 | +++ b/defn2c.pl |
| 26 | @@ -2,9 +2,9 @@ |
| 27 | |
| 28 | use strict; |
| 29 | |
| 30 | -my $DEB_HOST_ARCH_OS = `dpkg-architecture -qDEB_HOST_ARCH_OS`; |
| 31 | - |
| 32 | -$DEB_HOST_ARCH_OS =~ s/\n//; |
| 33 | +#my $DEB_HOST_ARCH_OS = `dpkg-architecture -qDEB_HOST_ARCH_OS`; |
| 34 | +#$DEB_HOST_ARCH_OS =~ s/\n//; |
| 35 | +my $DEB_HOST_ARCH_OS ="linux"; |
| 36 | |
| 37 | # declarations |
| 38 | my $address_family = ""; |
| 39 | diff --git a/defn2man.pl b/defn2man.pl |
Brad Bishop | 96ff198 | 2019-08-19 13:50:42 -0400 | [diff] [blame] | 40 | index 6ddcfdd..c9c4dd0 100755 |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 41 | --- a/defn2man.pl |
| 42 | +++ b/defn2man.pl |
| 43 | @@ -2,9 +2,9 @@ |
| 44 | |
| 45 | use strict; |
| 46 | |
| 47 | -my $DEB_HOST_ARCH_OS = `dpkg-architecture -qDEB_HOST_ARCH_OS`; |
| 48 | - |
| 49 | -$DEB_HOST_ARCH_OS =~ s/\n//; |
| 50 | +#my $DEB_HOST_ARCH_OS = `dpkg-architecture -qDEB_HOST_ARCH_OS`; |
| 51 | +#$DEB_HOST_ARCH_OS =~ s/\n//; |
| 52 | +my $DEB_HOST_ARCH_OS = "linux"; |
| 53 | |
| 54 | # declarations |
| 55 | my $line; |