Bug#848351: netdata: FTBFS: cannot create .../netdata-data/...
On 2016-12-19 19:36, Santiago Vila wrote: -override_dh_fixperms: +override_dh_fixperms-arch: i've tried that but it failed for me, so i concluded that dh_fixperms cannot have suffixes, which is apparently wrong - thanks for correcting me. Regards, Daniel
Bug#848351: netdata: FTBFS: cannot create .../netdata-data/...
For the remaining "dpkg-buildpackage -A" problem, why don't you do something like this? --- a/debian/rules +++ b/debian/rules @@ -46,7 +46,7 @@ override_dh_install-indep: # Deactivate automatic update check echo 0 > $(TOP)-data/usr/share/netdata/web/version.txt -override_dh_fixperms: +override_dh_fixperms-arch: dh_fixperms # apps.plugin should only be runnable by the netdata user. It will be It's simple and elegant. Thanks.
Bug#848351: netdata: FTBFS: cannot create .../netdata-data/...
retitle 848351 FTBFS building architecture-independent only tag 848351 patch thanks Hi, unfortunately dh_fixperms doesn't know a -indep suffix, and running the chmod should happen after fixperms is run.. so.. for the time being i'm using this to fix it: ---snip--- diff --git a/debian/rules b/debian/rules index d6afdc1..fe59404 100755 @@ -46,4 +46,4 @@ override_dh_fixperms: # apps.plugin should only be runnable by the netdata user. It will be # given extra capabilities in the postinst script. # - chmod 0754 $(TOP)/usr/lib/$(DEB_HOST_MULTIARCH)/netdata/plugins.d/apps.plugin + if [ -d "$(TOP)" ]; then chmod 0754 $(TOP)/usr/lib/$(DEB_HOST_MULTIARCH)/netdata/plugins.d/apps.plugin; fi ---snap--- https://sources.progress-linux.org/distributions/dschinn/packages/netdata/commit/?id=6ae0e0700982c9fceb4d363528bde2a7868d1dac Regards, Daniel
Bug#848351: netdata: FTBFS: cannot create .../netdata-data/...
Source: netdata Version: 1.3.0+dfsg-1 Severity: serious Justification: fails to build from source Builds of netdata covering only its architecture-dependent binary package (as on the autobuilders, or with dpkg-buildpackage -B) have been failing: echo 0 > /«BUILDDIR»/netdata-1.3.0+dfsg/debian/netdata-data/usr/share/netdata/web/version.txt /bin/sh: 1: cannot create /«BUILDDIR»/netdata-1.3.0+dfsg/debian/netdata-data/usr/share/netdata/web/version.txt: Directory nonexistent debian/rules:34: recipe for target 'override_dh_install' failed Could you please take a look? I'd suggest splitting override_dh_install into -arch and -indep variants. Thanks! -- Aaron M. Ucko, KB1CJC (amu at alum.mit.edu, ucko at debian.org) http://www.mit.edu/~amu/ | http://stuff.mit.edu/cgi/finger/?a...@monk.mit.edu