Skip to content

Can't build package on Debian 13 #135

@EmpressFiona

Description

@EmpressFiona

This is the output of dpkg-buildpackage -us -uc -b when I try:

dpkg-buildpackage: info: source package hd-idle
dpkg-buildpackage: info: source version 1.21
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Andoni del Olmo <andoni.delolmo@gmail.com>
dpkg-buildpackage: info: host architecture amd64
 dpkg-source --before-build .
 debian/rules clean
dh clean
dh: warning: Compatibility levels before 10 are deprecated (level 9 in use)
   dh_auto_clean
dh_auto_clean: warning: Compatibility levels before 10 are deprecated (level 9 in use)
        make -j1 distclean
   dh_clean
        rm -f debian/debhelper-build-stamp
        rm -rf debian/.debhelper/
dh_clean: warning: Compatibility levels before 10 are deprecated (level 9 in use)
        rm -f -- debian/hd-idle.substvars debian/files
        rm -fr -- debian/hd-idle/ debian/tmp/
        find .  \( \( \
                \( -path .\*/.git -o -path .\*/.svn -o -path .\*/.bzr -o -path .\*/.hg -o -path .\*/CVS -o -path .\*/.pc -o -path .\*/_darcs \) -prune -o -type f -a \
                \( -name '#*#' -o -name '.*~' -o -name '*~' -o -name DEADJOE \
                 -o -name '*.orig' -o -name '*.rej' -o -name '*.bak' \
                 -o -name '.*.orig' -o -name .*.rej -o -name '.SUMS' \
                 -o -name TAGS -o \( -path '*/.deps/*' -a -name '*.P' \) \
                \) -exec rm -f {} + \) -o \
                \( -type d -a \( -name autom4te.cache -o -name __pycache__ \) -prune -exec rm -rf {} + \) \)
 debian/rules binary
dh binary
dh: warning: Compatibility levels before 10 are deprecated (level 9 in use)
   dh_update_autotools_config
   dh_auto_configure
dh_auto_configure: warning: Compatibility levels before 10 are deprecated (level 9 in use)
   dh_auto_test
dh_auto_test: warning: Compatibility levels before 10 are deprecated (level 9 in use)
        make -j1 test
# _/home/fiona/hd-idle
hdidle.go:21:2: cannot find package "github.com/adelolmo/hd-idle/diskstats" in any of:
        /usr/lib/go-1.24/src/github.com/adelolmo/hd-idle/diskstats (from $GOROOT)
        /home/fiona/hd-idle/obj-x86_64-linux-gnu/src/github.com/adelolmo/hd-idle/diskstats (from $GOPATH)
# _/home/fiona/hd-idle
hdidle.go:22:2: cannot find package "github.com/adelolmo/hd-idle/io" in any of:
        /usr/lib/go-1.24/src/github.com/adelolmo/hd-idle/io (from $GOROOT)
        /home/fiona/hd-idle/obj-x86_64-linux-gnu/src/github.com/adelolmo/hd-idle/io (from $GOPATH)
# _/home/fiona/hd-idle
hdidle.go:23:2: cannot find package "github.com/adelolmo/hd-idle/sgio" in any of:
        /usr/lib/go-1.24/src/github.com/adelolmo/hd-idle/sgio (from $GOROOT)
        /home/fiona/hd-idle/obj-x86_64-linux-gnu/src/github.com/adelolmo/hd-idle/sgio (from $GOPATH)
FAIL    _/home/fiona/hd-idle [setup failed]
# _/home/fiona/hd-idle/sgio
sgio/ata.go:21:2: cannot find package "github.com/benmcclelland/sgio" in any of:
        /usr/lib/go-1.24/src/github.com/benmcclelland/sgio (from $GOROOT)
        /home/fiona/hd-idle/obj-x86_64-linux-gnu/src/github.com/benmcclelland/sgio (from $GOPATH)
FAIL    _/home/fiona/hd-idle/sgio [setup failed]
ok      _/home/fiona/hd-idle/diskstats  1.011s  coverage: 84.0% of statements
ok      _/home/fiona/hd-idle/io 1.010s  coverage: 100.0% of statements
FAIL
make[1]: *** [Makefile:59: test] Error 1
dh_auto_test: error: make -j1 test returned exit code 2
make: *** [debian/rules:6: binary] Error 255
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

This is with the both packaged Go that Debian pulls based on dependencies listed (like dh-golang, golang-go, debhelper, golang, etc), and also with Go installed manually as on the website (indeed, just doing the latter doesn't seem to satisfy dpkg-buildpackage, it complains about the missing golang dependency either way). So it doesn't work even when instructions are followed to the letter, and it definitely doesn't work when you just use the distro go package (which, although it's not your preferred method, should fulfill the requirements).

I can't even begin to understand what's going wrong; one would presume the issue is with $GOROOT or $GOPATH, but it seems to just not understand the dependencies are in there at all. Maybe it's an issue with the new Debian version, but either way, some advice would be appreciated.

EDIT: Apparently Debian currently packages hd-idle from this repo (and from the latest release version, too!), but there are some upstream changes I'd quite like, so I'd still appreciate some help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions