Package: ivtv-utils
Version: 1.4.1-1
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu natty ubuntu-patch


Package failed to build from source.
Here is the error log:

v4l2-ctl.cpp: At global scope:
v4l2-ctl.cpp:896:14: warning: 'char* pts_to_string(char*, long unsigned int)' 
defined but not used
g++ -lm -o v4l2-ctl v4l2-ctl.o
cc -D_GNU_SOURCE -O2 -Wall -g -I.   -c -o ivtv-ctl.o ivtv-ctl.c
ivtv-ctl.c: In function 'dowrite':
ivtv-ctl.c:257:2: warning: format not a string literal and no format arguments
In file included from /usr/include/stdio.h:930:0,
                 from ivtv-ctl.c:25:
In function 'snprintf',
    inlined from 'pts_to_string' at ivtv-ctl.c:194:10,
    inlined from 'main' at ivtv-ctl.c:559:18:
/usr/include/bits/stdio2.h:65:3: warning: call to __builtin___snprintf_chk will 
always overflow destination buffer
cc -lm -o ivtv-ctl ivtv-ctl.o
ivtv-ctl.o: In function `pts_to_string':
/home/tarun/source/ivtv/ivtv-utils-1.4.1/utils/ivtv-ctl.c:192: undefined 
reference to `ceilf'
collect2: ld returned 1 exit status
make[2]: *** [ivtv-ctl] Error 1
make[2]: Leaving directory `/home/tarun/source/ivtv/ivtv-utils-1.4.1/utils'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/tarun/source/ivtv/ivtv-utils-1.4.1'
make: *** [build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
debuild: fatal error at line 1335:
dpkg-buildpackage -rfakeroot -D -us -uc -b failed


*** /tmp/tmpR9rpJV
In Ubuntu, we've applied the attached patch to achieve the following:

## Patch changes location of some libraries in order to fix FTBFS error.

  * debian/patches/04_fix_ftbfs_binutils-gold.dpatch
    - Fix FTBFS with binutils-gold. (LP: #725933) 

We thought you might be interested in doing the same. 


-- System Information:
Debian Release: squeeze/sid
  APT prefers maverick-updates
  APT policy: (500, 'maverick-updates'), (500, 'maverick-security'), (500, 
'maverick-backports'), (500, 'maverick')
Architecture: i386 (i686)

Kernel: Linux 2.6.35-25-generic (SMP w/4 CPU cores)
Locale: LANG=en_IN, LC_CTYPE=en_IN (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -u ivtv-utils-1.4.1/debian/control ivtv-utils-1.4.1/debian/control
--- ivtv-utils-1.4.1/debian/control
+++ ivtv-utils-1.4.1/debian/control
@@ -1,7 +1,8 @@
 Source: ivtv-utils
 Section: contrib/x11
 Priority: extra
-Maintainer: Debian MythTV Team <pkg-mythtv-maintain...@lists.alioth.debian.org>
+Maintainer: Ubuntu Developers <ubuntu-devel-disc...@lists.ubuntu.com>
+XSBC-Original-Maintainer: Debian MythTV Team <pkg-mythtv-maintain...@lists.alioth.debian.org>
 Uploaders: Ian Campbell <i...@hellion.org.uk>, Mark Purcell <m...@debian.org>
 Build-Depends: debhelper, bzip2, dpatch
 Standards-Version: 3.8.1.0
diff -u ivtv-utils-1.4.1/debian/changelog ivtv-utils-1.4.1/debian/changelog
diff -u ivtv-utils-1.4.1/debian/patches/00list ivtv-utils-1.4.1/debian/patches/00list
--- ivtv-utils-1.4.1/debian/patches/00list
+++ ivtv-utils-1.4.1/debian/patches/00list
@@ -2 +2 @@
-
+04_fix_ftbfs_binutils-gold.dpatch
only in patch2:
unchanged:
--- ivtv-utils-1.4.1.orig/debian/patches/04_fix_ftbfs_binutils-gold.dpatch
+++ ivtv-utils-1.4.1/debian/patches/04_fix_ftbfs_binutils-gold.dpatch
@@ -0,0 +1,57 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## From: Tarun Kumar Mall <c2ta...@gmail.com>
+## Description: Fixes FTBFS problem on natty machine by moving libraries to the end in ivtv-utils-1.4.1/test/Makefile and ivtv-utils-1.4.1/utils/Makefile
+## Bug: https://launchpad.net/bugs/725933
+
+## 04_fix_ftbfs_binutils-gold.dpatch by Tarun Kumar Mall <c2ta...@gmail.com>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
+diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' ivtv-utils-1.4.1~/test/Makefile ivtv-utils-1.4.1/test/Makefile
+--- ivtv-utils-1.4.1~/test/Makefile	2010-04-03 20:04:39.000000000 +0000
++++ ivtv-utils-1.4.1/test/Makefile	2011-03-01 15:26:30.643718001 +0000
+@@ -9,7 +9,10 @@
+ 
+ CFLAGS = -I../utils -D_GNU_SOURCE -O2 -Wall
+ CXXFLAGS = $(CFLAGS)
+-LDFLAGS = -lm
++LIBS = -lm
++
++ivtv-pcm-tester: ivtv-pcm-tester.o
++	$(CXX) $(CXXFLAGS) -o $@ $^ $(LIBS)
+ 
+ all: $(EXES)
+ 
+diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' ivtv-utils-1.4.1~/utils/Makefile ivtv-utils-1.4.1/utils/Makefile
+--- ivtv-utils-1.4.1~/utils/Makefile	2011-03-01 15:24:45.859718001 +0000
++++ ivtv-utils-1.4.1/utils/Makefile	2011-03-01 15:28:31.351718001 +0000
+@@ -20,22 +20,22 @@
+ 	$(MAKE) CFLAGS="$(CFLAGS)" -C cx25840ctl
+ 
+ ivtv-ctl: ivtv-ctl.o
+-	$(CC) -lm -o $@ $^
++	$(CC) -o $@ $^ -lm
+ 
+ v4l2-ctl: v4l2-ctl.o
+-	$(CXX) -lm -o $@ $^
++	$(CXX) -o $@ $^ -lm
+ 
+ v4l2-dbg: v4l2-dbg.o v4l2-driverids.o v4l2-chipids.o
+-	$(CXX) -lm -o $@ $^
++	$(CXX) -o $@ $^ -lm
+ 
+ ivtvplay: ivtvplay.cc
+-	$(CXX) $(CXXFLAGS) -lm -lpthread -o $@ $^
++	$(CXX) $(CXXFLAGS) -o $@ $^ -lm -lpthread
+ 
+ encoder.o: encoder.c
+ 	$(CC) $(CFLAGS) -DVIDEO_PORT=0 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -c $^
+ 
+ ivtv-encoder: enc_mindex.o enc_chann.o encoder.o
+-	$(CC) -lpthread -o $@ $^
++	$(CC) -o $@ $^ -lpthread
+ 
+ install: all
+ 	install -d $(DESTDIR)/$(BINDIR)

Reply via email to