diff options
author | Joe Slater <jslater@windriver.com> | 2015-09-01 14:34:29 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-04 16:23:50 +0100 |
commit | bf18f8ad4e71c1fefc0e8bffde4d2f7d36801f8f (patch) | |
tree | e3b505b8608fd42ba7e194993bd4f9fa96316f3f /meta/recipes-core/ifupdown/files/defn2-c-man-don-t-rely-on-dpkg-architecture-to-set-a.patch | |
parent | 338c3257f60e99c1fd101d5010daea4099eb1d0e (diff) | |
download | poky-bf18f8ad4e71c1fefc0e8bffde4d2f7d36801f8f.tar.gz |
ifupdown: import recipe
Implements ifup and ifdown.
Copied from https://github.com/WindRiver-OpenSourceLabs/meta-overc.git
as of commit aa89eebffe06e4aa04701eae9691cb3049cbaef9.
(From OE-Core rev: c1d1ccf994d9204f481e12ccb4e63a7c448bc9cd)
Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/ifupdown/files/defn2-c-man-don-t-rely-on-dpkg-architecture-to-set-a.patch')
-rw-r--r-- | meta/recipes-core/ifupdown/files/defn2-c-man-don-t-rely-on-dpkg-architecture-to-set-a.patch | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/meta/recipes-core/ifupdown/files/defn2-c-man-don-t-rely-on-dpkg-architecture-to-set-a.patch b/meta/recipes-core/ifupdown/files/defn2-c-man-don-t-rely-on-dpkg-architecture-to-set-a.patch new file mode 100644 index 0000000000..8c4d953a28 --- /dev/null +++ b/meta/recipes-core/ifupdown/files/defn2-c-man-don-t-rely-on-dpkg-architecture-to-set-a.patch | |||
@@ -0,0 +1,56 @@ | |||
1 | From 7af9db748974cb3a2c6ef8f9e03d7db1f9f8ee16 Mon Sep 17 00:00:00 2001 | ||
2 | From: Paul Gortmaker <paul.gortmaker@windriver.com> | ||
3 | Date: Wed, 6 Aug 2014 14:54:12 -0400 | ||
4 | Subject: [PATCH 1/2] defn2[c|man]: don't rely on dpkg-architecture to set arch | ||
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> | ||
15 | --- | ||
16 | defn2c.pl | 6 +++--- | ||
17 | defn2man.pl | 6 +++--- | ||
18 | 2 files changed, 6 insertions(+), 6 deletions(-) | ||
19 | |||
20 | diff --git a/defn2c.pl b/defn2c.pl | ||
21 | index c449de2f3d1c..38845e374c76 100755 | ||
22 | --- a/defn2c.pl | ||
23 | +++ b/defn2c.pl | ||
24 | @@ -2,9 +2,9 @@ | ||
25 | |||
26 | use strict; | ||
27 | |||
28 | -my $DEB_HOST_ARCH_OS = `dpkg-architecture -qDEB_HOST_ARCH_OS`; | ||
29 | - | ||
30 | -$DEB_HOST_ARCH_OS =~ s/\n//; | ||
31 | +#my $DEB_HOST_ARCH_OS = `dpkg-architecture -qDEB_HOST_ARCH_OS`; | ||
32 | +#$DEB_HOST_ARCH_OS =~ s/\n//; | ||
33 | +my $DEB_HOST_ARCH_OS ="linux"; | ||
34 | |||
35 | # declarations | ||
36 | my $address_family = ""; | ||
37 | diff --git a/defn2man.pl b/defn2man.pl | ||
38 | index 6ddcfdd4fe68..c9c4dd046597 100755 | ||
39 | --- a/defn2man.pl | ||
40 | +++ b/defn2man.pl | ||
41 | @@ -2,9 +2,9 @@ | ||
42 | |||
43 | use strict; | ||
44 | |||
45 | -my $DEB_HOST_ARCH_OS = `dpkg-architecture -qDEB_HOST_ARCH_OS`; | ||
46 | - | ||
47 | -$DEB_HOST_ARCH_OS =~ s/\n//; | ||
48 | +#my $DEB_HOST_ARCH_OS = `dpkg-architecture -qDEB_HOST_ARCH_OS`; | ||
49 | +#$DEB_HOST_ARCH_OS =~ s/\n//; | ||
50 | +my $DEB_HOST_ARCH_OS = "linux"; | ||
51 | |||
52 | # declarations | ||
53 | my $line; | ||
54 | -- | ||
55 | 1.9.1 | ||
56 | |||