Project

General

Profile

Bug #4740

Autobuild from git fails

Added by Al Bundy about 7 years ago. Updated about 7 years ago.

Status:
Fixed
Priority:
Normal
Category:
General
Target version:
-
Start date:
2017-11-24
Due date:
% Done:

100%

Estimated time:
Found in version:
git
Affected Versions:

Description

Is thisanly a local issue on my raspberry pi or is it currently not working?

CC              tvheadend
make[2]: Verzeichnis „/media/usbhdd/tvh/tvheadend“ wird verlassen
make[1]: Verzeichnis „/media/usbhdd/tvh/tvheadend“ wird verlassen
   dh_auto_test -O--with-systemd
   create-stamp debian/debhelper-build-stamp
 fakeroot debian/rules binary
dh binary --with-systemd
   create-stamp debian/debhelper-build-stamp
   dh_testroot -O--with-systemd
   dh_prep -O--with-systemd
        rm -f debian/tvheadend.substvars
        rm -f debian/tvheadend.*.debhelper
        rm -rf debian/tvheadend/
        rm -f debian/tvheadend-dbg.substvars
        rm -f debian/tvheadend-dbg.*.debhelper
        rm -rf debian/tvheadend-dbg/
   dh_installdirs -O--with-systemd
        install -d debian/tvheadend
/media/usbhdd/tvh/tvheadend/debian/dirs: 1: /media/usbhdd/tvh/tvheadend/debian/dirs: usr/bin: not found
dh_installdirs: debian/dirs (executable config) returned exit code 127
make: *** [binary] Fehler 127
debian/rules:5: die Regel für Ziel „binary“ scheiterte
dpkg-buildpackage: Fehler: Fehler-Exitstatus von fakeroot debian/rules binary war 2

History

#1

Updated by Mark Clarkstone about 7 years ago

  • Status changed from New to Need feedback

Odd - I've built it on 2 Pis in a chroot without issue

dpkg-buildpackage: binary-only upload (no source included)
doozer-versioned-artifact:/build/tvheadend/../tvheadend-dbg_4.3-710~g4162427~raspbianjessie_armhf.deb:deb:application/x-deb:tvheadend-dbg_4.3-710~g4162427~raspbianjessie_armhf.deb
doozer-versioned-artifact:/build/tvheadend/../tvheadend_4.3-710~g4162427~raspbianjessie_armhf.deb:deb:application/x-deb:tvheadend_4.3-710~g4162427~raspbianjessie_armhf.deb
doozer-versioned-artifact:/build/tvheadend/../tvheadend_4.3-710~g4162427~raspbianjessie_armhf.changes:changes:text/plain:tvheadend_4.3-710~g4162427~raspbianjessie_armhf.changes
BINTRAY: Version deb/4.3-710~g4162427 created
BINTRAY: File /build/tvheadend/../tvheadend-dbg_4.3-710~g4162427~raspbianjessie_armhf.deb: uploaded
BINTRAY: File /build/tvheadend/../tvheadend_4.3-710~g4162427~raspbianjessie_armhf.deb: uploaded
BINTRAY: File /build/tvheadend/../tvheadend_4.3-710~g4162427~raspbianjessie_armhf.changes: uploaded
mpmc
Switched to branch 'release/4.2'
Your branch is up-to-date with 'origin/release/4.2'.
No changes to this branch, not building.
root@rpizeta:~# 

dpkg-buildpackage: info: binary-only upload (no source included)
doozer-versioned-artifact:/build/tvheadend/../tvheadend-dbg_4.3-710~g41624278b~raspbianstretch_armhf.deb:deb:application/x-deb:tvheadend-dbg_4.3-710~g41624278b~raspbianstretch_armhf.deb
doozer-versioned-artifact:/build/tvheadend/../tvheadend_4.3-710~g41624278b~raspbianstretch_armhf.deb:deb:application/x-deb:tvheadend_4.3-710~g41624278b~raspbianstretch_armhf.deb
doozer-versioned-artifact:/build/tvheadend/../tvheadend_4.3-710~g41624278b~raspbianstretch_armhf.changes:changes:text/plain:tvheadend_4.3-710~g41624278b~raspbianstretch_armhf.changes
BINTRAY: Version deb/4.3-710~g41624278b created
BINTRAY: File /build/tvheadend/../tvheadend-dbg_4.3-710~g41624278b~raspbianstretch_armhf.deb: uploaded
BINTRAY: File /build/tvheadend/../tvheadend_4.3-710~g41624278b~raspbianstretch_armhf.deb: uploaded
BINTRAY: File /build/tvheadend/../tvheadend_4.3-710~g41624278b~raspbianstretch_armhf.changes: uploaded
mpmc
Switched to branch 'release/4.2'
Your branch is up-to-date with 'origin/release/4.2'.
No changes to this branch, not building.

Have you tried a

make {clean,distclean}
?

#2

Updated by Al Bundy about 7 years ago

I've executed make clean and building now again with

AUTOBUILD_CONFIGURE_EXTRA="--disable-libvpx --disable-bintray_cache" ./Autobuild.sh
#3

Updated by Mark Clarkstone about 7 years ago

Al Bundy wrote:

I've executed make clean and building now again with

[...]

Any reason why you're including ffmpeg? Not much point on the Pi.

#4

Updated by Al Bundy about 7 years ago

Mark Clarkstone wrote:

Al Bundy wrote:

I've executed make clean and building now again with

[...]

Any reason why you're including ffmpeg? Not much point on the Pi.

distclean didn't work either (new error)
Now I deleted debian/.debhelper and building again.

libvpx is disabled because this didn't work for a long time.
I'm trying now with libvpx.

Btw. I'm on Raspian stretch (up-to-date).

Al

#5

Updated by Al Bundy about 7 years ago

Al Bundy wrote:

Mark Clarkstone wrote:

Al Bundy wrote:

I've executed make clean and building now again with

[...]

Any reason why you're including ffmpeg? Not much point on the Pi.

distclean didn't work either (new error)
Now I deleted debian/.debhelper and building again.

libvpx is disabled because this didn't work for a long time.
I'm trying now with libvpx.

Btw. I'm on Raspian stretch (up-to-date).

Al

error with libvpx - next round with my default command...

If this won't work either I'll try a clean checkout...

#6

Updated by Al Bundy about 7 years ago

Even a build with a clean checkout fails with my first error.
I'm on the master-branch - maybe it's really a bug.

This is by build-script if someone want's to test it.

#!/bin/bash

BASE=$(dirname "$0")
(
  if [ -d "$BASE/tvheadend" ]; then
    cd "$BASE/tvheadend" 
    git pull
  else
    cd "$BASE" 
    git clone https://github.com/tvheadend/tvheadend.git tvheadend
    cd "$BASE/tvheadend" 
  fi
  AUTOBUILD_CONFIGURE_EXTRA="--disable-libvpx --disable-bintray_cache" ./Autobuild.sh
) | tee "$BASE/build.log" 
#7

Updated by Mark Clarkstone about 7 years ago

Al Bundy wrote:

Even a build with a clean checkout fails with my first error.
I'm on the master-branch - maybe it's really a bug.

This is by build-script if someone want's to test it.

[...]

Try passing --disable-ffmpeg_static

#8

Updated by Al Bundy about 7 years ago

This really seems to be a bug.
I switched to a previous revision with
git checkout HEAD~50
and could successfully run the build with my default-command.

#9

Updated by Al Bundy about 7 years ago

It seems that the build did not work since this commit.
https://github.com/tvheadend/tvheadend/commit/9270f48c9b4117d8b4b996ff85f3b39f5aa968e6

Build with the commit before works as expected.

#10

Updated by Al Bundy about 7 years ago

Clean checkout and manually removed the changes from the mentioned commit and the build works as expected.

#11

Updated by Mark Clarkstone about 7 years ago

  • Status changed from Need feedback to Accepted

Al Bundy wrote:

Clean checkout and manually removed the changes from the mentioned commit and the build works as expected.

OK, thanks for the heads up.

What version of debhelper do you have installed? on my Pi builder(s) I have

Stretch
debhelper/stable 10.2.5 all

Jessie
debhelper/oldstable,now 10.2.2~bpo8+1 all [installed]

#12

Updated by Al Bundy about 7 years ago

pi@rpi:~ $ dpkg -s debhelper
Package: debhelper
Status: install ok installed
Priority: optional
Section: devel
Installed-Size: 1448
Maintainer: Debhelper Maintainers <[email protected]>
Architecture: all
Multi-Arch: foreign
Version: 10.2.5
Replaces: dh-systemd (<< 1.38)
Depends: autotools-dev, binutils, dh-autoreconf (>= 12~), dh-strip-nondeterminism (>= 0.028~), dpkg (>= 1.16.2), dpkg-dev (>= 1.18.2~), file (>= 3.23), libdpkg-perl (>= 1.17.14), man-db (>= 2.5.1-1), po-debconf, perl
Suggests: dh-make
Breaks: dh-systemd (<< 1.38)
Description: helper programs for debian/rules
 A collection of programs that can be used in a debian/rules file to
 automate common tasks related to building Debian packages. Programs
 are included to install various files into your package, compress
 files, fix file permissions, integrate your package with the Debian
 menu system, debconf, doc-base, etc. Most Debian packages use debhelper
 as part of their build process.
pi@rpi:~ $ uname -a
Linux rpi 4.9.59-v7+ #1047 SMP Sun Oct 29 12:19:23 GMT 2017 armv7l GNU/Linux
#13

Updated by Mark Clarkstone about 7 years ago

Al Bundy wrote:

[...]

Have you tried building as root? It's what I'm doing on mine (it's all they're used for atm).

#14

Updated by Al Bundy about 7 years ago

No - because this wasn't necessary until now.
Building should be possible without switching to root but I can test if this would help.

#15

Updated by Al Bundy about 7 years ago

Building as root didn't work either.

#17

Updated by Mark Clarkstone about 7 years ago

  • Category set to General
  • Assignee set to Mark Clarkstone
  • % Done changed from 0 to 90

OK, I've opened a PR to revert this. I'm sorry it caused you hassle.

#18

Updated by Al Bundy about 7 years ago

Mark Clarkstone wrote:

OK, I've opened a PR to revert this. I'm sorry it caused you hassle.

No problem - the first commit looks fine but maybe this is a problem with debhelper or something else because my system is up-to-date (also debhelper > 9) and build doesn't show any error except that one with usr/bin.

But thanks for the PR - I hope it get's accepted soon.

Al

#19

Updated by Mark Clarkstone about 7 years ago

  • Status changed from Accepted to Fixed
  • % Done changed from 90 to 100

Applied in changeset commit:tvheadend|7f89446ab0cc62c3230c59e4c7ff85a9750e7b18.

Also available in: Atom PDF