[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#236146: apt: requires that deps are explicitely specified to get installed



On Thu, 4 Mar 2004, Matt Zimmerman wrote:

> What I needed was your apt.conf and preferences files, which reportbug
> includes unless you explicitly decline.  Any particular reason you
> didn't let it send these? 

Generally for this type of problem you need the sources.list, preferences,
apt.conf and status file. Generally the problem is packages that are
locally installed so the status file is required.

If you put something similar to this in, say, build/apt/apt-oly/apt.conf:

APT::Architecture "i386";
Dir::Etc::parts "./apt-oly/apt.conf.d/";

Dir
{
   Cache "/home/jgg/work/apt/build/bin/apt-oly/";
   State "./apt-oly/";
   State::Status "./apt-oly/status";
   State::Preferences "./apt-oly/preferences";
   Etc "./apt-oly/";
     
   Bin
   {
      dpkg "echo";
      apt-get "./apt-get";
      methods "./methods";
   }
};

And you can do:

cd apt/build/bin
export LD_LIBRARY_PATH=`pwd`
export APT_CONFIG=apt-oly/apt.conf
./apt-get update
./apt-get install foo

And it will exactly replicate what the user sees - well, barring package
file drift, different apt versions, etc.

Can do other arches too..

Supporting this is largely why the config file and make system look the
way the do..

Jason



Reply to: