Giter VIP home page Giter VIP logo

Comments (7)

hydra3333 avatar hydra3333 commented on September 26, 2024 3

Yes, with some software I occasionally take an interest to look at the code and build it myself.

Being unfamiliar with go, in this case it means trying to figure it out from scratch.

from hd-idle.

hydra3333 avatar hydra3333 commented on September 26, 2024

OK, so I did

sudo apt -y install debhelper

and re-did dpkg-buildpackage -a armhf -us -uc -b
and now the console log shows:

dpkg-buildpackage: info: source package hd-idle
dpkg-buildpackage: info: source version 1.10
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Andoni del Olmo <[email protected]>
dpkg-buildpackage: info: host architecture armhf
 dpkg-source --before-build .
dpkg-checkbuilddeps: error: Unmet build dependencies: golang-go:native (>= 1.3.3) dh-golang
dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
dpkg-buildpackage: warning: (Use -d flag to override.)

being a newbie with go, I am unsure where to go next (pun intentional).

from hd-idle.

hydra3333 avatar hydra3333 commented on September 26, 2024

OK,
tried sudo apt -y install dh-golang dh-make-golang which did install something,
Then tried dpkg-buildpackage -a armhf -us -uc -b again, and it seemed to build albeit with a funny message near the end : Therefore the step is skipped.

dpkg-buildpackage: info: source package hd-idle
dpkg-buildpackage: info: source version 1.10
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Andoni del Olmo <[email protected]>
dpkg-buildpackage: info: host architecture armhf
 dpkg-source --before-build .
 fakeroot debian/rules clean
mkdir -p /tmp/gocache
GOFLAGS=-mod=vendor GOCACHE=/tmp/gocache dh clean --buildsystem=golang --with=golang
   dh_auto_clean -O--buildsystem=golang
   debian/rules override_dh_clean
make[1]: Entering directory '/usr/local/go/src/github.com/adelolmo/hd-idle'
rm -f debian/debhelper.log
dh_clean
make[1]: Leaving directory '/usr/local/go/src/github.com/adelolmo/hd-idle'
 debian/rules build
mkdir -p /tmp/gocache
GOFLAGS=-mod=vendor GOCACHE=/tmp/gocache dh build --buildsystem=golang --with=golang
   dh_update_autotools_config -O--buildsystem=golang
   dh_auto_configure -O--buildsystem=golang
   debian/rules override_dh_auto_build
make[1]: Entering directory '/usr/local/go/src/github.com/adelolmo/hd-idle'
dh_auto_build
	cd obj-arm-linux-gnueabihf && go install -gcflags=all=\"-trimpath=/usr/local/go/src/github.com/adelolmo/hd-idle/obj-arm-linux-gnueabihf/src\" -asmflags=all=\"-trimpath=/usr/local/go/src/github.com/adelolmo/hd-idle/obj-arm-linux-gnueabihf/src\" -v -p 1 github.com/adelolmo/hd-idle github.com/adelolmo/hd-idle/diskstats github.com/adelolmo/hd-idle/io github.com/adelolmo/hd-idle/sgio
errors
internal/race
internal/cpu
internal/bytealg
runtime/internal/sys
runtime/internal/atomic
runtime
sync/atomic
sync
io
math
syscall
time
internal/poll
internal/syscall/unix
internal/testlog
os
math/bits
unicode/utf8
strconv
unicode
reflect
fmt
bytes
bufio
log
sort
strings
regexp/syntax
regexp
github.com/adelolmo/hd-idle/diskstats
path/filepath
github.com/adelolmo/hd-idle/io
encoding/hex
github.com/adelolmo/hd-idle/vendor/github.com/benmcclelland/sgio
github.com/adelolmo/hd-idle/sgio
github.com/adelolmo/hd-idle/vendor/github.com/jasonlvhit/gocron
github.com/adelolmo/hd-idle
##
# From git-lfs/git-lfs repo:
# dh_golang doesn't do anything here in deb 8, and it's needed in both
##
if [ "arm-linux-gnueabihf" != "arm-linux-gnueabihf" ]; then\
	cp -rf obj-arm-linux-gnueabihf/bin/*/* obj-arm-linux-gnueabihf/bin/; \
fi
make[1]: Leaving directory '/usr/local/go/src/github.com/adelolmo/hd-idle'
   dh_auto_test -O--buildsystem=golang
	cd obj-arm-linux-gnueabihf && go test -vet=off -v -p 1 github.com/adelolmo/hd-idle github.com/adelolmo/hd-idle/diskstats github.com/adelolmo/hd-idle/io github.com/adelolmo/hd-idle/sgio
?   	github.com/adelolmo/hd-idle	[no test files]
=== RUN   TestTakeSnapshot
--- PASS: TestTakeSnapshot (0.00s)
PASS
ok  	github.com/adelolmo/hd-idle/diskstats	0.007s
=== RUN   TestRealPath
=== RUN   TestRealPath/only_device_name
=== RUN   TestRealPath/full_device_path
=== RUN   TestRealPath/wrong_symlink_by_id
=== RUN   TestRealPath/symlink_by_id
=== RUN   TestRealPath/symlink_to_partition_by_id
--- PASS: TestRealPath (0.00s)
    --- PASS: TestRealPath/only_device_name (0.00s)
    --- PASS: TestRealPath/full_device_path (0.00s)
    --- PASS: TestRealPath/wrong_symlink_by_id (0.00s)
    --- PASS: TestRealPath/symlink_by_id (0.00s)
    --- PASS: TestRealPath/symlink_to_partition_by_id (0.00s)
PASS
ok  	github.com/adelolmo/hd-idle/io	0.012s
?   	github.com/adelolmo/hd-idle/sgio	[no test files]
 fakeroot debian/rules binary
mkdir -p /tmp/gocache
GOFLAGS=-mod=vendor GOCACHE=/tmp/gocache dh binary --buildsystem=golang --with=golang
   dh_testroot -O--buildsystem=golang
   dh_prep -O--buildsystem=golang
   debian/rules override_dh_auto_install
make[1]: Entering directory '/usr/local/go/src/github.com/adelolmo/hd-idle'
mkdir -p debian/hd-idle/usr/sbin
cp obj-arm-linux-gnueabihf/bin/hd-idle debian/hd-idle/usr/sbin
make[1]: Leaving directory '/usr/local/go/src/github.com/adelolmo/hd-idle'
   dh_install -O--buildsystem=golang
   dh_installdocs -O--buildsystem=golang
   dh_installchangelogs -O--buildsystem=golang
   dh_installman -O--buildsystem=golang
   dh_installinit -O--buildsystem=golang
   dh_perl -O--buildsystem=golang
   dh_link -O--buildsystem=golang
   dh_strip_nondeterminism -O--buildsystem=golang
   dh_compress -O--buildsystem=golang
   dh_fixperms -O--buildsystem=golang
   dh_missing -O--buildsystem=golang
   debian/rules override_dh_strip
make[1]: Entering directory '/usr/local/go/src/github.com/adelolmo/hd-idle'
##
# From git-lfs/git-lfs repo:
# strip disabled as golang upstream doesn't support it and it makes go crash.
# See https://launchpad.net/bugs/1200255.
##
make[1]: Leaving directory '/usr/local/go/src/github.com/adelolmo/hd-idle'
   dh_makeshlibs -O--buildsystem=golang
   dh_shlibdeps -O--buildsystem=golang
   dh_installdeb -O--buildsystem=golang
   debian/rules override_dh_golang
make[1]: Entering directory '/usr/local/go/src/github.com/adelolmo/hd-idle'
##
# From git-lfs/git-lfs repo:
# The dh_golang is used to add the Built-using field to the deb.  This is only for reference.
# As of https://anonscm.debian.org/cgit/collab-maint/dh-golang.git/commit/script/dh_golang?id=7c3fbec6ea92294477fa8910264fe9bd823f21c3
# dh_golang errors out because the go compiler used was not installed via a package.  Therefore the step is skipped
##
make[1]: Leaving directory '/usr/local/go/src/github.com/adelolmo/hd-idle'
   dh_gencontrol -O--buildsystem=golang
   dh_md5sums -O--buildsystem=golang
   dh_builddeb -O--buildsystem=golang
dpkg-deb: building package 'hd-idle' in '../hd-idle_1.10_armhf.deb'.
 dpkg-genbuildinfo --build=binary
 dpkg-genchanges --build=binary >../hd-idle_1.10_armhf.changes
dpkg-genchanges: info: binary-only upload (no source code included)
 dpkg-source --after-build .
dpkg-buildpackage: info: binary-only upload (no source included)

Cheers

from hd-idle.

V33m avatar V33m commented on September 26, 2024

Is there a reason for why you want to build it by yourself when adelolmo provides already pre-built packages? https://github.com/adelolmo/hd-idle/releases

from hd-idle.

adelolmo avatar adelolmo commented on September 26, 2024

dh_golang errors out because the go compiler used was not installed via a package. Therefore the step is skipped

This is just a comment in the build process.

It is meant to allow to build if you don't install go via package, which is exactly my setup. I prefer to run on the latest go version and don't wait for the package.

from hd-idle.

adelolmo avatar adelolmo commented on September 26, 2024

BTW the package is created under /usr/local/go/src/github.com/adelolmo in your filesystem.

from hd-idle.

hydra3333 avatar hydra3333 commented on September 26, 2024

Cool, thanks.

from hd-idle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.