Your message dated Sat, 28 Jan 2012 15:32:40 +0000
with message-id <e1rrage-0007ak...@franck.debian.org>
and subject line Bug#656502: fixed in blender 2.61-2
has caused the Debian Bug report #656502,
regarding blender: [FTBFS] Does not build with libav 0.8~beta2
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
656502: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=656502
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: blender
Version: 6.3.1
Severity: serious
Tags: patch upstream
Justification: Fails to build from source
In addition to #654428, blender also fails to build from source because
of API changes in libav 0.9~beta2. Attached is a patch which fix all (3)
the issues I found until #654428 build failure.
Note the change related to avformat_alloc_output_context2 in
ffmpeg_compat.h header. Blender is likely to need the same kind of
change when a future version of libav will be uploaded to Debian.
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: armhf (armv7l)
Kernel: Linux 2.6.38-ac2-ac100 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Description: Adapt to libavutil API changes
Add include for libavutil/mathematics.h in ffmpeg_compat.h and writeffmpeg.c
since it is no longer included in libavutil/avutil.h
Author: Thomas Preud'homme <robo...@celest.fr>
Origin: vendor
Forwarded: no
Last-Update: 2012-01-19
---
--- blender-2.61.orig/intern/ffmpeg/ffmpeg_compat.h
+++ blender-2.61/intern/ffmpeg/ffmpeg_compat.h
@@ -35,6 +35,7 @@
#include <libavcodec/avcodec.h>
#include <libavutil/rational.h>
+#include <libavutil/mathematics.h>
#if (LIBAVFORMAT_VERSION_MAJOR > 52) || ((LIBAVFORMAT_VERSION_MAJOR >= 52) && (LIBAVFORMAT_VERSION_MINOR >= 101))
#define FFMPEG_HAVE_PARSE_UTILS 1
--- blender-2.61.orig/source/blender/blenkernel/intern/writeffmpeg.c
+++ blender-2.61/source/blender/blenkernel/intern/writeffmpeg.c
@@ -36,6 +36,7 @@
#include <libavformat/avformat.h>
#include <libavcodec/avcodec.h>
#include <libavutil/rational.h>
+#include <libavutil/mathematics.h>
#include <libswscale/swscale.h>
#include <libavcodec/opt.h>
>From 63b4c577c951245904fd59ac8c6021bab18b0de4 Mon Sep 17 00:00:00 2001
From: Antonio Ospite <osp...@studenti.unina.it>
Date: Sat, 17 Dec 2011 15:45:16 +0100
Subject: [PATCH] Make blender compile with FFmpeg from Debian.
X-Face: z*RaLf`X<@C75u6Ig9}{oW$H;1_\2t5)({*|jhM<pyWR#k60!#=#>/Vb;]yA5<GWI5`6u&+
;6b'@y|8w"wB;4/e!7wYYrcqdJFY,~%Gk_4]cq$Ei/7<j&N3ah(m`ku?pX.&+~:_/wC~dwn^)MizBG
!pE^+iDQQ1yC6^,)YDKkxDd!T>\I~93>J<_`<4)A{':UrE
avformat_alloc_output_context2() should be in the libavformat 53.2.0 but
it isn't in Debian, re-define it.
Signed-off-by: Antonio Ospite <osp...@studenti.unina.it>
---
intern/ffmpeg/ffmpeg_compat.h | 61 +++++++++++++++++++++++++++++++++++++++++
1 files changed, 61 insertions(+), 0 deletions(-)
diff --git a/intern/ffmpeg/ffmpeg_compat.h b/intern/ffmpeg/ffmpeg_compat.h
index dfdad22..5259f69 100644
--- a/intern/ffmpeg/ffmpeg_compat.h
+++ b/intern/ffmpeg/ffmpeg_compat.h
@@ -48,6 +48,67 @@
#define FFMPEG_HAVE_AVIO 1
#endif
+#if (LIBAVFORMAT_VERSION_MAJOR < 53) || ((LIBAVFORMAT_VERSION_MAJOR == 53) && (LIBAVFORMAT_VERSION_MINOR < 21))
+/* XXX The last check above should be (LIBAVFORMAT_VERSION_MINOR < 2),
+ * look at http://patches.libav.org/patch/3333/ but ffmpeg in Debian is
+ * strange: 53.2.0 should have avformat_alloc_output_context2() but it does
+ * not.
+ */
+#include <libavutil/avstring.h>
+static int avformat_alloc_output_context2(AVFormatContext **avctx, AVOutputFormat *oformat,
+ const char *format, const char *filename)
+{
+ AVFormatContext *s = avformat_alloc_context();
+ int ret = 0;
+
+ *avctx = NULL;
+ if (!s)
+ goto nomem;
+
+ if (!oformat) {
+ if (format) {
+ oformat = av_guess_format(format, NULL, NULL);
+ if (!oformat) {
+ av_log(s, AV_LOG_ERROR, "Requested output format '%s' is not a suitable output format\n", format);
+ ret = AVERROR(EINVAL);
+ goto error;
+ }
+ } else {
+ oformat = av_guess_format(NULL, filename, NULL);
+ if (!oformat) {
+ ret = AVERROR(EINVAL);
+ av_log(s, AV_LOG_ERROR, "Unable to find a suitable output format for '%s'\n",
+ filename);
+ goto error;
+ }
+ }
+ }
+
+ s->oformat = oformat;
+ if (s->oformat->priv_data_size > 0) {
+ s->priv_data = av_mallocz(s->oformat->priv_data_size);
+ if (!s->priv_data)
+ goto nomem;
+ if (s->oformat->priv_class) {
+ *(const AVClass**)s->priv_data= s->oformat->priv_class;
+ av_opt_set_defaults(s->priv_data);
+ }
+ } else
+ s->priv_data = NULL;
+
+ if (filename)
+ av_strlcpy(s->filename, filename, sizeof(s->filename));
+ *avctx = s;
+ return 0;
+nomem:
+ av_log(s, AV_LOG_ERROR, "Out of memory\n");
+ ret = AVERROR(ENOMEM);
+error:
+ avformat_free_context(s);
+ return ret;
+}
+#endif
+
#if (LIBAVCODEC_VERSION_MAJOR > 53) || ((LIBAVCODEC_VERSION_MAJOR == 53) && (LIBAVCODEC_VERSION_MINOR > 1)) || ((LIBAVCODEC_VERSION_MAJOR == 53) && (LIBAVCODEC_VERSION_MINOR == 1) && (LIBAVCODEC_VERSION_MICRO >= 1)) || ((LIBAVCODEC_VERSION_MAJOR == 52) && (LIBAVCODEC_VERSION_MINOR >= 121))
#define FFMPEG_HAVE_DEFAULT_VAL_UNION 1
#endif
--
1.7.7.3
--- End Message ---
--- Begin Message ---
Source: blender
Source-Version: 2.61-2
We believe that the bug you reported is fixed in the latest version of
blender, which is due to be installed in the Debian FTP archive:
blender-dbg_2.61-2_amd64.deb
to main/b/blender/blender-dbg_2.61-2_amd64.deb
blender_2.61-2.debian.tar.gz
to main/b/blender/blender_2.61-2.debian.tar.gz
blender_2.61-2.dsc
to main/b/blender/blender_2.61-2.dsc
blender_2.61-2_amd64.deb
to main/b/blender/blender_2.61-2_amd64.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 656...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Kevin Roy <kin...@gmail.com> (supplier of updated blender package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Fri, 27 Jan 2012 00:39:28 +0100
Source: blender
Binary: blender blender-dbg
Architecture: source amd64
Version: 2.61-2
Distribution: unstable
Urgency: low
Maintainer: Debian Multimedia Maintainers
<pkg-multimedia-maintainers@lists.alioth.debian.org>
Changed-By: Kevin Roy <kin...@gmail.com>
Description:
blender - Very fast and versatile 3D modeller/renderer
blender-dbg - debug symbols for Blender
Closes: 654395 654428 656502
Changes:
blender (2.61-2) unstable; urgency=low
.
[ Antonio Ospite ]
* debian/patches: refresh 0008-update_manpages.patch.
* debian/patches: don't use version number in the system_path.
Thanks to Luka Frelih (Closes: #654395)
.
[ Kevin Roy ]
* debian/patches: fix_FTBFS_with_libmv + cleanup (Closes: #654428)
* debian/control: description cleanup
* debian/control: drop libsamplerate and libftgl.
Thanks to Campbell Barton (upstream developer)
* debian/control: switch font to fonts-droid
* debian/control: add libfontconfig build-dep
* debian/rules: add WITH_FONTCONFIG option
* debian/patches: add look_for_droid_ttf_with_fontconfig patch
* debian/patches: fix locales lookup
* debian/patches: drop inactive use_systemwide_libraries.patch
* debian/patches: fix implicit declaration of av_rescale_q.
* debian/patches: fix implicit declaration of guardealloc.
Thanks to Sergey Sharybin (upstream developer)
for both these patches
.
[ Matteo F. Vescovi ]
* debian/copyright: DEP-5 compliance
* New patch to resolve libav's API changes (Closes: #656502)
* Updated patch 0009 to fix FTBFS.
Thanks to Thomas Preud'homme for both these patches
Checksums-Sha1:
646656ca3dd29a270beeef4c6ce2936508649538 1852 blender_2.61-2.dsc
448a3399bbc29eb110c9571a2e92f80ca1cbbe00 37785 blender_2.61-2.debian.tar.gz
a7b17e11a5ab767131ab3a6bfcecc4f69f6011f5 19875688 blender_2.61-2_amd64.deb
aa52b99fbe8f4c51060930edc8b63fd2a926eaeb 1842604 blender-dbg_2.61-2_amd64.deb
Checksums-Sha256:
a426eca39ac52ff4a4dc0025b67dd1bd2e44f6d92fe8587be3bb387c17fc2979 1852
blender_2.61-2.dsc
cc455485cd360e9d6ebd11c81f8c12f5ff167db574ac2053668e25d324f2eef1 37785
blender_2.61-2.debian.tar.gz
703ca5bf53bb2a14ce3aed4c3042ace1b363d6cdab285378907bd2114a221f37 19875688
blender_2.61-2_amd64.deb
4378cedc577f53d1f5af22f5ca4ab6be6bb387735310d283bb37c27755a88afa 1842604
blender-dbg_2.61-2_amd64.deb
Files:
efd881ce676c855b92b5bc9c2d246913 1852 graphics optional blender_2.61-2.dsc
7e2906c6cb25464aaad749c14ff62320 37785 graphics optional
blender_2.61-2.debian.tar.gz
436321cd060045d8289e90dcf4d57cc0 19875688 graphics optional
blender_2.61-2_amd64.deb
4da995990b5d96b46e6a43c6b87c1b29 1842604 debug extra
blender-dbg_2.61-2_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iEYEARECAAYFAk8kEigACgkQsKTFpDfZQSzkTwCfdFPVju1QtswJAYJJF6OYT5FI
qxgAoIIeNM8KUcL25Yboznx0HU/Uc80j
=S4RX
-----END PGP SIGNATURE-----
--- End Message ---
_______________________________________________
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers