Comments (7)
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.
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.
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.
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.
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.
BTW the package is created under /usr/local/go/src/github.com/adelolmo
in your filesystem.
from hd-idle.
Cool, thanks.
from hd-idle.
Related Issues (20)
- Question. Don't start HDD after suspend and sleep HDD on standby HOT 1
- HDD in external bay not detected anymore HOT 3
- Question / Clarification: How does hd-idle parse options (disks vs. partitions, LUKS, precedence in case of contradictions) HOT 1
- Help understanding how to use the -p power_condition flag for SAS drives HOT 15
- WD Re HDD over USB does not spin down. HOT 23
- Can't spin down my internal WD Blue HDD HOT 5
- HD-Idle command does not seem to get set? HOT 4
- Drive standby instead of sleep. HOT 2
- Logfile won't be generate dataγ HOT 5
- Hook-function to be called after spinning down HOT 2
- Spin up not recognized HOT 2
- Disk spin down not working after scheduled S.M.A.R.T test
- hd-idle task gets out of sync with real disk spindown HOT 11
- logfile hard to read - how can we have spindown/spinup log entries? HOT 1
- Deprecated Key? HOT 2
- RFE/RFC: hd-idle extensibility: add option for a state file HOT 6
- help identifying actions in a log HOT 1
- Possible to spin-down based on Schedule? HOT 3
- Logfile won't be created HOT 4
- Nothing after hd-idle command HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hd-idle.