summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/apt/apt/0001-Do-not-init-tables-from-dpkg-configuration.patch
blob: a9a8eb63068d9f4b889d11c344ebfa09374c35bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From 5fb6355c7dd00c97fe90e805ace075b6e9b6952d Mon Sep 17 00:00:00 2001
From: Alexander Kanavin <alex.kanavin@gmail.com>
Date: Fri, 10 May 2019 16:47:38 +0200
Subject: [PATCH] Do not init tables from dpkg configuration

This would require sysroot relocation logic, and it's easier to just disable them.

Upstream-Status: Inappropriate [oe-core specific]
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>

---
 apt-pkg/init.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/apt-pkg/init.cc b/apt-pkg/init.cc
index b9d9b15..1725c59 100644
--- a/apt-pkg/init.cc
+++ b/apt-pkg/init.cc
@@ -281,8 +281,8 @@ bool pkgInitSystem(Configuration &Cnf,pkgSystem *&Sys)
 	 return _error->Error(_("Unable to determine a suitable packaging system type"));
    }
 
-   if (pkgInitArchTupleMap() == false)
-      return false;
+//   if (pkgInitArchTupleMap() == false)
+//      return false;
    
    return Sys->Initialize(Cnf);
 }