Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6786083
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:12:12+00:00 2026-05-26T17:12:12+00:00

I’m maintaining and publishing an open source package which needs to be built for

  • 0

I’m maintaining and publishing an open source package which needs to be built for Windows and Linux. I’ve chosen to cross-compile with mingw, and used Debian packages for building and maintaining the binaries for my Windows packages. That is, I’ve defined Debian architectures mingw-i686 and mingw-amd64, massaged slight modifications into dpkg-cross and some Debian install scripts to account for the PE naming scheme (*.dll, *.dll.a instead of .so. and *.so), and started building.

That went very well, and until recently I could easily build a Windows setup using Inno Setup from an installation schedule, i.e. a list of .deb’s that need to be installed for my package. This list was generated by a chroot-ed apt-get (with --print-uris) and looked like:

/projects/www/debian/dev/pool/dists/experimental/main/base/libfreetype6_2.4.4-1+mingw.1_mingw-amd64.deb
/projects/www/debian/dev/pool/dists/experimental/main/base/libwxmsw2.8_2.8.10.1-3.1_mingw-amd64.deb
[...]

Basically, I was using apt to resolve the dependencies and Inno Setup to do the installation.

Of course, there is no real debian system for mingw-i686, so I couldn’t run apt natively. I had hacked a solution by putting the necessary files into a directory and using apt-get -o RootDir= to change apt’s root into this directory. This worked since apt-get never really chrooted into this directory and only looked for its databases there.

Lately, a new apt version was pushed into Debian testing, and this apt version does actually chroot into the RootDir. So, my RootDir solution got impracticable, it would be quite a lot of work to set up a proper chroot.

Does anyone have an idea how I could get the package list any other way? That is, get a list of .deb’s and all their dependencies for a specific package on a non-native architecture?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T17:12:13+00:00Added an answer on May 26, 2026 at 5:12 pm

    I’ve found a solution by fixing my apt.

    I’ve been running into two different issues: Firstly, apt with foreign versions seems to be currently broken in testing because multi-arch dpkg is not yet here. Apt tries to call dpkg --print-foreign-architectures, which fails because it is a multi-arch dpkg call and dpkg isn’t that far yet. This must be fixed by explicitely setting APT::Architectures.

    Secondly, I could re-root apt’s state only by calling apt as:

    APT_CONFIG=apt.conf apt-get
    

    and using this config file:

    APT::Architecture "@ARCH@";
    APT::Architectures { "@ARCH@"; }
    Dir::State      "@TREE@/var/lib/apt";
    Dir::Cache      "@TREE@/var/cache/apt";
    Dir::Etc        "@TREE@/etc/apt";
    Dir::Parts      "@TREE@/etc/apt/apt.conf.d";
    Dir::State::status "@TREE@/var/lib/dpkg/status";
    APT::Get::Assume-Yes    "true";
    

    with @TREE@ replaced by my prepared, clean apt-tree and @ARCH@ replaced by my architecture (mingw-i686). It has all been in the fine documentation, even though a wee bit hidden.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a text area in my form which accepts all possible characters from
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
I would like to count the length of a string with PHP. The string

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.