Debian Bug report logs -
#300422
libtheora: FTBFS: tries to install to /usr during packaging.
Reported by: Kurt Roeckx <kurt@roeckx.be>
Date: Sat, 19 Mar 2005 16:48:36 UTC
Severity: serious
Tags: fixed, patch, sid
Found in version 0.0.0.alpha4-1
Fixed in version libtheora/0.0.0.alpha4-1.1
Done: Adeodato Simó <dato@net.com.org.es>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded to debian-bugs-dist@lists.debian.org, Christopher L Cheney <ccheney@debian.org>:
Bug#300422; Package libtheora.
(full text, mbox, link).
Acknowledgement sent to Kurt Roeckx <kurt@roeckx.be>:
New Bug report received and forwarded. Copy sent to Christopher L Cheney <ccheney@debian.org>.
(full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: libtheora
Version: 0.0.0.alpha4-1
Severity: serious
Hi,
Your package is failing to build because it's trying to install
directly into /usr during packaging.
From a buildd log:
make[4]: Entering directory `/build/buildd/libtheora-0.0.0.alpha4/doc'
make[4]: Nothing to be done for `install-exec-am'.
mkdir -p -- . /usr/share/doc/libtheora-1.0alpha4
mkdir: cannot create directory `/usr/share/doc/libtheora-1.0alpha4': Permission
denied
make[4]: *** [install-data-local] Error 1
The problem seems to be that DESTDIR it's properly used in the
Makefile everywhere.
Kurt
Tags added: sid
Request was from Steve Langasek <vorlon@debian.org>
to control@bugs.debian.org.
(full text, mbox, link).
Tags added: patch
Request was from RISKO Gergely <risko@debian.org>
to control@bugs.debian.org.
(full text, mbox, link).
Information forwarded to debian-bugs-dist@lists.debian.org, Christopher L Cheney <ccheney@debian.org>:
Bug#300422; Package libtheora.
(full text, mbox, link).
Acknowledgement sent to RISKO Gergely <risko@debian.org>:
Extra info received and forwarded to list. Copy sent to Christopher L Cheney <ccheney@debian.org>.
(full text, mbox, link).
Message #14 received at 300422@bugs.debian.org (full text, mbox, reply):
package libtheora
tags 294457 patch
thanks
Here is an updated patch for libtheora, can be applied to version
0.0.0.alpha4-1
I will NMU it on April 1st, if you don't upload it sooner.
Thanks,
Gergely
diff -urN /home/risko/work/debian/rc/libtheora-0.0.0.alpha4/debian/changelog libtheora-0.0.0.alpha4/debian/changelog
--- /home/risko/work/debian/rc/libtheora-0.0.0.alpha4/debian/changelog 2005-03-21 19:20:45.000000000 +0100
+++ libtheora-0.0.0.alpha4/debian/changelog 2005-03-21 19:14:47.000000000 +0100
@@ -1,3 +1,11 @@
+libtheora (0.0.0.alpha4-1.1) unstable; urgency=low
+
+ * NMU, because an FTBFS keeps it out from testing
+ * fixed the build things (closes: #300422, #290465, #297816)
+ * created libtheora-bin package (closes: #294457)
+
+ -- RISKO Gergely <risko@debian.org> Mon, 21 Mar 2005 19:14:12 +0100
+
libtheora (0.0.0.alpha4-1) unstable; urgency=low
* New upstream.
@@ -16,6 +24,3 @@
-- Christopher L Cheney <ccheney@debian.org> Wed, 25 Sep 2002 21:00:00 -0500
-Local variables:
-mode: debian-changelog
-End:
diff -urN /home/risko/work/debian/rc/libtheora-0.0.0.alpha4/debian/control libtheora-0.0.0.alpha4/debian/control
--- /home/risko/work/debian/rc/libtheora-0.0.0.alpha4/debian/control 2005-03-21 19:20:45.000000000 +0100
+++ libtheora-0.0.0.alpha4/debian/control 2005-03-21 18:27:00.000000000 +0100
@@ -3,7 +3,7 @@
Priority: optional
Maintainer: Christopher L Cheney <ccheney@debian.org>
Build-Depends: autotools-dev, cdbs, debhelper (>> 4.0.0), devscripts, doxygen, graphviz, libogg-dev (>= 1.1.0), libsdl1.2-dev, libvorbis-dev, python
-Standards-Version: 3.6.1.0
+Standards-Version: 3.6.1.1
Package: libtheora0
Architecture: any
@@ -16,9 +16,20 @@
Architecture: any
Section: libdevel
Depends: libtheora0 (= ${Source-Version}), libogg-dev
-Description: The Theora Compression Codec (development files)
+Description: The Theora Video Compression Codec (development files)
Theora is a fully open, non-proprietary, patent-and-royalty-free,
general-purpose compressed video format.
.
This package contains the header files and documentation needed to develop
applications with libtheora.
+
+Package: libtheora-bin
+Architecture: any
+Section: utils
+Depends: ${shlibs:Depends}
+Description: The Theora Video Compression Codec (example encoder, decoder)
+ Theora is a fully open, non-proprietary, patent-and-royalty-free,
+ general-purpose compressed video format.
+ .
+ This package contains a reference implementation of an encoder and a
+ decoder.
diff -urN /home/risko/work/debian/rc/libtheora-0.0.0.alpha4/debian/libtheora-bin.install libtheora-0.0.0.alpha4/debian/libtheora-bin.install
--- /home/risko/work/debian/rc/libtheora-0.0.0.alpha4/debian/libtheora-bin.install 1970-01-01 01:00:00.000000000 +0100
+++ libtheora-0.0.0.alpha4/debian/libtheora-bin.install 2005-03-21 18:40:04.000000000 +0100
@@ -0,0 +1,3 @@
+examples/.libs/dump_video usr/bin
+examples/.libs/encoder_example usr/bin
+examples/.libs/player_example usr/bin
diff -urN /home/risko/work/debian/rc/libtheora-0.0.0.alpha4/debian/patches/00list libtheora-0.0.0.alpha4/debian/patches/00list
--- /home/risko/work/debian/rc/libtheora-0.0.0.alpha4/debian/patches/00list 1970-01-01 01:00:00.000000000 +0100
+++ libtheora-0.0.0.alpha4/debian/patches/00list 2005-03-21 13:32:06.000000000 +0100
@@ -0,0 +1 @@
+01autotools
diff -urN /home/risko/work/debian/rc/libtheora-0.0.0.alpha4/debian/patches/01autotools.dpatch libtheora-0.0.0.alpha4/debian/patches/01autotools.dpatch
--- /home/risko/work/debian/rc/libtheora-0.0.0.alpha4/debian/patches/01autotools.dpatch 1970-01-01 01:00:00.000000000 +0100
+++ libtheora-0.0.0.alpha4/debian/patches/01autotools.dpatch 2005-03-21 13:41:56.000000000 +0100
@@ -0,0 +1,44 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 01_autotools.dpatch by <risko@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Autotools build fixes
+
+@DPATCH@
+
+--- ./autogen.sh
++++ ./autogen.sh
+@@ -113,4 +113,4 @@
+ autoconf || exit 1
+
+ cd $olddir
+-$srcdir/configure "$@" && echo
++#$srcdir/configure "$@" && echo
+--- ./doc/Makefile.am
++++ ./doc/Makefile.am
+@@ -44,21 +44,21 @@
+
+
+ install-data-local: doxygen-build.stamp
+- $(mkinstalldirs) $(docdir)
++ $(mkinstalldirs) $(DESTDIR)$(docdir)
+ if test -d libtheora; then \
+ for dir in libtheora/*; do \
+ if test -d $$dir; then \
+ b=`basename $$dir`; \
+- $(mkinstalldirs) $(docdir)/$$b; \
++ $(mkinstalldirs) $(DESTDIR)$(docdir)/$$b; \
+ for f in $$dir/*; do \
+- $(INSTALL_DATA) $$f $(docdir)/$$b; \
++ $(INSTALL_DATA) $$f $(DESTDIR)$(docdir)/$$b; \
+ done \
+ fi \
+ done \
+ fi
+
+ uninstall-local:
+- rm -rf $(docdir)
++ rm -rf $(DESTDIR)$(docdir)
+
+ clean-local:
+ if test -d libtheora; then rm -rf libtheora; fi
diff -urN /home/risko/work/debian/rc/libtheora-0.0.0.alpha4/debian/rules libtheora-0.0.0.alpha4/debian/rules
--- /home/risko/work/debian/rc/libtheora-0.0.0.alpha4/debian/rules 2004-08-05 04:36:15.000000000 +0200
+++ libtheora-0.0.0.alpha4/debian/rules 2005-03-21 18:50:24.000000000 +0100
@@ -1,3 +1,24 @@
#!/usr/bin/make -f
+
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
+include /usr/share/cdbs/1/rules/dpatch.mk
+
+common-configure-arch common-configure-indep:: debian/stamp-autotools-files
+debian/stamp-autotools-files:
+ $(DEB_BUILDDIR)/autogen.sh
+ touch debian/stamp-autotools-files
+
+binary-install/libtheora-dev::
+ rm -f $(DEB_BUILDDIR)/debian/libtheora-dev/usr/share/doc/libtheora-dev/doxygen-build.stamp
+
+binary-install/libtheora-bin::
+ for i in $(DEB_BUILDDIR)/debian/libtheora-bin/usr/bin/*; do strip -s $$i; mv $$i $(DEB_BUILDDIR)/debian/libtheora-bin/usr/bin/theora_`basename $$i`; done
+
+clean::
+ rm -f mkinstalldirs debian/stamp/autotools-files Makefile.in aclocal.m4 configure doc/Makefile.in examples/Makefile.in include/Makefile.in include/theora/Makefile.in lib/Makefile.in debian/Makefile.in
+ mv config.guess.cdbs-orig config.guess
+ mv config.sub.cdbs-orig config.sub
+
+# this is temporarily needed because of a cdbs issue
+unpatch: deapply-dpatches
diff -urN /home/risko/work/debian/rc/libtheora-0.0.0.alpha4/debian/watch libtheora-0.0.0.alpha4/debian/watch
--- /home/risko/work/debian/rc/libtheora-0.0.0.alpha4/debian/watch 1970-01-01 01:00:00.000000000 +0100
+++ libtheora-0.0.0.alpha4/debian/watch 2005-03-21 12:09:24.000000000 +0100
@@ -0,0 +1,2 @@
+version=2
+http://downloads.xiph.org/releases/theora/libtheora-(.*)\.tar\.gz 1.0alpha4
Information forwarded to debian-bugs-dist@lists.debian.org, Christopher L Cheney <ccheney@debian.org>:
Bug#300422; Package libtheora.
(full text, mbox, link).
Acknowledgement sent to RISKO Gergely <risko@risko.hu>:
Extra info received and forwarded to list. Copy sent to Christopher L Cheney <ccheney@debian.org>.
(full text, mbox, link).
Message #19 received at 300422@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
> Hello. I am interested in your patch, but am having trouble with compilation.
> (I am not the maintainer or a DD).
>
> If I run "debuild", it tries to first run "debian/rules clean", but fails at:
>
> mv config.guess.cdbs-orig config.guess
> mv: cannot stat `config.guess.cdbs-orig': No such file or directory
> make: *** [clean] Error 1
> debuild: fatal error at line 764:
> dpkg-buildpackage failed!
>
> If I run "fakeroot debian/rules binary", I get:
>
> dpatch apply-all
> applying patch 01autotools to ./ ... failed.
> make: *** [apply-dpatches] Error 1
>
> Am I doing something wrong?
Sorry, the patch was wrong, now it is fixed, so it is my second try.
The patch only works with cdbs >=0.4.27-3, since there was changes
around config.{guess,sub} handling, but it will migrate to testing
tonight. So we will have it tomorrow in testing too!
Gergely
[theora-2ndtry (application/octet-stream, attachment)]
Information forwarded to debian-bugs-dist@lists.debian.org, Christopher L Cheney <ccheney@debian.org>:
Bug#300422; Package libtheora.
(full text, mbox, link).
Acknowledgement sent to Tim Olsen <tolsen718@gmail.com>:
Extra info received and forwarded to list. Copy sent to Christopher L Cheney <ccheney@debian.org>.
(full text, mbox, link).
Message #24 received at 300422@bugs.debian.org (full text, mbox, reply):
It looks like you're missing a build-depends for automake1.6 and libtool
other than that, the patch works for me. thanks!
-Tim
Tags added: fixed
Request was from RISKO Gergely <risko@debian.org>
to control@bugs.debian.org.
(full text, mbox, link).
Bug marked as fixed in version 0.0.0.alpha4-1.1, send any further explanations to Kurt Roeckx <kurt@roeckx.be>
Request was from Adeodato Simó <dato@net.com.org.es>
to control@bugs.debian.org.
(full text, mbox, link).
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Sun, 24 Jun 2007 20:52:52 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sun Jul 2 00:17:21 2023;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.