defn2-c-man-don-t-rely-on-dpkg-architecture-to-set-a.patch 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. From 68b64a5c9d466352b0c161019bd7255e31db9a4c 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] defn2[c|man]: don't rely on dpkg-architecture to set arch
  5. In yocto we'll always be cross compiling, and we'll always
  6. be building on linux for linux (vs. *BSD, hurd, etc.)
  7. Without this the arch is not detected, but it doesn't error
  8. out, and hence you get useless binaries that don't know any
  9. arch specific methods, and the end result will be strangeness
  10. like the loopback device not being configured/enabled.
  11. Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
  12. Upstream-Status: Inappropriate [avoiding debian-isms]
  13. ---
  14. defn2c.pl | 6 +++---
  15. defn2man.pl | 6 +++---
  16. 2 files changed, 6 insertions(+), 6 deletions(-)
  17. diff --git a/defn2c.pl b/defn2c.pl
  18. index fa7a02e..bb4987d 100755
  19. --- a/defn2c.pl
  20. +++ b/defn2c.pl
  21. @@ -2,9 +2,9 @@
  22. use strict;
  23. -my $DEB_HOST_ARCH_OS = `dpkg-architecture -qDEB_HOST_ARCH_OS`;
  24. -
  25. -$DEB_HOST_ARCH_OS =~ s/\n//;
  26. +#my $DEB_HOST_ARCH_OS = `dpkg-architecture -qDEB_HOST_ARCH_OS`;
  27. +#$DEB_HOST_ARCH_OS =~ s/\n//;
  28. +my $DEB_HOST_ARCH_OS ="linux";
  29. # declarations
  30. my $address_family = "";
  31. diff --git a/defn2man.pl b/defn2man.pl
  32. index 6ddcfdd..c9c4dd0 100755
  33. --- a/defn2man.pl
  34. +++ b/defn2man.pl
  35. @@ -2,9 +2,9 @@
  36. use strict;
  37. -my $DEB_HOST_ARCH_OS = `dpkg-architecture -qDEB_HOST_ARCH_OS`;
  38. -
  39. -$DEB_HOST_ARCH_OS =~ s/\n//;
  40. +#my $DEB_HOST_ARCH_OS = `dpkg-architecture -qDEB_HOST_ARCH_OS`;
  41. +#$DEB_HOST_ARCH_OS =~ s/\n//;
  42. +my $DEB_HOST_ARCH_OS = "linux";
  43. # declarations
  44. my $line;