Bug#1120130: dht init sets DEB_CABAL_PACKAGE which causes new packages to ftbfs

Nicholas D Steeves sten at debian.org
Wed Nov 5 19:21:05 GMT 2025


Package: pkg-haskell-tools
Version: 0.12.5
Severity: normal
X-Debbugs-Cc: sten at debian.org

Hi,

I hope I'm reporting this to the right package.  I'm reporting it here
because "dht init" is the entry point, and I ran out of time tracing
where to actually fix this.

The steps to reproduce are: Use 'dht init' to create the new
haskell-encoding package from the package-plan.txt, then
dpkg-buildpackage.

It fails because "cabal configure" (invoked by haskell-devscripts, I
think), changes the project settings, then $something tries to save
them as a new global $user default to $HOME/.config/cabal/config,
which then fails because /homedoesnotexistatbuildtime doesn't exist
and would require root to create.

The two resolutions I see are:

  1. Stop setting DEB_SETUP_BIN_NAME in new debian/rules files
  2. Maybe set it to something else?

Thanks to Clint on #debian-haskell for help figuring out the cause.

Regards,
Nicholas



More information about the Pkg-haskell-maintainers mailing list