apt-0.5.4 and SunOS5.8 (solaris8)
Hello
I re-build apt and dpkg and many deb on SunOS5.8(Solaris8).
# not GNU/Linux. http://www.softagency.co.jp/mysql/pro/sundpkg.html
apt-0.3 works on SunOS5.8.
but apt-0.5.4 return false always.
error message is below.
Does anyone know solution?
% ./apt-get check
APT "";
APT::Architecture "solaris-sparc";
APT::Get "";
APT::Get::Download-Only "false";
Dir "/";
Dir::State "var/lib/apt/";
Dir::State::lists "lists/";
Dir::State::cdroms "cdroms.list";
Dir::Cache "var/cache/apt/";
Dir::Cache::archives "archives/";
Dir::Cache::srcpkgcache "srcpkgcache.bin";
Dir::Cache::pkgcache "pkgcache.bin";
Dir::Etc "etc/apt/";
Dir::Etc::sourcelist "sources.list";
Dir::Etc::vendorlist "vendors.list";
Dir::Etc::vendorparts "vendors.list.d";
Dir::Etc::main "apt.conf";
Dir::Etc::parts "apt.conf.d";
Dir::Etc::preferences "preferences";
Dir::Bin "";
Dir::Bin::methods "/usr/lib/apt/methods";
Debug "";
Debug::pkgInitConfig "true";
Debug::pkgProblemResolver "true";
Debug::pkgPackageManager "true";
E: Unable to determine a suitable system type
% gdb apt-get
(gdb) run
Starting program: /home/src/work/apt-0.5.4/build/bin/apt-get
Breakpoint 1, main (argc=1, argv=0xffbefc34) at apt-get.cc:2081
2081 CommandLine::Args Args[] = {
(gdb) n
2118 CommandLine::Dispatch Cmds[] = {{"update",&DoUpdate},
(gdb) n
2134 CommandLine CmdL(Args,_config);
(gdb) n
2137 pkgInitSystem(*_config,_system) == false)
(gdb) n
2139 if (_config->FindB("version") == true)
(gdb) n
2142 _error->DumpErrors();
(gdb) n
E: Unable to determine a suitable system type
2143 return 100;
(gdb) b init.cc:pkgInitSystem
Breakpoint 1 at 0x76b70: file init.cc, line 105.
(gdb) run
Breakpoint 1, pkgInitSystem (Cnf=@0xeeaf0, Sys=@0xdbf6c) at init.cc:105
105 string Label = Cnf.Find("Apt::System","");
(gdb) p Label
$1 = {static npos = 4294967295, static nilRep = {len = 0, res = 0, ref = 7,
selfish = false}, dat = 0xefc70 "/etc/apt/apt.conf.d/"}
(gdb) n
104 Sys = 0;
(gdb) n
105 string Label = Cnf.Find("Apt::System","");
(gdb) n
106 if (Label.empty() == false)
(gdb) n
115 for (unsigned I = 0; I != pkgSystem::GlobalListLen; I++)
(gdb) p I
$2 = 1
(gdb) n
125 if (Sys == 0)
(gdb) p pkgSystem::GlobalListLen
$3 = 0
thanks
--
takeshi@SoftAgency.co.jp
Reply to: