Debian Bug report logs - #656719
Please provide xvmc and vdpau Gallium3D video acceleration drivers (libg3dvl-mesa package)

version graph

Package: src:mesa; Maintainer for src:mesa is Debian X Strike Force <debian-x@lists.debian.org>;

Reported by: Fabio Pedretti <fabio.ped@libero.it>

Date: Sat, 21 Jan 2012 10:00:01 UTC

Severity: wishlist

Merged with 677886

Found in versions mesa/9.1.4, mesa/9.2.1-1

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Sat, 21 Jan 2012 10:00:04 GMT) (full text, mbox, link).


Acknowledgement sent to Fabio Pedretti <fabio.ped@libero.it>:
New Bug report received and forwarded. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Sat, 21 Jan 2012 10:00:12 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Fabio Pedretti <fabio.ped@libero.it>
To: <submit@bugs.debian.org>
Subject: Please provide xvmc and vdpau Gallium3D video acceleration drivers (libg3dvl-mesa package)
Date: Sat, 21 Jan 2012 10:56:43 +0100 (CET)
Source: mesa
Severity: wishlist

Since 8.0 mesa provides xvmc and vdpau Gallium3D video acceleration drivers. 
In my Ubuntu PPA I added libg3dvl-mesa package to provide these drivers:
https://launchpad.net/~oibaf/+archive/graphics-drivers/+packages

It would be nice if you can include it directly in the Debian package, since 
it may also be useul to Debian users.

Fabio Pedretti




Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Sat, 21 Jan 2012 10:18:19 GMT) (full text, mbox, link).


Acknowledgement sent to Cyril Brulebois <kibi@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Sat, 21 Jan 2012 10:18:25 GMT) (full text, mbox, link).


Message #10 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Cyril Brulebois <kibi@debian.org>
To: Fabio Pedretti <fabio.ped@libero.it>, 656719@bugs.debian.org
Subject: Re: Bug#656719: Please provide xvmc and vdpau Gallium3D video acceleration drivers (libg3dvl-mesa package)
Date: Sat, 21 Jan 2012 11:14:20 +0100
[Message part 1 (text/plain, inline)]
Hi,

Fabio Pedretti <fabio.ped@libero.it> (21/01/2012):
> Since 8.0 mesa provides xvmc and vdpau Gallium3D video acceleration drivers. 
> In my Ubuntu PPA I added libg3dvl-mesa package to provide these drivers:
> https://launchpad.net/~oibaf/+archive/graphics-drivers/+packages

8.0-rc* packages are being prepared in the debian-experimental branch of
the Debian/Ubuntu repository (debcheckout mesa)…

> It would be nice if you can include it directly in the Debian package,
> since it may also be useul to Debian users.

… so if you want to speed up things, feel free to submit patches against
that branch (git format-patch $revspec && git send-email --to
656719@bugs.debian.org $thepatches); we would then only have to review /
merge the patches that you already tested.

Thanks already.

Mraw,
KiBi.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Mon, 23 Jan 2012 13:39:24 GMT) (full text, mbox, link).


Acknowledgement sent to Fabio Pedretti <fabio.ped@libero.it>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Mon, 23 Jan 2012 13:39:27 GMT) (full text, mbox, link).


Message #15 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Fabio Pedretti <fabio.ped@libero.it>
To: <kibi@debian.org>, <656719@bugs.debian.org>
Subject: R: Re: Bug#656719: Please provide xvmc and vdpau Gallium3D video acceleration drivers (libg3dvl-mesa package)
Date: Mon, 23 Jan 2012 14:34:58 +0100 (CET)
[Message part 1 (text/plain, inline)]
Patch is attached.

Note:
1) untested since debian-experimental mesa branch doesn't build on my Ubuntu;
2) VDPAU works out of the box supposed you have a recent enough -ati and -
nouveau, i.e. including these commits:
http://cgit.freedesktop.org/xorg/driver/xf86-video-ati/commit/?
id=f6f1b4f7789cfef763c063e671b76b60be8bdd8e
http://cgit.freedesktop.org/nouveau/xf86-video-nouveau/commit/?
id=d575a28a5020ff083836d3d1cf50018a99f49c9f
3) for XVMC to work users are supposed to create a file at 
/etc/X11/XvMCConfig. Since I found out that some applications
expects it at /etc/XvMCConfig or /usr/lib/XvMCConfig I added two symlinks 
there.
[g3dvl.diff (text/x-diff, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Mon, 23 Jan 2012 13:54:03 GMT) (full text, mbox, link).


Acknowledgement sent to Cyril Brulebois <kibi@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Mon, 23 Jan 2012 13:54:06 GMT) (full text, mbox, link).


Message #20 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Cyril Brulebois <kibi@debian.org>
To: Fabio Pedretti <fabio.ped@libero.it>
Cc: 656719@bugs.debian.org
Subject: Re: R: Re: Bug#656719: Please provide xvmc and vdpau Gallium3D video acceleration drivers (libg3dvl-mesa package)
Date: Mon, 23 Jan 2012 14:49:28 +0100
[Message part 1 (text/plain, inline)]
Fabio Pedretti <fabio.ped@libero.it> (23/01/2012):
> Patch is attached.

Thanks.

Just a quick comment:

> --- mesa-debian-originale/debian//control	2012-01-23 13:39:09.471085849 +0100
> +++ mesa-debian-test/debian//control	2012-01-21 20:29:38.350117156 +0100
> @@ -32,6 +32,9 @@ Build-Depends:
>   bison,
>   llvm-2.9-dev [amd64 i386 kfreebsd-amd64 kfreebsd-i386],
>  # libwayland-dev,
> + xserver-xorg-dev,
> + libvdpau-dev,
> + libxvmc-dev,

outch, introducing a build-dep-loop between mesa and xorg-server… :/

Mraw,
KiBi.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Mon, 23 Jan 2012 17:09:03 GMT) (full text, mbox, link).


Acknowledgement sent to Fabio Pedretti <fabio.ped@libero.it>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Mon, 23 Jan 2012 17:09:03 GMT) (full text, mbox, link).


Message #25 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Fabio Pedretti <fabio.ped@libero.it>
To: <kibi@debian.org>
Cc: <656719@bugs.debian.org>
Subject: R: Re: R: Re: Bug#656719: Please provide xvmc and vdpau Gallium3D video acceleration drivers (libg3dvl-mesa package)
Date: Mon, 23 Jan 2012 18:06:12 +0100 (CET)
[Message part 1 (text/plain, inline)]
>Fabio Pedretti <fabio.ped@libero.it> (23/01/2012):
>> Patch is attached.
>
>Thanks.
>
>Just a quick comment:
>
>> --- mesa-debian-originale/debian//control	2012-01-23 13:39:09.471085849 
+0100
>> +++ mesa-debian-test/debian//control	2012-01-21 20:29:38.350117156 +0100
>> @@ -32,6 +32,9 @@ Build-Depends:
>>   bison,
>>   llvm-2.9-dev [amd64 i386 kfreebsd-amd64 kfreebsd-i386],
>>  # libwayland-dev,
>> + xserver-xorg-dev,
>> + libvdpau-dev,
>> + libxvmc-dev,
>
>outch, introducing a build-dep-loop between mesa and xorg-server… :/

Without it, it fails to configure:
configure: error: Package requirements (xvmc >= 1.0.6 xorg-server) were not 
met:
No package 'xorg-server' found

It's explicitly required by configure.ac:
if test "x$enable_xvmc" = xyes; then
    PKG_CHECK_MODULES([XVMC], [xvmc >= 1.0.6 xorg-server])
    GALLIUM_STATE_TRACKERS_DIRS="$GALLIUM_STATE_TRACKERS_DIRS xorg/xvmc"
    HAVE_ST_XVMC="yes"
fi

Attached, updated patch with added minimum version for libvdpau-dev and 
libxvmc-dev (as required by configure.ac).

Also, I restricted the Architecture for libg3dvl-mesa and for the 3 new 
dependencies to linux-any (they should have the same restriction as the gallium 
drivers).
[g3dvl.diff (text/x-diff, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Mon, 23 Jan 2012 22:14:24 GMT) (full text, mbox, link).


Acknowledgement sent to Julien Cristau <jcristau@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Mon, 23 Jan 2012 22:14:25 GMT) (full text, mbox, link).


Message #30 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Julien Cristau <jcristau@debian.org>
To: Cyril Brulebois <kibi@debian.org>, 656719@bugs.debian.org
Cc: Fabio Pedretti <fabio.ped@libero.it>
Subject: Re: Bug#656719: R: Re: Bug#656719: Please provide xvmc and vdpau Gallium3D video acceleration drivers (libg3dvl-mesa package)
Date: Mon, 23 Jan 2012 23:08:34 +0100
On Mon, Jan 23, 2012 at 14:49:28 +0100, Cyril Brulebois wrote:

> Fabio Pedretti <fabio.ped@libero.it> (23/01/2012):
> > Patch is attached.
> 
> Thanks.
> 
> Just a quick comment:
> 
> > --- mesa-debian-originale/debian//control	2012-01-23 13:39:09.471085849 +0100
> > +++ mesa-debian-test/debian//control	2012-01-21 20:29:38.350117156 +0100
> > @@ -32,6 +32,9 @@ Build-Depends:
> >   bison,
> >   llvm-2.9-dev [amd64 i386 kfreebsd-amd64 kfreebsd-i386],
> >  # libwayland-dev,
> > + xserver-xorg-dev,
> > + libvdpau-dev,
> > + libxvmc-dev,
> 
> outch, introducing a build-dep-loop between mesa and xorg-server… :/
> 
That's a no-go as far as I'm concerned.

Cheers,
Julien




Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Tue, 24 Jan 2012 11:09:28 GMT) (full text, mbox, link).


Acknowledgement sent to Michel Dänzer <daenzer@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Tue, 24 Jan 2012 11:09:34 GMT) (full text, mbox, link).


Message #35 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Michel Dänzer <daenzer@debian.org>
To: Fabio Pedretti <fabio.ped@libero.it>, 656719@bugs.debian.org
Cc: Christian König <deathsimple@vodafone.de>, mesa-dev@lists.freedesktop.org
Subject: Re: Bug#656719: R: Re: R: Re: Bug#656719: Please provide xvmc and vdpau Gallium3D video acceleration drivers (libg3dvl-mesa package)
Date: Tue, 24 Jan 2012 11:39:57 +0100
On Mon, 2012-01-23 at 18:06 +0100, Fabio Pedretti wrote: 
> >Fabio Pedretti <fabio.ped@libero.it> (23/01/2012):
> >
> >> --- mesa-debian-originale/debian//control	2012-01-23 13:39:09.471085849 
> +0100
> >> +++ mesa-debian-test/debian//control	2012-01-21 20:29:38.350117156 +0100
> >> @@ -32,6 +32,9 @@ Build-Depends:
> >>   bison,
> >>   llvm-2.9-dev [amd64 i386 kfreebsd-amd64 kfreebsd-i386],
> >>  # libwayland-dev,
> >> + xserver-xorg-dev,
> >> + libvdpau-dev,
> >> + libxvmc-dev,
> >
> >outch, introducing a build-dep-loop between mesa and xorg-server… :/
> 
> Without it, it fails to configure:
> configure: error: Package requirements (xvmc >= 1.0.6 xorg-server) were not 
> met:
> No package 'xorg-server' found
> 
> It's explicitly required by configure.ac:
> if test "x$enable_xvmc" = xyes; then
>     PKG_CHECK_MODULES([XVMC], [xvmc >= 1.0.6 xorg-server])
>     GALLIUM_STATE_TRACKERS_DIRS="$GALLIUM_STATE_TRACKERS_DIRS xorg/xvmc"
>     HAVE_ST_XVMC="yes"
> fi

AFAICT the only thing needed from xserver-xorg-dev is the fourcc.h
header. This dependency could easily be removed by copying the used
definitions instead, especially as
src/gallium/state_trackers/xorg/xvmc/subpicture.c already defines
FOURCC_RGB itself.

Christian?


-- 
Earthling Michel Dänzer           |                   http://www.amd.com
Libre software enthusiast         |          Debian, X and DRI developer




Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Tue, 24 Jan 2012 12:28:51 GMT) (full text, mbox, link).


Acknowledgement sent to Christian König <deathsimple@vodafone.de>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Tue, 24 Jan 2012 12:29:07 GMT) (full text, mbox, link).


Message #40 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Christian König <deathsimple@vodafone.de>
To: Michel Dänzer <daenzer@debian.org>
Cc: Fabio Pedretti <fabio.ped@libero.it>, 656719@bugs.debian.org, mesa-dev@lists.freedesktop.org
Subject: Re: Bug#656719: R: Re: R: Re: Bug#656719: Please provide xvmc and vdpau Gallium3D video acceleration drivers (libg3dvl-mesa package)
Date: Tue, 24 Jan 2012 13:07:23 +0100
On 24.01.2012 11:39, Michel Dänzer wrote:
> On Mon, 2012-01-23 at 18:06 +0100, Fabio Pedretti wrote:
>>> Fabio Pedretti<fabio.ped@libero.it>  (23/01/2012):
>>>
>>>> --- mesa-debian-originale/debian//control	2012-01-23 13:39:09.471085849
>> +0100
>>>> +++ mesa-debian-test/debian//control	2012-01-21 20:29:38.350117156 +0100
>>>> @@ -32,6 +32,9 @@ Build-Depends:
>>>>    bison,
>>>>    llvm-2.9-dev [amd64 i386 kfreebsd-amd64 kfreebsd-i386],
>>>>   # libwayland-dev,
>>>> + xserver-xorg-dev,
>>>> + libvdpau-dev,
>>>> + libxvmc-dev,
>>> outch, introducing a build-dep-loop between mesa and xorg-server… :/
>> Without it, it fails to configure:
>> configure: error: Package requirements (xvmc>= 1.0.6 xorg-server) were not
>> met:
>> No package 'xorg-server' found
>>
>> It's explicitly required by configure.ac:
>> if test "x$enable_xvmc" = xyes; then
>>      PKG_CHECK_MODULES([XVMC], [xvmc>= 1.0.6 xorg-server])
>>      GALLIUM_STATE_TRACKERS_DIRS="$GALLIUM_STATE_TRACKERS_DIRS xorg/xvmc"
>>      HAVE_ST_XVMC="yes"
>> fi
> AFAICT the only thing needed from xserver-xorg-dev is the fourcc.h
> header. This dependency could easily be removed by copying the used
> definitions instead, especially as
> src/gallium/state_trackers/xorg/xvmc/subpicture.c already defines
> FOURCC_RGB itself.
>
> Christian?
This indeed sounds like the correct solution, and the fix is actually 
trivial, since we only need to defines from fourcc.h. Patch is on the 
way to the maillinglist.

But the xorg state tracker also depends on xorg-server, so I'm wondering 
why xorg-server depends on mesa in the first place?

Christian.




Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Tue, 24 Jan 2012 12:51:35 GMT) (full text, mbox, link).


Acknowledgement sent to Michel Dänzer <daenzer@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Tue, 24 Jan 2012 12:51:39 GMT) (full text, mbox, link).


Message #45 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Michel Dänzer <daenzer@debian.org>
To: Christian König <deathsimple@vodafone.de>
Cc: 656719@bugs.debian.org, mesa-dev@lists.freedesktop.org, Fabio Pedretti <fabio.ped@libero.it>
Subject: Re: [Mesa-dev] Bug#656719: R: Re: R: Re: Bug#656719: Please provide xvmc and vdpau Gallium3D video acceleration drivers (libg3dvl-mesa package)
Date: Tue, 24 Jan 2012 13:22:03 +0100
On Die, 2012-01-24 at 13:07 +0100, Christian König wrote: 
> On 24.01.2012 11:39, Michel Dänzer wrote:
> > On Mon, 2012-01-23 at 18:06 +0100, Fabio Pedretti wrote:
> >>> Fabio Pedretti<fabio.ped@libero.it>  (23/01/2012):
> >>>
> >>>> --- mesa-debian-originale/debian//control	2012-01-23 13:39:09.471085849
> >> +0100
> >>>> +++ mesa-debian-test/debian//control	2012-01-21 20:29:38.350117156 +0100
> >>>> @@ -32,6 +32,9 @@ Build-Depends:
> >>>>    bison,
> >>>>    llvm-2.9-dev [amd64 i386 kfreebsd-amd64 kfreebsd-i386],
> >>>>   # libwayland-dev,
> >>>> + xserver-xorg-dev,
> >>>> + libvdpau-dev,
> >>>> + libxvmc-dev,
> >>> outch, introducing a build-dep-loop between mesa and xorg-server… :/
> >> Without it, it fails to configure:
> >> configure: error: Package requirements (xvmc>= 1.0.6 xorg-server) were not
> >> met:
> >> No package 'xorg-server' found
> >>
> >> It's explicitly required by configure.ac:
> >> if test "x$enable_xvmc" = xyes; then
> >>      PKG_CHECK_MODULES([XVMC], [xvmc>= 1.0.6 xorg-server])
> >>      GALLIUM_STATE_TRACKERS_DIRS="$GALLIUM_STATE_TRACKERS_DIRS xorg/xvmc"
> >>      HAVE_ST_XVMC="yes"
> >> fi
> > AFAICT the only thing needed from xserver-xorg-dev is the fourcc.h
> > header. This dependency could easily be removed by copying the used
> > definitions instead, especially as
> > src/gallium/state_trackers/xorg/xvmc/subpicture.c already defines
> > FOURCC_RGB itself.
> >
> > Christian?
> This indeed sounds like the correct solution, and the fix is actually 
> trivial, since we only need to defines from fourcc.h. Patch is on the 
> way to the maillinglist.

Great, thanks.


> But the xorg state tracker also depends on xorg-server, so I'm wondering 
> why xorg-server depends on mesa in the first place?

The xserver GLX code uses various <GL/*> headers.


-- 
Earthling Michel Dänzer           |                   http://www.amd.com
Libre software enthusiast         |          Debian, X and DRI developer




Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Sun, 29 Jan 2012 20:03:03 GMT) (full text, mbox, link).


Acknowledgement sent to Fabio Pedretti <fabio.ped@libero.it>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Sun, 29 Jan 2012 20:03:03 GMT) (full text, mbox, link).


Message #50 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Fabio Pedretti <fabio.ped@libero.it>
To: <kibi@debian.org>
Cc: <656719@bugs.debian.org>
Subject: R: Re: R: Re: Bug#656719: Please provide xvmc and vdpau Gallium3D video acceleration drivers (libg3dvl-mesa package)
Date: Sun, 29 Jan 2012 21:00:57 +0100 (CET)
[Message part 1 (text/plain, inline)]
>> --- mesa-debian-originale/debian//control	2012-01-23 13:39:09.471085849 
+0100
>> +++ mesa-debian-test/debian//control	2012-01-21 20:29:38.350117156 +0100
>> @@ -32,6 +32,9 @@ Build-Depends:
>>   bison,
>>   llvm-2.9-dev [amd64 i386 kfreebsd-amd64 kfreebsd-i386],
>>  # libwayland-dev,
>> + xserver-xorg-dev,
>> + libvdpau-dev,
>> + libxvmc-dev,
>
>outch, introducing a build-dep-loop between mesa and xorg-server… :/

Updated patch reflecting that xorg-server dependency was dropped in master and 
8.0 branches of mesa. Note that, of course, non-linux support is incomplete, 
but I'll leave it to someone else since it's probably broken anyway (e.g. 
radeon and r200 drivers since mesa 8.0 require dri2 available only on linux).
[g3dvl.diff (text/x-diff, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Fri, 22 Jun 2012 12:33:14 GMT) (full text, mbox, link).


Acknowledgement sent to Paul Menzel <pm.debian@googlemail.com>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Fri, 22 Jun 2012 12:33:17 GMT) (full text, mbox, link).


Message #55 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Paul Menzel <pm.debian@googlemail.com>
To: Fabio Pedretti <fabio.ped@libero.it>
Cc: 656719@bugs.debian.org
Subject: Re: Bug#656719: Please provide xvmc and vdpau Gallium3D video acceleration drivers (libg3dvl-mesa package)
Date: Fri, 22 Jun 2012 14:29:19 +0200
[Message part 1 (text/plain, inline)]
forcemerge 656719 677886
quit

Dear Fabio,


thank you very much for that report and your patch. I overlooked your
report and submitted the separate report #677886 [1] and therefore merge
both.

Just as a side note, could you make sure the `Reply-to` and `References`
header fields are set in your messages so that threading is not broken.

Am Sonntag, den 29.01.2012, 21:00 +0100 schrieb Fabio Pedretti:

[…]

> Updated patch reflecting that xorg-server dependency was dropped in master and 
> 8.0 branches of mesa. Note that, of course, non-linux support is incomplete, 
> but I'll leave it to someone else since it's probably broken anyway (e.g. 
> radeon and r200 drivers since mesa 8.0 require dri2 available only on linux).

Today your patch was merged in Ubuntu [2][3].

But cherry-picking that patch to the branch `debian-unstable`

--- begin diff ---
From 6c4b5852646e2f8981d7b186c15180c2680adb3a Mon Sep 17 00:00:00 2001
From: Bryce Harrington <bryce@canonical.com>
Date: Thu, 21 Jun 2012 15:35:03 -0700
Subject: [PATCH] Add gallium vdpau and xvmc driver support

Conflicts:
	debian/changelog
---
 debian/changelog                |    8 ++++++++
 debian/control                  |   22 ++++++++++++++++++++++
 debian/libg3dvl-mesa.install.in |    4 ++++
 debian/not-installed            |    5 ++++-
 debian/rules                    |    5 ++++-
 5 files changed, 42 insertions(+), 2 deletions(-)
 create mode 100644 debian/libg3dvl-mesa.install.in

diff --git a/debian/changelog b/debian/changelog
index 0eb66a1..83a87ab 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+mesa (8.0.3-2) unstable; urgency=low
+
+  * Add g3dvl.diff from Debian bug 656719: Enables gallium vdpau and xvmc
+    driver support on at least Radeon r300+ and r600+.
+    (LP: #1002224)
+
+ -- Timo <timo.jyrinki@iki.fi>  Mon, 21 May 2012 12:46:40 +0300
+
 mesa (8.0.3-1) unstable; urgency=low
 
   [ Robert Hooker ]
diff --git a/debian/control b/debian/control
index ec59840..a9fcdd3 100644
--- a/debian/control
+++ b/debian/control
@@ -32,6 +32,8 @@ Build-Depends:
  bison,
  llvm-2.9-dev [amd64 i386 kfreebsd-amd64 kfreebsd-i386],
  libwayland-dev (>= 0.85.0) [linux-any],
+ libvdpau-dev (>= 0.4.1) [linux-any],
+ libxvmc-dev (>= 1.0.6) [linux-any],
 Vcs-Git: git://git.debian.org/git/pkg-xorg/lib/mesa
 Vcs-Browser: http://git.debian.org/?p=pkg-xorg/lib/mesa.git
 Homepage: http://mesa3d.sourceforge.net/
@@ -803,4 +805,24 @@ Description: Mesa OpenGL utility library -- development files
  For a complete description of GLU, please look at the libglu1-mesa
  package.
 
+Package: libg3dvl-mesa
+Section: libs
+Architecture: linux-any
+Depends:
+ ${shlibs:Depends},
+ ${misc:Depends},
+Description: xvmc and vdpau Gallium3D video acceleration drivers
+
+Package: libg3dvl-mesa-dbg
+Section: debug
+Priority: extra
+Architecture: linux-any
+Depends:
+ libg3dvl-mesa (= ${binary:Version}),
+ ${misc:Depends},
+Description: xvmc and vdpau Gallium3D video acceleration drivers
+ .
+ This package contains the debugging symbols for the g3dvl libraries.
+
+
 # vim: tw=0
diff --git a/debian/libg3dvl-mesa.install.in b/debian/libg3dvl-mesa.install.in
new file mode 100644
index 0000000..e013276
--- /dev/null
+++ b/debian/libg3dvl-mesa.install.in
@@ -0,0 +1,4 @@
+build/dri/${DEB_HOST_MULTIARCH}/gallium/libvdpau_* usr/lib/vdpau
+build/dri/${DEB_HOST_MULTIARCH}/gallium/libXvMC* usr/lib/dri
+build/dri/${DEB_HOST_MULTIARCH}/gallium/XvMCConfig usr/lib
+build/dri/${DEB_HOST_MULTIARCH}/gallium/XvMCConfig etc
diff --git a/debian/not-installed b/debian/not-installed
index afbf7dc..0221b94 100644
--- a/debian/not-installed
+++ b/debian/not-installed
@@ -18,7 +18,10 @@ NOT_INSTALLED := \
 	usr/include/GL/glx_mangle.h \
 	usr/include/GL/vms_x_fix.h \
 	usr/include/GL/wglext.h \
-	usr/include/GL/wmesa.h
+	usr/include/GL/wmesa.h \
+	dri/usr/lib/*/libXvMC* \
+	dri/usr/*/libXvMC* \
+	dri/usr/lib/*/vdpau/
 
 # Architecture-specific additional files:
 NOT_INSTALLED_i386 = \
diff --git a/debian/rules b/debian/rules
index 3bf3702..b3c0396 100755
--- a/debian/rules
+++ b/debian/rules
@@ -119,6 +119,7 @@ confflags-dri = \
 	--enable-glx-tls \
 	--enable-shared-glapi \
 	--enable-texture-float \
+	--enable-gallium-g3dvl \
 	--enable-xa \
 	$(confflags_DIRECT_RENDERING) \
 	$(confflags_EGL) \
@@ -214,6 +215,8 @@ $(STAMP_DIR)/stamp:
 $(QUILT_STAMPFN): $(STAMP_DIR)/stamp
 
 build: build-stamp
+	# XvMCConfig configuration file:
+	ln -s /etc/X11/XvMCConfig build/dri/$(DEB_HOST_MULTIARCH)/gallium/XvMCConfig
 
 build-stamp: $(BUILD_STAMPS)
 	>$@
@@ -294,7 +297,7 @@ binary-arch: install
 
 	# Also get rid of other files which aren't installed. Do not
 	# use -f to ensure we notice disappearing files:
-	set -e; for file in $(NOT_INSTALLED); do rm debian/tmp/$$file; done
+	set -e; for file in $(NOT_INSTALLED); do rm -r debian/tmp/$$file; done
 	# Files only in git, not in tarballs, OK to use rm -f here:
 	set -e; for file in $(NOT_INSTALLED_EITHER); do rm -f debian/tmp/$$file; done
 	# No need for this .so, libglapi is just a convenience library:
-- 
1.7.10.4
--- end diff ---

and building it I first got an error that LLVM is needed.

1. So some build depends need to be updated.

Doing

        $ sudo aptitude install llvm # currently depends on LLVM 3.1

I am now getting the following error.

        $ dpkg-buildpackage -us -uc -B -j2 -nc
        […]
        config.status: executing configs commands
        
                prefix:          /usr
                exec_prefix:     ${prefix}
                libdir:          ${prefix}/lib/i386-linux-gnu
                includedir:      ${prefix}/include
        
                OpenGL:          yes (ES1: no ES2: no)
                OpenVG:          no
        
                OSMesa:          libOSMesa16
                GLX:             no
        
                GLU:             no
        
                EGL:             no
        
                llvm:            no
        
                Gallium:         no
        
                Shared libs:     no
                Static libs:     yes
        
                CFLAGS:          -Wall -g -O2 -Wall -Wmissing-prototypes -std=c99 -fno-strict-aliasing -fno-builtin-memcmp -Wall -g -O2
                CXXFLAGS:        -Wall -g -O2 -Wall -fno-strict-aliasing -fno-builtin-memcmp -Wall -g -O2
                Macros:          -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN -DCHAN_BITS=16 -DDEFAULT_SOFTWARE_DEPTH_BITS=31 -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
        
                PYTHON2:         python
        
                Run 'make' to build Mesa
        […]
        gallivm/lp_bld_debug.cpp: In function ‘void lp_disassemble(const void*)’:
        gallivm/lp_bld_debug.cpp:240:66: error: no matching function for call to ‘llvm::Target::createMCInstPrinter(unsigned int&, const llvm::MCAsmInfo&, const llvm::MCSubtargetInfo&) const’
        gallivm/lp_bld_debug.cpp:240:66: note: candidate is:
        In file included from gallivm/lp_bld_debug.cpp:37:0:
        /usr/lib/llvm-3.1/include/llvm/Support/TargetRegistry.h:395:20: note: llvm::MCInstPrinter* llvm::Target::createMCInstPrinter(unsigned int, const llvm::MCAsmInfo&, const llvm::MCInstrInfo&, const llvm::MCRegisterInfo&, const llvm::MCSubtargetInfo&) const
        /usr/lib/llvm-3.1/include/llvm/Support/TargetRegistry.h:395:20: note:   candidate expects 5 arguments, 3 provided
        make[4]: *** [gallivm/lp_bld_debug.o] Fehler 1
        make[4]: Leaving directory `/src/mesa/build/dri/src/gallium/auxiliary'
        make[3]: *** [default] Fehler 1
        make[3]: Leaving directory `/src/mesa/build/dri/src/gallium'
        make[2]: *** [subdirs] Fehler 1
        make[2]: Leaving directory `/src/mesa/build/dri/src'
        make[1]: *** [default] Fehler 1
        make[1]: Leaving directory `/src/mesa/build/dri'
        make: *** [debian/stamp/i486-linux-gnu-build-dri] Fehler 2
        make: *** Warte auf noch nicht beendete Prozesse...
        […]

2. Any hints on how to solve that?

3. Additionally in the thread of #677886 [1], Michael Dänzer proposed
the following packages.

        Am Donnerstag, den 21.06.2012, 10:53 +0200 schrieb Michel Dänzer:
        
        > Note that libXvMC* are for XvMC, which is a different API than VDPAU. It
        > doesn't really make sense to put them in a package whose name contains
        > 'vdpau'. Similar for 'libgl1', as this has nothing to do with OpenGL.
        > Maybe something like 'libxvmc1-gallium' and 'libvdpau1-gallium'? 

Since I clearly have no clue about that all, it would be great if you
could decide on one, before this gets applied.

4. Lastly, should the AMD DDX(?) driver somehow depend on these new
packages?


Thanks,

Paul


[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=677886
[2] https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1002224
[3] http://anonscm.debian.org/gitweb/?p=pkg-xorg/lib/mesa.git;a=commitdiff;h=04d0857389f40992c7cfc6115c077c0a78f8a9b7;hp=22c26395810e314a9609431bad58c58895c46632
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Fri, 22 Jun 2012 12:54:02 GMT) (full text, mbox, link).


Acknowledgement sent to Michel Dänzer <daenzer@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Fri, 22 Jun 2012 12:54:06 GMT) (full text, mbox, link).


Message #60 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Michel Dänzer <daenzer@debian.org>
To: Paul Menzel <pm.debian@googlemail.com>, 656719@bugs.debian.org
Cc: Fabio Pedretti <fabio.ped@libero.it>
Subject: Re: Bug#656719: Please provide xvmc and vdpau Gallium3D video acceleration drivers (libg3dvl-mesa package)
Date: Fri, 22 Jun 2012 14:51:37 +0200
On Fre, 2012-06-22 at 14:29 +0200, Paul Menzel wrote: 
> 
>         $ sudo aptitude install llvm # currently depends on LLVM 3.1

In general, build dependencies are on *-dev packages. The mesa source
package already build-depends on llvm-2.9-dev on some architectures, is
that not enough?


> 4. Lastly, should the AMD DDX(?) driver somehow depend on these new
> packages?

Maybe in Suggests:, don't think anything more makes sense.


-- 
Earthling Michel Dänzer           |                   http://www.amd.com
Libre software enthusiast         |          Debian, X and DRI developer




Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Fri, 22 Jun 2012 21:03:04 GMT) (full text, mbox, link).


Acknowledgement sent to Paul Menzel <pm.debian@googlemail.com>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Fri, 22 Jun 2012 21:03:04 GMT) (full text, mbox, link).


Message #65 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Paul Menzel <pm.debian@googlemail.com>
To: Michel Dänzer <daenzer@debian.org>
Cc: 656719@bugs.debian.org, Fabio Pedretti <fabio.ped@libero.it>
Subject: Re: Bug#656719: Please provide xvmc and vdpau Gallium3D video acceleration drivers (libg3dvl-mesa package)
Date: Fri, 22 Jun 2012 22:59:37 +0200
[Message part 1 (text/plain, inline)]
Am Freitag, den 22.06.2012, 14:51 +0200 schrieb Michel Dänzer:
> On Fre, 2012-06-22 at 14:29 +0200, Paul Menzel wrote: 
> > 
> >         $ sudo aptitude install llvm # currently depends on LLVM 3.1
> 
> In general, build dependencies are on *-dev packages. The mesa source
> package already build-depends on llvm-2.9-dev on some architectures, is
> that not enough?

Well it looks like LLVM compiler is needed and GCC is not enough.

        $ more configure.ac
        […]
        gallium_require_llvm() {
            if test "x$MESA_LLVM" = x0; then
                case "$host_cpu" in
                i*86|x86_64) AC_MSG_ERROR([LLVM is required to build $1 on x86 and x86_64]);;
                esac
            fi
        }
        […]

> > 4. Lastly, should the AMD DDX(?) driver somehow depend on these new
> > packages?
> 
> Maybe in Suggests:, don't think anything more makes sense.

Ok, I guess I can make such a patch and send it in after this problem is
solved.


Thanks,

Paul
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Fri, 22 Jun 2012 21:27:11 GMT) (full text, mbox, link).


Acknowledgement sent to Julien Cristau <jcristau@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Fri, 22 Jun 2012 21:27:11 GMT) (full text, mbox, link).


Message #70 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Julien Cristau <jcristau@debian.org>
To: Paul Menzel <pm.debian@googlemail.com>, 656719@bugs.debian.org
Cc: Michel Dänzer <daenzer@debian.org>, Fabio Pedretti <fabio.ped@libero.it>
Subject: Re: Bug#656719: Please provide xvmc and vdpau Gallium3D video acceleration drivers (libg3dvl-mesa package)
Date: Fri, 22 Jun 2012 23:18:43 +0200
[Message part 1 (text/plain, inline)]
On Fri, Jun 22, 2012 at 22:59:37 +0200, Paul Menzel wrote:

> Well it looks like LLVM compiler is needed and GCC is not enough.
> 
>         $ more configure.ac
>         […]
>         gallium_require_llvm() {
>             if test "x$MESA_LLVM" = x0; then
>                 case "$host_cpu" in
>                 i*86|x86_64) AC_MSG_ERROR([LLVM is required to build $1 on x86 and x86_64]);;
>                 esac
>             fi
>         }
>         […]
> 
Read again.  In particular what MESA_LLVM means.  Hint: it has nothing
to do with what compiler is used.

Cheers,
Julien
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Fri, 22 Jun 2012 21:45:08 GMT) (full text, mbox, link).


Acknowledgement sent to Paul Menzel <pm.debian@googlemail.com>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Fri, 22 Jun 2012 21:45:10 GMT) (full text, mbox, link).


Message #75 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Paul Menzel <pm.debian@googlemail.com>
To: Julien Cristau <jcristau@debian.org>
Cc: 656719@bugs.debian.org, Michel Dänzer <daenzer@debian.org>, Fabio Pedretti <fabio.ped@libero.it>
Subject: Re: Bug#656719: Please provide xvmc and vdpau Gallium3D video acceleration drivers (libg3dvl-mesa package)
Date: Fri, 22 Jun 2012 23:40:59 +0200
[Message part 1 (text/plain, inline)]
Am Freitag, den 22.06.2012, 23:18 +0200 schrieb Julien Cristau:
> On Fri, Jun 22, 2012 at 22:59:37 +0200, Paul Menzel wrote:
> 
> > Well it looks like LLVM compiler is needed and GCC is not enough.
> > 
> >         $ more configure.ac
> >         […]
> >         gallium_require_llvm() {
> >             if test "x$MESA_LLVM" = x0; then
> >                 case "$host_cpu" in
> >                 i*86|x86_64) AC_MSG_ERROR([LLVM is required to build $1 on x86 and x86_64]);;
> >                 esac
> >             fi
> >         }
> >         […]
>
> Read again.  In particular what MESA_LLVM means.  Hint: it has nothing
> to do with what compiler is used.

Strange. `dpkg-buildpackage` really aborted with this error. Doing
`aptitude install llvm` which also installed the following packages

[INSTALLIEREN, ABHÄNGIGKEITEN] llvm-3.1:i386
[INSTALLIEREN, ABHÄNGIGKEITEN] llvm-3.1-dev:i386
[INSTALLIEREN, ABHÄNGIGKEITEN] llvm-3.1-runtime:i386
[INSTALLIEREN, ABHÄNGIGKEITEN] llvm-runtime:i386

and executing `dpkg-buildpackage again solved this issue for me.

Looking at the definition of `MESA_LLVM` it checks for `llvm-config`

        if test "x$enable_gallium_llvm" = xyes; then
            AC_PATH_PROG([LLVM_CONFIG], [llvm-config], [no])

            if test "x$LLVM_CONFIG" != xno; then
        	LLVM_VERSION=`$LLVM_CONFIG --version | sed 's/svn.*//g'`
        	LLVM_CFLAGS=`$LLVM_CONFIG --cppflags|sed -e 's/-DNDEBUG\>//g' -e 's/-pedantic//g'`
        	LLVM_LIBS="`$LLVM_CONFIG --libs`"

        	LLVM_LDFLAGS=`$LLVM_CONFIG --ldflags`
        	DEFINES="$DEFINES -D__STDC_CONSTANT_MACROS"
        	MESA_LLVM=1
            else
        	MESA_LLVM=0
            fi
        else
            MESA_LLVM=0
        fi

which is only in package `llvm-3.1`.

        $ dpkg -S llvm-config
        llvm-3.1: /usr/lib/llvm-3.1/bin/llvm-config
        llvm-3.1-dev: /usr/lib/llvm-3.1/include/llvm/Config/llvm-config.h
        llvm-2.9: /usr/bin/llvm-config-2.9
        llvm-2.9-dev: /usr/lib/llvm-2.9/include/llvm/Config/llvm-config.h
        llvm-3.1: /usr/share/man/man1/llvm-config-3.1.1.gz
        llvm: /usr/share/man/man1/llvm-config.1.gz
        llvm-3.1: /usr/bin/llvm-config-3.1
        llvm-2.9: /usr/lib/llvm-2.9/bin/llvm-config
        llvm: /usr/bin/llvm-config
        llvm-2.9: /usr/share/man/man1/llvm-config-2.9.1.gz

In llvm-2.9 it is named llvm-config-2.9.1 and therefore is not picked up
I guess.

        $ ls -l /usr/bin/llvm-config
        lrwxrwxrwx 1 root root 31 Jun 22 00:25 /usr/bin/llvm-config -> ../lib/llvm-3.1/bin/llvm-config
        $ ls -l /usr/lib/llvm-3.1/bin/llvm-config 
        -rwxr-xr-x 1 root root 237356 Mai 21 14:14 /usr/lib/llvm-3.1/bin/llvm-config

But being a symlink it should have pointed to the 2.9 version before the installation.

        $ ls -l /usr/lib/llvm-2.9/bin/llvm-config 
        -rwxr-xr-x 1 root root 24058 Mai 20 16:39 /usr/lib/llvm-2.9/bin/llvm-config

So I am not sure what went wrong here. One idea might be, that to get
these symlinks is to have `llvm` installed.

        $ dpkg -L llvm
        /.
        /usr
        /usr/bin
        /usr/share
        /usr/share/man
        /usr/share/man/man1
        /usr/share/doc
        /usr/bin/llvm-extract
        /usr/bin/llc
        /usr/bin/llvm-link
        /usr/bin/llvm-nm
        /usr/bin/llvm-dis
        /usr/bin/llvm-bcanalyzer
        /usr/bin/llvm-ld
        /usr/bin/opt
        /usr/bin/llvmc
        /usr/bin/llvm-ar
        /usr/bin/llvm-ranlib
        /usr/bin/llvm-as
        /usr/bin/bugpoint
        /usr/bin/llvm-prof
        /usr/bin/tblgen
        /usr/bin/llvm-config
        /usr/share/man/man1/llvm-nm.1.gz
        /usr/share/man/man1/tblgen.1.gz
        /usr/share/man/man1/llvmc.1.gz
        /usr/share/man/man1/llvm-config.1.gz
        /usr/share/man/man1/llvm-extract.1.gz
        /usr/share/man/man1/llvmgxx.1.gz
        /usr/share/man/man1/llvm-prof.1.gz
        /usr/share/man/man1/llvm-ld.1.gz
        /usr/share/man/man1/llc.1.gz
        /usr/share/man/man1/opt.1.gz
        /usr/share/man/man1/llvm-ar.1.gz
        /usr/share/man/man1/lit.1.gz
        /usr/share/man/man1/llvm-dis.1.gz
        /usr/share/man/man1/llvm-as.1.gz
        /usr/share/man/man1/llvmgcc.1.gz
        /usr/share/man/man1/llvm-bcanalyzer.1.gz
        /usr/share/man/man1/llvm-link.1.gz
        /usr/share/man/man1/bugpoint.1.gz
        /usr/share/man/man1/llvm-ranlib.1.gz
        /usr/share/doc/llvm


Thanks,

Paul
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Fri, 22 Jun 2012 21:45:12 GMT) (full text, mbox, link).


Acknowledgement sent to Paul Menzel <pm.debian@googlemail.com>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Fri, 22 Jun 2012 21:45:12 GMT) (full text, mbox, link).


Message #80 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Paul Menzel <pm.debian@googlemail.com>
To: Julien Cristau <jcristau@debian.org>
Cc: 656719@bugs.debian.org, Michel Dänzer <daenzer@debian.org>, Fabio Pedretti <fabio.ped@libero.it>
Subject: Re: Bug#656719: Please provide xvmc and vdpau Gallium3D video acceleration drivers (libg3dvl-mesa package)
Date: Fri, 22 Jun 2012 23:43:39 +0200
[Message part 1 (text/plain, inline)]
Am Freitag, den 22.06.2012, 23:40 +0200 schrieb Paul Menzel:
> Am Freitag, den 22.06.2012, 23:18 +0200 schrieb Julien Cristau:
> > On Fri, Jun 22, 2012 at 22:59:37 +0200, Paul Menzel wrote:
> > 
> > > Well it looks like LLVM compiler is needed and GCC is not enough.
> > > 
> > >         $ more configure.ac
> > >         […]
> > >         gallium_require_llvm() {
> > >             if test "x$MESA_LLVM" = x0; then
> > >                 case "$host_cpu" in
> > >                 i*86|x86_64) AC_MSG_ERROR([LLVM is required to build $1 on x86 and x86_64]);;
> > >                 esac
> > >             fi
> > >         }
> > >         […]
> >
> > Read again.  In particular what MESA_LLVM means.  Hint: it has nothing
> > to do with what compiler is used.
> 
> Strange. `dpkg-buildpackage` really aborted with this error. Doing
> `aptitude install llvm` which also installed the following packages
> 
> [INSTALLIEREN, ABHÄNGIGKEITEN] llvm-3.1:i386
> [INSTALLIEREN, ABHÄNGIGKEITEN] llvm-3.1-dev:i386
> [INSTALLIEREN, ABHÄNGIGKEITEN] llvm-3.1-runtime:i386
> [INSTALLIEREN, ABHÄNGIGKEITEN] llvm-runtime:i386
> 
> and executing `dpkg-buildpackage again solved this issue for me.
> 
> Looking at the definition of `MESA_LLVM` it checks for `llvm-config`
> 
>         if test "x$enable_gallium_llvm" = xyes; then
>             AC_PATH_PROG([LLVM_CONFIG], [llvm-config], [no])
> 
>             if test "x$LLVM_CONFIG" != xno; then
>         	LLVM_VERSION=`$LLVM_CONFIG --version | sed 's/svn.*//g'`
>         	LLVM_CFLAGS=`$LLVM_CONFIG --cppflags|sed -e 's/-DNDEBUG\>//g' -e 's/-pedantic//g'`
>         	LLVM_LIBS="`$LLVM_CONFIG --libs`"
> 
>         	LLVM_LDFLAGS=`$LLVM_CONFIG --ldflags`
>         	DEFINES="$DEFINES -D__STDC_CONSTANT_MACROS"
>         	MESA_LLVM=1
>             else
>         	MESA_LLVM=0
>             fi
>         else
>             MESA_LLVM=0
>         fi
> 
> which is only in package `llvm-3.1`.
> 
>         $ dpkg -S llvm-config
>         llvm-3.1: /usr/lib/llvm-3.1/bin/llvm-config
>         llvm-3.1-dev: /usr/lib/llvm-3.1/include/llvm/Config/llvm-config.h
>         llvm-2.9: /usr/bin/llvm-config-2.9
>         llvm-2.9-dev: /usr/lib/llvm-2.9/include/llvm/Config/llvm-config.h
>         llvm-3.1: /usr/share/man/man1/llvm-config-3.1.1.gz
>         llvm: /usr/share/man/man1/llvm-config.1.gz
>         llvm-3.1: /usr/bin/llvm-config-3.1
>         llvm-2.9: /usr/lib/llvm-2.9/bin/llvm-config
>         llvm: /usr/bin/llvm-config
>         llvm-2.9: /usr/share/man/man1/llvm-config-2.9.1.gz
> 
> In llvm-2.9 it is named llvm-config-2.9.1 and therefore is not picked up
> I guess.
> 
>         $ ls -l /usr/bin/llvm-config
>         lrwxrwxrwx 1 root root 31 Jun 22 00:25 /usr/bin/llvm-config -> ../lib/llvm-3.1/bin/llvm-config
>         $ ls -l /usr/lib/llvm-3.1/bin/llvm-config 
>         -rwxr-xr-x 1 root root 237356 Mai 21 14:14 /usr/lib/llvm-3.1/bin/llvm-config
> 
> But being a symlink it should have pointed to the 2.9 version before the installation.
> 
>         $ ls -l /usr/lib/llvm-2.9/bin/llvm-config 
>         -rwxr-xr-x 1 root root 24058 Mai 20 16:39 /usr/lib/llvm-2.9/bin/llvm-config
> 
> So I am not sure what went wrong here. One idea might be, that to get
> these symlinks is to have `llvm` installed.
> 
>         $ dpkg -L llvm
>         /.
>         /usr
>         /usr/bin
>         /usr/share
>         /usr/share/man
>         /usr/share/man/man1
>         /usr/share/doc
>         /usr/bin/llvm-extract
>         /usr/bin/llc
>         /usr/bin/llvm-link
>         /usr/bin/llvm-nm
>         /usr/bin/llvm-dis
>         /usr/bin/llvm-bcanalyzer
>         /usr/bin/llvm-ld
>         /usr/bin/opt
>         /usr/bin/llvmc
>         /usr/bin/llvm-ar
>         /usr/bin/llvm-ranlib
>         /usr/bin/llvm-as
>         /usr/bin/bugpoint
>         /usr/bin/llvm-prof
>         /usr/bin/tblgen
>         /usr/bin/llvm-config
>         /usr/share/man/man1/llvm-nm.1.gz
>         /usr/share/man/man1/tblgen.1.gz
>         /usr/share/man/man1/llvmc.1.gz
>         /usr/share/man/man1/llvm-config.1.gz
>         /usr/share/man/man1/llvm-extract.1.gz
>         /usr/share/man/man1/llvmgxx.1.gz
>         /usr/share/man/man1/llvm-prof.1.gz
>         /usr/share/man/man1/llvm-ld.1.gz
>         /usr/share/man/man1/llc.1.gz
>         /usr/share/man/man1/opt.1.gz
>         /usr/share/man/man1/llvm-ar.1.gz
>         /usr/share/man/man1/lit.1.gz
>         /usr/share/man/man1/llvm-dis.1.gz
>         /usr/share/man/man1/llvm-as.1.gz
>         /usr/share/man/man1/llvmgcc.1.gz
>         /usr/share/man/man1/llvm-bcanalyzer.1.gz
>         /usr/share/man/man1/llvm-link.1.gz
>         /usr/share/man/man1/bugpoint.1.gz
>         /usr/share/man/man1/llvm-ranlib.1.gz
>         /usr/share/doc/llvm

So the build dependency should be on `llvm-dev` which pulls in `llvm`
with `llvm-config` the configure script is looking for.


Thanks,

Paul
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Fri, 22 Jun 2012 21:57:07 GMT) (full text, mbox, link).


Acknowledgement sent to Cyril Brulebois <kibi@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Fri, 22 Jun 2012 21:57:08 GMT) (full text, mbox, link).


Message #85 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Cyril Brulebois <kibi@debian.org>
To: Paul Menzel <pm.debian@googlemail.com>, 656719@bugs.debian.org
Cc: Julien Cristau <jcristau@debian.org>, Michel Dänzer <daenzer@debian.org>, Fabio Pedretti <fabio.ped@libero.it>
Subject: Re: Bug#656719: Please provide xvmc and vdpau Gallium3D video acceleration drivers (libg3dvl-mesa package)
Date: Fri, 22 Jun 2012 23:52:58 +0200
[Message part 1 (text/plain, inline)]
Paul Menzel <pm.debian@googlemail.com> (22/06/2012):
> So the build dependency should be on `llvm-dev` which pulls in `llvm`
> with `llvm-config` the configure script is looking for.

13-llvm-config-pick-a-version.diff disagrees.

Mraw,
KiBi.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Fri, 22 Jun 2012 22:09:03 GMT) (full text, mbox, link).


Acknowledgement sent to Paul Menzel <pm.debian@googlemail.com>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Fri, 22 Jun 2012 22:09:03 GMT) (full text, mbox, link).


Message #90 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Paul Menzel <pm.debian@googlemail.com>
To: Cyril Brulebois <kibi@debian.org>
Cc: 656719@bugs.debian.org, Julien Cristau <jcristau@debian.org>, Michel Dänzer <daenzer@debian.org>, Fabio Pedretti <fabio.ped@libero.it>
Subject: Re: Bug#656719: Please provide xvmc and vdpau Gallium3D video acceleration drivers (libg3dvl-mesa package)
Date: Sat, 23 Jun 2012 00:06:38 +0200
[Message part 1 (text/plain, inline)]
Am Freitag, den 22.06.2012, 23:52 +0200 schrieb Cyril Brulebois:
> Paul Menzel <pm.debian@googlemail.com> (22/06/2012):
> > So the build dependency should be on `llvm-dev` which pulls in `llvm`
> > with `llvm-config` the configure script is looking for.
> 
> 13-llvm-config-pick-a-version.diff disagrees.

Interesting. `configure.ac` in my current build directory does not have
that patch applied. So it could be a result of the option `-nc`

    $ dpkg-buildpackage -us -uc -B -j2 -nc

which does not clean the directory before the build again. But all
patches from `debian/patches` should have been applied.

But I do not know and this is just a guess. I will try to reproduce the
issue tomorrow and clean the working directory before. Using
`llvm-2.9-dev` could also fix the build error I got.


Thanks,

Paul
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Sat, 23 Jun 2012 11:48:03 GMT) (full text, mbox, link).


Acknowledgement sent to Paul Menzel <pm.debian@googlemail.com>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Sat, 23 Jun 2012 11:48:07 GMT) (full text, mbox, link).


Message #95 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Paul Menzel <pm.debian@googlemail.com>
To: Cyril Brulebois <kibi@debian.org>
Cc: 656719@bugs.debian.org, Julien Cristau <jcristau@debian.org>, Michel Dänzer <daenzer@debian.org>, Fabio Pedretti <fabio.ped@libero.it>
Subject: Re: Bug#656719: ln: failed to create symbolic link `build/dri/i386-linux-gnu/gallium/XvMCConfig': File exists (was: Please provide xvmc and vdpau Gallium3D video acceleration drivers (libg3dvl-mesa package))
Date: Sat, 23 Jun 2012 13:43:26 +0200
[Message part 1 (text/plain, inline)]
Am Samstag, den 23.06.2012, 00:06 +0200 schrieb Paul Menzel:
> Am Freitag, den 22.06.2012, 23:52 +0200 schrieb Cyril Brulebois:
> > Paul Menzel <pm.debian@googlemail.com> (22/06/2012):
> > > So the build dependency should be on `llvm-dev` which pulls in `llvm`
> > > with `llvm-config` the configure script is looking for.
> > 
> > 13-llvm-config-pick-a-version.diff disagrees.
> 
> Interesting. `configure.ac` in my current build directory does not have
> that patch applied. So it could be a result of the option `-nc`
> 
>     $ dpkg-buildpackage -us -uc -B -j2 -nc
> 
> which does not clean the directory before the build again. But all
> patches from `debian/patches` should have been applied.
> 
> But I do not know and this is just a guess. I will try to reproduce the
> issue tomorrow and clean the working directory before. Using
> `llvm-2.9-dev` could also fix the build error I got.

Ok, although I always used `dpkg-buildpackage` with `-nc` something went
wrong.

        $ LANG= dpkg-buildpackage -us -uc -B -j2
        dpkg-buildpackage: source package mesa
        dpkg-buildpackage: source version 8.0.3-2
        dpkg-buildpackage: source changed by Timo <timo.jyrinki@iki.fi>
        dpkg-buildpackage: host architecture i386
         dpkg-source --before-build mesa
         fakeroot debian/rules clean
        QUILT_PATCHES=debian/patches \
        		quilt --quiltrc /dev/null pop -a -R || test $? = 2
        Patch 13-llvm-config-pick-a-version.diff does not remove cleanly (refresh it or enforce with -f)
        make: *** [unpatch] Error 1
        dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit status 2

Thinking about it, I did `git reset --hard origin/debian-unstable`. That
probably reset the patched files too and `dpkg-buildpackage -n` does not
check that.

Manually fixing this by applying some patches manually,

    $ debian/rules clean

worked and I started the next try. Running

    $ dpkg-buildpackage -us -uc -B -j2

`configure.ac` was patched to pick up llvm-config-2.9 and the build
error, I reported, is gone now too, since llvm-2.9-dev is used instead
of llvm-3.1-dev.

I am still getting the following error. Hopefully resolving this, I will
get the packages.

        $ dpkg-buildpackage -us -uc -B -j2
        make[1]: Leaving directory `/opt/src/mesa/build/swx11+glu-i386-i686'
        >debian/stamp/i486-linux-gnu-build-swx11+glu-i386-i686
        >build-stamp
        # XvMCConfig configuration file:
        ln -s /etc/X11/XvMCConfig build/dri/i386-linux-gnu/gallium/XvMCConfig
         fakeroot debian/rules binary-arch
        # XvMCConfig configuration file:
        ln -s /etc/X11/XvMCConfig build/dri/i386-linux-gnu/gallium/XvMCConfig
        ln: failed to create symbolic link `build/dri/i386-linux-gnu/gallium/XvMCConfig': File exists
        make: *** [build] Error 1
        dpkg-buildpackage: error: fakeroot debian/rules binary-arch gave error exit status 2

Removing that file does not help.

        $ rm build/dri/i386-linux-gnu/gallium/XvMCConfig
        $ dpkg-buildpackage -us -uc -B -j2 -nc
        dpkg-buildpackage: source package mesa
        dpkg-buildpackage: source version 8.0.3-2
        dpkg-buildpackage: source changed by Timo <timo.jyrinki@iki.fi>
        dpkg-buildpackage: host architecture i386
         dpkg-source --before-build mesa
        dpkg-buildpackage: warning: debian/rules must be updated to support the 'build-arch' and 'build-indep' targets (at least 'build-arch' seems to be missing)
         debian/rules build
        # XvMCConfig configuration file:
        ln -s /etc/X11/XvMCConfig build/dri/i386-linux-gnu/gallium/XvMCConfig
         fakeroot debian/rules binary-arch
        # XvMCConfig configuration file:
        ln -s /etc/X11/XvMCConfig build/dri/i386-linux-gnu/gallium/XvMCConfig
        ln: failed to create symbolic link `build/dri/i386-linux-gnu/gallium/XvMCConfig': File exists
        make: *** [build] Error 1
        dpkg-buildpackage: error: fakeroot debian/rules binary-arch gave error exit status 2

Any ideas? It is strange that the same output is there twice. Maybe this
is due to `-j2`?


Thanks,

Paul
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Sat, 23 Jun 2012 13:00:06 GMT) (full text, mbox, link).


Acknowledgement sent to Paul Menzel <pm.debian@googlemail.com>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Sat, 23 Jun 2012 13:00:06 GMT) (full text, mbox, link).


Message #100 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Paul Menzel <pm.debian@googlemail.com>
To: Cyril Brulebois <kibi@debian.org>
Cc: 656719@bugs.debian.org, Julien Cristau <jcristau@debian.org>, Michel Dänzer <daenzer@debian.org>, Fabio Pedretti <fabio.ped@libero.it>
Subject: Re: Bug#656719: ln: failed to create symbolic link `build/dri/i386-linux-gnu/gallium/XvMCConfig': File exists
Date: Sat, 23 Jun 2012 14:58:03 +0200
[Message part 1 (text/plain, inline)]
Am Samstag, den 23.06.2012, 13:43 +0200 schrieb Paul Menzel:
> Am Samstag, den 23.06.2012, 00:06 +0200 schrieb Paul Menzel:
> > Am Freitag, den 22.06.2012, 23:52 +0200 schrieb Cyril Brulebois:
> > > Paul Menzel <pm.debian@googlemail.com> (22/06/2012):
> > > > So the build dependency should be on `llvm-dev` which pulls in `llvm`
> > > > with `llvm-config` the configure script is looking for.
> > > 
> > > 13-llvm-config-pick-a-version.diff disagrees.
> > 
> > Interesting. `configure.ac` in my current build directory does not have
> > that patch applied. So it could be a result of the option `-nc`
> > 
> >     $ dpkg-buildpackage -us -uc -B -j2 -nc
> > 
> > which does not clean the directory before the build again. But all
> > patches from `debian/patches` should have been applied.
> > 
> > But I do not know and this is just a guess. I will try to reproduce the
> > issue tomorrow and clean the working directory before. Using
> > `llvm-2.9-dev` could also fix the build error I got.
> 
> Ok, although I always used `dpkg-buildpackage` with `-nc` something went
> wrong.
> 
>         $ LANG= dpkg-buildpackage -us -uc -B -j2
>         dpkg-buildpackage: source package mesa
>         dpkg-buildpackage: source version 8.0.3-2
>         dpkg-buildpackage: source changed by Timo <timo.jyrinki@iki.fi>
>         dpkg-buildpackage: host architecture i386
>          dpkg-source --before-build mesa
>          fakeroot debian/rules clean
>         QUILT_PATCHES=debian/patches \
>         		quilt --quiltrc /dev/null pop -a -R || test $? = 2
>         Patch 13-llvm-config-pick-a-version.diff does not remove cleanly (refresh it or enforce with -f)
>         make: *** [unpatch] Error 1
>         dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit status 2
> 
> Thinking about it, I did `git reset --hard origin/debian-unstable`. That
> probably reset the patched files too and `dpkg-buildpackage -n` does not
> check that.
> 
> Manually fixing this by applying some patches manually,
> 
>     $ debian/rules clean
> 
> worked and I started the next try. Running
> 
>     $ dpkg-buildpackage -us -uc -B -j2
> 
> `configure.ac` was patched to pick up llvm-config-2.9 and the build
> error, I reported, is gone now too, since llvm-2.9-dev is used instead
> of llvm-3.1-dev.
> 
> I am still getting the following error. Hopefully resolving this, I will
> get the packages.
> 
>         $ dpkg-buildpackage -us -uc -B -j2
>         make[1]: Leaving directory `/opt/src/mesa/build/swx11+glu-i386-i686'
>         >debian/stamp/i486-linux-gnu-build-swx11+glu-i386-i686
>         >build-stamp
>         # XvMCConfig configuration file:
>         ln -s /etc/X11/XvMCConfig build/dri/i386-linux-gnu/gallium/XvMCConfig
>          fakeroot debian/rules binary-arch
>         # XvMCConfig configuration file:
>         ln -s /etc/X11/XvMCConfig build/dri/i386-linux-gnu/gallium/XvMCConfig
>         ln: failed to create symbolic link `build/dri/i386-linux-gnu/gallium/XvMCConfig': File exists
>         make: *** [build] Error 1
>         dpkg-buildpackage: error: fakeroot debian/rules binary-arch gave error exit status 2
> 
> Removing that file does not help.
> 
>         $ rm build/dri/i386-linux-gnu/gallium/XvMCConfig
>         $ dpkg-buildpackage -us -uc -B -j2 -nc
>         dpkg-buildpackage: source package mesa
>         dpkg-buildpackage: source version 8.0.3-2
>         dpkg-buildpackage: source changed by Timo <timo.jyrinki@iki.fi>
>         dpkg-buildpackage: host architecture i386
>          dpkg-source --before-build mesa
>         dpkg-buildpackage: warning: debian/rules must be updated to support the 'build-arch' and 'build-indep' targets (at least 'build-arch' seems to be missing)
>          debian/rules build
>         # XvMCConfig configuration file:
>         ln -s /etc/X11/XvMCConfig build/dri/i386-linux-gnu/gallium/XvMCConfig
>          fakeroot debian/rules binary-arch
>         # XvMCConfig configuration file:
>         ln -s /etc/X11/XvMCConfig build/dri/i386-linux-gnu/gallium/XvMCConfig
>         ln: failed to create symbolic link `build/dri/i386-linux-gnu/gallium/XvMCConfig': File exists
>         make: *** [build] Error 1
>         dpkg-buildpackage: error: fakeroot debian/rules binary-arch gave error exit status 2
> 
> Any ideas? It is strange that the same output is there twice. Maybe this
> is due to `-j2`?

It is not that. Using `-j1` also fails.

        $ more debian/rules
        […]
        build: build-stamp
                # XvMCConfig configuration file:
                ln -s /etc/X11/XvMCConfig build/dri/$(DEB_HOST_MULTIARCH)/gallium/XvMCConfig

Removing that `ln -s` line makes this error go away. I do not understand
how in the build `/etc/X11` of the build host seems to be used.
Especially since this file is already available in package `libxvmc1`.

        $ dpkg -S /etc/X11/XvMCConfig
        libxvmc1: /etc/X11/XvMCConfig

Any ideas what to do. Depend on `libxvmc1` and do not ship that file in
`libg3dvl-mesa`?

Now I get the next error.

        dh_installexamples -s
        # Classic DRI and Gallium DRI are mixed up together here
        # Remove the whole tree to avoid false-positives in --list-missing, and
        # install the right files manually.
        rm -r debian/tmp/dri/usr/lib/i386-linux-gnu/dri
        # Also get rid of other files which aren't installed. Do not
        # use -f to ensure we notice disappearing files:
        set -e; for file in dri/usr/include/GL/glu.h dri/usr/include/GL/glu_mangle.h dri/usr/include/GL/osmesa.h dri/usr/include/GL/vms_x_fix.h dri/usr/include/GL/wglext.h dri/usr/include/GL/wmesa.h dri/usr/lib/*/libGL.so dri/usr/lib/*/pkgconfig/gl.pc usr/include/GL/glext.h usr/include/GL/gl.h usr/include/GL/gl_mangle.h usr/include/GL/glxext.h usr/include/GL/glx.h usr/include/GL/glx_mangle.h usr/include/GL/vms_x_fix.h usr/include/GL/wglext.h usr/include/GL/wmesa.h dri/usr/lib/*/libXvMC* dri/usr/*/libXvMC* dri/usr/lib/*/vdpau/ usr/lib/*/i686/cmov/libGL.so usr/lib/*/i686/cmov/libGLU.so usr/lib/*/i686/cmov/libGLU.so.1 usr/lib/*/i686/cmov/libGLU.so.1.* usr/lib/*/i686/cmov/libOSMesa.so usr/lib/*/i686/cmov/libOSMesa.so.6 usr/lib/*/i686/cmov/libOSMesa.so.6.* usr/lib/*/i686/cmov/pkgconfig/glu.pc usr/lib/*/i686/cmov/pkgconfig/gl.pc usr/lib/*/i686/cmov/pkgconfig/osmesa.pc; do rm -r debian/tmp/$file; done
        rm: cannot remove `debian/tmp/dri/usr/lib/*/libXvMC*': No such file or directory
        make: *** [binary-arch] Error 1
        dpkg-buildpackage: error: fakeroot debian/rules binary-arch gave error exit status 2


Thanks,

Paul
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Sun, 24 Jun 2012 16:09:17 GMT) (full text, mbox, link).


Acknowledgement sent to Paul Menzel <pm.debian@googlemail.com>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Sun, 24 Jun 2012 16:09:17 GMT) (full text, mbox, link).


Message #105 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Paul Menzel <pm.debian@googlemail.com>
To: Cyril Brulebois <kibi@debian.org>
Cc: 656719@bugs.debian.org, Julien Cristau <jcristau@debian.org>, Michel Dänzer <daenzer@debian.org>, Fabio Pedretti <fabio.ped@libero.it>
Subject: Re: Bug#656719: ln: failed to create symbolic link `build/dri/i386-linux-gnu/gallium/XvMCConfig': File exists
Date: Sun, 24 Jun 2012 17:56:44 +0200
[Message part 1 (text/plain, inline)]
Am Samstag, den 23.06.2012, 14:58 +0200 schrieb Paul Menzel:
> Am Samstag, den 23.06.2012, 13:43 +0200 schrieb Paul Menzel:
> > Am Samstag, den 23.06.2012, 00:06 +0200 schrieb Paul Menzel:
> > > Am Freitag, den 22.06.2012, 23:52 +0200 schrieb Cyril Brulebois:
> > > > Paul Menzel <pm.debian@googlemail.com> (22/06/2012):
> > > > > So the build dependency should be on `llvm-dev` which pulls in `llvm`
> > > > > with `llvm-config` the configure script is looking for.
> > > > 
> > > > 13-llvm-config-pick-a-version.diff disagrees.
> > > 
> > > Interesting. `configure.ac` in my current build directory does not have
> > > that patch applied. So it could be a result of the option `-nc`
> > > 
> > >     $ dpkg-buildpackage -us -uc -B -j2 -nc
> > > 
> > > which does not clean the directory before the build again. But all
> > > patches from `debian/patches` should have been applied.
> > > 
> > > But I do not know and this is just a guess. I will try to reproduce the
> > > issue tomorrow and clean the working directory before. Using
> > > `llvm-2.9-dev` could also fix the build error I got.
> > 
> > Ok, although I always used `dpkg-buildpackage` with `-nc` something went
> > wrong.
> > 
> >         $ LANG= dpkg-buildpackage -us -uc -B -j2
> >         dpkg-buildpackage: source package mesa
> >         dpkg-buildpackage: source version 8.0.3-2
> >         dpkg-buildpackage: source changed by Timo <timo.jyrinki@iki.fi>
> >         dpkg-buildpackage: host architecture i386
> >          dpkg-source --before-build mesa
> >          fakeroot debian/rules clean
> >         QUILT_PATCHES=debian/patches \
> >         		quilt --quiltrc /dev/null pop -a -R || test $? = 2
> >         Patch 13-llvm-config-pick-a-version.diff does not remove cleanly (refresh it or enforce with -f)
> >         make: *** [unpatch] Error 1
> >         dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit status 2
> > 
> > Thinking about it, I did `git reset --hard origin/debian-unstable`. That
> > probably reset the patched files too and `dpkg-buildpackage -n` does not
> > check that.
> > 
> > Manually fixing this by applying some patches manually,
> > 
> >     $ debian/rules clean
> > 
> > worked and I started the next try. Running
> > 
> >     $ dpkg-buildpackage -us -uc -B -j2
> > 
> > `configure.ac` was patched to pick up llvm-config-2.9 and the build
> > error, I reported, is gone now too, since llvm-2.9-dev is used instead
> > of llvm-3.1-dev.
> > 
> > I am still getting the following error. Hopefully resolving this, I will
> > get the packages.
> > 
> >         $ dpkg-buildpackage -us -uc -B -j2
> >         make[1]: Leaving directory `/opt/src/mesa/build/swx11+glu-i386-i686'
> >         >debian/stamp/i486-linux-gnu-build-swx11+glu-i386-i686
> >         >build-stamp
> >         # XvMCConfig configuration file:
> >         ln -s /etc/X11/XvMCConfig build/dri/i386-linux-gnu/gallium/XvMCConfig
> >          fakeroot debian/rules binary-arch
> >         # XvMCConfig configuration file:
> >         ln -s /etc/X11/XvMCConfig build/dri/i386-linux-gnu/gallium/XvMCConfig
> >         ln: failed to create symbolic link `build/dri/i386-linux-gnu/gallium/XvMCConfig': File exists
> >         make: *** [build] Error 1
> >         dpkg-buildpackage: error: fakeroot debian/rules binary-arch gave error exit status 2
> > 
> > Removing that file does not help.
> > 
> >         $ rm build/dri/i386-linux-gnu/gallium/XvMCConfig
> >         $ dpkg-buildpackage -us -uc -B -j2 -nc
> >         dpkg-buildpackage: source package mesa
> >         dpkg-buildpackage: source version 8.0.3-2
> >         dpkg-buildpackage: source changed by Timo <timo.jyrinki@iki.fi>
> >         dpkg-buildpackage: host architecture i386
> >          dpkg-source --before-build mesa
> >         dpkg-buildpackage: warning: debian/rules must be updated to support the 'build-arch' and 'build-indep' targets (at least 'build-arch' seems to be missing)
> >          debian/rules build
> >         # XvMCConfig configuration file:
> >         ln -s /etc/X11/XvMCConfig build/dri/i386-linux-gnu/gallium/XvMCConfig
> >          fakeroot debian/rules binary-arch
> >         # XvMCConfig configuration file:
> >         ln -s /etc/X11/XvMCConfig build/dri/i386-linux-gnu/gallium/XvMCConfig
> >         ln: failed to create symbolic link `build/dri/i386-linux-gnu/gallium/XvMCConfig': File exists
> >         make: *** [build] Error 1
> >         dpkg-buildpackage: error: fakeroot debian/rules binary-arch gave error exit status 2
> > 
> > Any ideas? It is strange that the same output is there twice. Maybe this
> > is due to `-j2`?
> 
> It is not that. Using `-j1` also fails.
> 
>         $ more debian/rules
>         […]
>         build: build-stamp
>                 # XvMCConfig configuration file:
>                 ln -s /etc/X11/XvMCConfig build/dri/$(DEB_HOST_MULTIARCH)/gallium/XvMCConfig
> 
> Removing that `ln -s` line makes this error go away. I do not understand
> how in the build `/etc/X11` of the build host seems to be used.
> Especially since this file is already available in package `libxvmc1`.
> 
>         $ dpkg -S /etc/X11/XvMCConfig
>         libxvmc1: /etc/X11/XvMCConfig
> 
> Any ideas what to do. Depend on `libxvmc1` and do not ship that file in
> `libg3dvl-mesa`?
> 
> Now I get the next error.
> 
>         dh_installexamples -s
>         # Classic DRI and Gallium DRI are mixed up together here
>         # Remove the whole tree to avoid false-positives in --list-missing, and
>         # install the right files manually.
>         rm -r debian/tmp/dri/usr/lib/i386-linux-gnu/dri
>         # Also get rid of other files which aren't installed. Do not
>         # use -f to ensure we notice disappearing files:
>         set -e; for file in dri/usr/include/GL/glu.h dri/usr/include/GL/glu_mangle.h dri/usr/include/GL/osmesa.h dri/usr/include/GL/vms_x_fix.h dri/usr/include/GL/wglext.h dri/usr/include/GL/wmesa.h dri/usr/lib/*/libGL.so dri/usr/lib/*/pkgconfig/gl.pc usr/include/GL/glext.h usr/include/GL/gl.h usr/include/GL/gl_mangle.h usr/include/GL/glxext.h usr/include/GL/glx.h usr/include/GL/glx_mangle.h usr/include/GL/vms_x_fix.h usr/include/GL/wglext.h usr/include/GL/wmesa.h dri/usr/lib/*/libXvMC* dri/usr/*/libXvMC* dri/usr/lib/*/vdpau/ usr/lib/*/i686/cmov/libGL.so usr/lib/*/i686/cmov/libGLU.so usr/lib/*/i686/cmov/libGLU.so.1 usr/lib/*/i686/cmov/libGLU.so.1.* usr/lib/*/i686/cmov/libOSMesa.so usr/lib/*/i686/cmov/libOSMesa.so.6 usr/lib/*/i686/cmov/libOSMesa.so.6.* usr/lib/*/i686/cmov/pkgconfig/glu.pc usr/lib/*/i686/cmov/pkgconfig/gl.pc usr/lib/*/i686/cmov/pkgconfig/osmesa.pc; do rm -r debian/tmp/$file; done
>         rm: cannot remove `debian/tmp/dri/usr/lib/*/libXvMC*': No such file or directory
>         make: *** [binary-arch] Error 1
>         dpkg-buildpackage: error: fakeroot debian/rules binary-arch gave error exit status 2

Ok, dropping 

    dri/usr/lib/*/libXvMC* \

from `debian/not_installed` made it work for me.

I will attach three patches for RFC. I would be grateful for any
comments.


Thanks,

Paul
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Sun, 24 Jun 2012 16:09:19 GMT) (full text, mbox, link).


Acknowledgement sent to Paul Menzel <pm.debian@googlemail.com>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Sun, 24 Jun 2012 16:09:19 GMT) (full text, mbox, link).


Message #110 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Paul Menzel <pm.debian@googlemail.com>
To: Cyril Brulebois <kibi@debian.org>
Cc: 656719@bugs.debian.org, Julien Cristau <jcristau@debian.org>, Michel Dänzer <daenzer@debian.org>, Fabio Pedretti <fabio.ped@libero.it>
Subject: [RFC][PATCH v3 1/3] Add Gallium VDPAU and XvMC driver support (#656719)
Date: Sun, 24 Jun 2012 18:00:15 +0200
[Message part 1 (text/plain, inline)]
From: Fabio Pedretti <fabio.ped@libero.it>
Date: Sun, 29 Jan 2012 21:00:57 +0100

Since version 8.0 Mesa provides XvMC and VDPAU Gallium3D video
acceleration drivers.

Fabio’s patch sent to the Debian BTS is adapted to comment the `ln -s`
call not working on my system and removing

    dri/usr/lib/*/libXvMC* \

from `debian/not_installed`.

Closes: #656719

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=656719
--
TODO
1. Remove `/etc/XvMCConfig` which is under `/etc/X11/`.
---
 debian/changelog                |    7 +++++++
 debian/control                  |   22 ++++++++++++++++++++++
 debian/libg3dvl-mesa.install.in |    4 ++++
 debian/not-installed            |    4 +++-
 debian/rules                    |    5 ++++-
 5 files changed, 40 insertions(+), 2 deletions(-)
 create mode 100644 debian/libg3dvl-mesa.install.in

diff --git a/debian/changelog b/debian/changelog
index 0eb66a1..a6900df 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+mesa (8.0.3-2) UNRELEASED; urgency=low
+
+  * Enable Gallium VDPAU and XvMC driver support on at least
+    Radeon r300+ and r600+. (Closes: #656719) (LP: #1002224)
+
+ -- Fabio Pedretti <fabio.ped@libero.it>  Mon, 21 May 2012 12:46:40 +0300
+
 mesa (8.0.3-1) unstable; urgency=low
 
   [ Robert Hooker ]
diff --git a/debian/control b/debian/control
index ec59840..a9fcdd3 100644
--- a/debian/control
+++ b/debian/control
@@ -32,6 +32,8 @@ Build-Depends:
  bison,
  llvm-2.9-dev [amd64 i386 kfreebsd-amd64 kfreebsd-i386],
  libwayland-dev (>= 0.85.0) [linux-any],
+ libvdpau-dev (>= 0.4.1) [linux-any],
+ libxvmc-dev (>= 1.0.6) [linux-any],
 Vcs-Git: git://git.debian.org/git/pkg-xorg/lib/mesa
 Vcs-Browser: http://git.debian.org/?p=pkg-xorg/lib/mesa.git
 Homepage: http://mesa3d.sourceforge.net/
@@ -803,4 +805,24 @@ Description: Mesa OpenGL utility library -- development files
  For a complete description of GLU, please look at the libglu1-mesa
  package.
 
+Package: libg3dvl-mesa
+Section: libs
+Architecture: linux-any
+Depends:
+ ${shlibs:Depends},
+ ${misc:Depends},
+Description: xvmc and vdpau Gallium3D video acceleration drivers
+
+Package: libg3dvl-mesa-dbg
+Section: debug
+Priority: extra
+Architecture: linux-any
+Depends:
+ libg3dvl-mesa (= ${binary:Version}),
+ ${misc:Depends},
+Description: xvmc and vdpau Gallium3D video acceleration drivers
+ .
+ This package contains the debugging symbols for the g3dvl libraries.
+
+
 # vim: tw=0
diff --git a/debian/libg3dvl-mesa.install.in b/debian/libg3dvl-mesa.install.in
new file mode 100644
index 0000000..e013276
--- /dev/null
+++ b/debian/libg3dvl-mesa.install.in
@@ -0,0 +1,4 @@
+build/dri/${DEB_HOST_MULTIARCH}/gallium/libvdpau_* usr/lib/vdpau
+build/dri/${DEB_HOST_MULTIARCH}/gallium/libXvMC* usr/lib/dri
+build/dri/${DEB_HOST_MULTIARCH}/gallium/XvMCConfig usr/lib
+build/dri/${DEB_HOST_MULTIARCH}/gallium/XvMCConfig etc
diff --git a/debian/not-installed b/debian/not-installed
index afbf7dc..3ce6d56 100644
--- a/debian/not-installed
+++ b/debian/not-installed
@@ -18,7 +18,9 @@ NOT_INSTALLED := \
 	usr/include/GL/glx_mangle.h \
 	usr/include/GL/vms_x_fix.h \
 	usr/include/GL/wglext.h \
-	usr/include/GL/wmesa.h
+	usr/include/GL/wmesa.h \
+	dri/usr/*/libXvMC* \
+	dri/usr/lib/*/vdpau/
 
 # Architecture-specific additional files:
 NOT_INSTALLED_i386 = \
diff --git a/debian/rules b/debian/rules
index 3bf3702..c1999da 100755
--- a/debian/rules
+++ b/debian/rules
@@ -119,6 +119,7 @@ confflags-dri = \
 	--enable-glx-tls \
 	--enable-shared-glapi \
 	--enable-texture-float \
+	--enable-gallium-g3dvl \
 	--enable-xa \
 	$(confflags_DIRECT_RENDERING) \
 	$(confflags_EGL) \
@@ -214,6 +215,8 @@ $(STAMP_DIR)/stamp:
 $(QUILT_STAMPFN): $(STAMP_DIR)/stamp
 
 build: build-stamp
+	# XvMCConfig configuration file:
+	echo "ln -s build/dri/$(DEB_HOST_MULTIARCH)/gallium/XvMCConfig /etc/X11/XvMCConfig"
 
 build-stamp: $(BUILD_STAMPS)
 	>$@
@@ -294,7 +297,7 @@ binary-arch: install
 
 	# Also get rid of other files which aren't installed. Do not
 	# use -f to ensure we notice disappearing files:
-	set -e; for file in $(NOT_INSTALLED); do rm debian/tmp/$$file; done
+	set -e; for file in $(NOT_INSTALLED); do rm -r debian/tmp/$$file; done
 	# Files only in git, not in tarballs, OK to use rm -f here:
 	set -e; for file in $(NOT_INSTALLED_EITHER); do rm -f debian/tmp/$$file; done
 	# No need for this .so, libglapi is just a convenience library:
-- 
1.7.10.4
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Sun, 24 Jun 2012 16:09:20 GMT) (full text, mbox, link).


Acknowledgement sent to Paul Menzel <pm.debian@googlemail.com>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Sun, 24 Jun 2012 16:09:20 GMT) (full text, mbox, link).


Message #115 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Paul Menzel <pm.debian@googlemail.com>
To: Cyril Brulebois <kibi@debian.org>
Cc: 656719@bugs.debian.org, Julien Cristau <jcristau@debian.org>, Michel Dänzer <daenzer@debian.org>, Fabio Pedretti <fabio.ped@libero.it>
Subject: [RFC] [PATCH v3 2/3] debian/control: libg3dvl-mesa: Depend on libxvmc1
Date: Sun, 24 Jun 2012 18:02:03 +0200
[Message part 1 (text/plain, inline)]
Date: Sun, 24 Jun 2012 17:09:16 +0200

This should be needed for the libxvmc1 interfaces to work. The VDPAU
libraries should work without `libxvmc1`.
---
 debian/changelog |    4 ++++
 debian/control   |    1 +
 2 files changed, 5 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index a6900df..4815c2e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,12 @@
 mesa (8.0.3-2) UNRELEASED; urgency=low
 
+  [ Fabio Pedretti ]
   * Enable Gallium VDPAU and XvMC driver support on at least
     Radeon r300+ and r600+. (Closes: #656719) (LP: #1002224)
 
+  [ Paul Menzel ]
+  * libg3dvl-mesa: Depend on libxvmc1.
+
  -- Fabio Pedretti <fabio.ped@libero.it>  Mon, 21 May 2012 12:46:40 +0300
 
 mesa (8.0.3-1) unstable; urgency=low
diff --git a/debian/control b/debian/control
index a9fcdd3..064cd29 100644
--- a/debian/control
+++ b/debian/control
@@ -809,6 +809,7 @@ Package: libg3dvl-mesa
 Section: libs
 Architecture: linux-any
 Depends:
+ libxvmc1,
  ${shlibs:Depends},
  ${misc:Depends},
 Description: xvmc and vdpau Gallium3D video acceleration drivers
-- 
1.7.10.4
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Sun, 24 Jun 2012 16:09:22 GMT) (full text, mbox, link).


Acknowledgement sent to Paul Menzel <pm.debian@googlemail.com>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Sun, 24 Jun 2012 16:09:22 GMT) (full text, mbox, link).


Message #120 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Paul Menzel <pm.debian@googlemail.com>
To: Cyril Brulebois <kibi@debian.org>
Cc: 656719@bugs.debian.org, Julien Cristau <jcristau@debian.org>, Michel Dänzer <daenzer@debian.org>, Fabio Pedretti <fabio.ped@libero.it>
Subject: [RFC][PATCH v3 3/3] Add debian/NEWS for libg3dvl-mesa
Date: Sun, 24 Jun 2012 18:02:53 +0200
[Message part 1 (text/plain, inline)]
From 27f12871b07c4c077bf865a24ece4df7ec1ec5b0 Mon Sep 17 00:00:00 2001
From: Paul Menzel <pm.debian@googlemail.com>
Date: Sun, 24 Jun 2012 17:17:21 +0200
Subject: [PATCH 3/3] Add debian/NEWS for libg3dvl-mesa

---
 debian/NEWS      |   11 +++++++++++
 debian/changelog |    1 +
 2 files changed, 12 insertions(+)
 create mode 100644 debian/NEWS

diff --git a/debian/NEWS b/debian/NEWS
new file mode 100644
index 0000000..5dd37b6
--- /dev/null
+++ b/debian/NEWS
@@ -0,0 +1,11 @@
+mesa (8.0.3-2) UNRELEASED; urgency=low
+
+Two new packages libg3dvl-mesa and libg3dvl-mesa-dbg were added containing the libraries to use the GPU for MPEG2 decoding.
+
+With MPlayer you can for example use the following command line to make use of it.
+
+    mplayer -vc ffmpeg12vdpau example.mpeg2
+
+Please note that this support is work in progress and might not work correctly. Pleaes report bugs to the Mesa bug tracker.
+
+ -- Paul Menzel <pm.debian@googlemail.com>  Sun, 24 Jun 2012 17:13:01 +0200
diff --git a/debian/changelog b/debian/changelog
index 4815c2e..4a0ca6b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ mesa (8.0.3-2) UNRELEASED; urgency=low
 
   [ Paul Menzel ]
   * libg3dvl-mesa: Depend on libxvmc1.
+  * Add NEWS.Debian for libg3dvl-mesa.
 
  -- Fabio Pedretti <fabio.ped@libero.it>  Mon, 21 May 2012 12:46:40 +0300
 
-- 
1.7.10.4
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Mon, 25 Jun 2012 06:57:03 GMT) (full text, mbox, link).


Acknowledgement sent to Michel Dänzer <daenzer@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Mon, 25 Jun 2012 06:57:03 GMT) (full text, mbox, link).


Message #125 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Michel Dänzer <daenzer@debian.org>
To: Paul Menzel <pm.debian@googlemail.com>
Cc: 656719@bugs.debian.org, Fabio Pedretti <fabio.ped@libero.it>
Subject: Re: [RFC][PATCH v3 3/3] Add debian/NEWS for libg3dvl-mesa
Date: Mon, 25 Jun 2012 08:53:22 +0200
[Message part 1 (text/plain, inline)]
On Son, 2012-06-24 at 18:02 +0200, Paul Menzel wrote: 
> +
> +Please note that this support is work in progress and might not work
> correctly. Pleaes report bugs to the Mesa bug tracker.

Given this (valid) caveat, I'm not sure this functionality should really
be advertised in NEWS at all.


-- 
Earthling Michel Dänzer           |                   http://www.amd.com
Libre software enthusiast         |          Debian, X and DRI developer
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Mon, 25 Jun 2012 06:57:05 GMT) (full text, mbox, link).


Acknowledgement sent to Michel Dänzer <daenzer@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Mon, 25 Jun 2012 06:57:05 GMT) (full text, mbox, link).


Message #130 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Michel Dänzer <daenzer@debian.org>
To: Paul Menzel <pm.debian@googlemail.com>
Cc: 656719@bugs.debian.org, Fabio Pedretti <fabio.ped@libero.it>
Subject: Re: [RFC] [PATCH v3 2/3] debian/control: libg3dvl-mesa: Depend on libxvmc1
Date: Mon, 25 Jun 2012 08:55:06 +0200
[Message part 1 (text/plain, inline)]
On Son, 2012-06-24 at 18:02 +0200, Paul Menzel wrote: 
> 
> This should be needed for the libxvmc1 interfaces to work. The VDPAU
> libraries should work without `libxvmc1`.
[...] 
> diff --git a/debian/control b/debian/control
> index a9fcdd3..064cd29 100644
> --- a/debian/control
> +++ b/debian/control
> @@ -809,6 +809,7 @@ Package: libg3dvl-mesa
>  Section: libs
>  Architecture: linux-any
>  Depends:
> + libxvmc1,
>   ${shlibs:Depends},
>   ${misc:Depends},
>  Description: xvmc and vdpau Gallium3D video acceleration drivers

Doesn't ${shlibs:Depends} contain libxvmc1 and libvdpau1?

Which is BTW just one reason why I think separate packages for the VDPAU
and XvMC functionality would make more sense.


-- 
Earthling Michel Dänzer           |                   http://www.amd.com
Libre software enthusiast         |          Debian, X and DRI developer
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Mon, 25 Jun 2012 07:24:02 GMT) (full text, mbox, link).


Acknowledgement sent to Paul Menzel <pm.debian@googlemail.com>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Mon, 25 Jun 2012 07:24:03 GMT) (full text, mbox, link).


Message #135 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Paul Menzel <pm.debian@googlemail.com>
To: Michel Dänzer <daenzer@debian.org>
Cc: 656719@bugs.debian.org, Fabio Pedretti <fabio.ped@libero.it>
Subject: Re: [RFC] [PATCH v3 2/3] debian/control: libg3dvl-mesa: Depend on libxvmc1
Date: Mon, 25 Jun 2012 09:21:07 +0200
[Message part 1 (text/plain, inline)]
Am Montag, den 25.06.2012, 08:55 +0200 schrieb Michel Dänzer:
> On Son, 2012-06-24 at 18:02 +0200, Paul Menzel wrote: 
> > 
> > This should be needed for the libxvmc1 interfaces to work. The VDPAU
> > libraries should work without `libxvmc1`.
> [...] 
> > diff --git a/debian/control b/debian/control
> > index a9fcdd3..064cd29 100644
> > --- a/debian/control
> > +++ b/debian/control
> > @@ -809,6 +809,7 @@ Package: libg3dvl-mesa
> >  Section: libs
> >  Architecture: linux-any
> >  Depends:
> > + libxvmc1,
> >   ${shlibs:Depends},
> >   ${misc:Depends},
> >  Description: xvmc and vdpau Gallium3D video acceleration drivers
> 
> Doesn't ${shlibs:Depends} contain libxvmc1 and libvdpau1?

        $ LANG=C aptitude show libg3dvl-mesa
        Package: libg3dvl-mesa                   
        New: yes
        State: installed
        Automatically installed: no
        Version: 8.0.3-2
        Priority: optional
        Section: libs
        Maintainer: Debian X Strike Force <debian-x@lists.debian.org>
        Architecture: i386
        Uncompressed Size: 69.5 M
        Depends: libc6 (>= 2.3.6-6~), libdrm-nouveau1a (>= 2.4.23), libdrm2 (>= 2.4.3), libffi5 (>= 3.0.4), libgcc1 (>= 1:4.1.1), libstdc++6 (>=
                 4.6), libvdpau1 (>= 0.2), libx11-6 (>= 2:1.4.99.1), libxext6, libxfixes3, libxv1
        Description: xvmc and vdpau Gallium3D video acceleration drivers
         
        Homepage: http://mesa3d.sourceforge.net/

So without that change I only see `libxv1` and not `libxvmc1`. Am I
missing something?

> Which is BTW just one reason why I think separate packages for the VDPAU
> and XvMC functionality would make more sense.

Alright. I will respin this series. I welcome drafts for more elaborate
descriptions too. ;-)

Fabio, it would be great to hear your comments too.


Thanks,

Paul
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Mon, 25 Jun 2012 07:48:03 GMT) (full text, mbox, link).


Acknowledgement sent to Michel Dänzer <daenzer@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Mon, 25 Jun 2012 07:48:03 GMT) (full text, mbox, link).


Message #140 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Michel Dänzer <daenzer@debian.org>
To: Paul Menzel <pm.debian@googlemail.com>
Cc: 656719@bugs.debian.org, Fabio Pedretti <fabio.ped@libero.it>
Subject: Re: [RFC] [PATCH v3 2/3] debian/control: libg3dvl-mesa: Depend on libxvmc1
Date: Mon, 25 Jun 2012 09:41:03 +0200
[Message part 1 (text/plain, inline)]
On Mon, 2012-06-25 at 09:21 +0200, Paul Menzel wrote: 
> Am Montag, den 25.06.2012, 08:55 +0200 schrieb Michel Dänzer:
> > On Son, 2012-06-24 at 18:02 +0200, Paul Menzel wrote: 
> > > 
> > > This should be needed for the libxvmc1 interfaces to work. The VDPAU
> > > libraries should work without `libxvmc1`.
> > [...] 
> > > diff --git a/debian/control b/debian/control
> > > index a9fcdd3..064cd29 100644
> > > --- a/debian/control
> > > +++ b/debian/control
> > > @@ -809,6 +809,7 @@ Package: libg3dvl-mesa
> > >  Section: libs
> > >  Architecture: linux-any
> > >  Depends:
> > > + libxvmc1,
> > >   ${shlibs:Depends},
> > >   ${misc:Depends},
> > >  Description: xvmc and vdpau Gallium3D video acceleration drivers
> > 
> > Doesn't ${shlibs:Depends} contain libxvmc1 and libvdpau1?
> 
>         $ LANG=C aptitude show libg3dvl-mesa
>         Package: libg3dvl-mesa                   
>         New: yes
>         State: installed
>         Automatically installed: no
>         Version: 8.0.3-2
>         Priority: optional
>         Section: libs
>         Maintainer: Debian X Strike Force <debian-x@lists.debian.org>
>         Architecture: i386
>         Uncompressed Size: 69.5 M
>         Depends: libc6 (>= 2.3.6-6~), libdrm-nouveau1a (>= 2.4.23), libdrm2 (>= 2.4.3), libffi5 (>= 3.0.4), libgcc1 (>= 1:4.1.1), libstdc++6 (>=
>                  4.6), libvdpau1 (>= 0.2), libx11-6 (>= 2:1.4.99.1), libxext6, libxfixes3, libxv1
>         Description: xvmc and vdpau Gallium3D video acceleration drivers
>          
>         Homepage: http://mesa3d.sourceforge.net/
> 
> So without that change I only see `libxv1` and not `libxvmc1`. Am I
> missing something?

No, it indeed looks like the Mesa libXvMC*.so.1 libraries don't link
against libXvMC.so.1. I suspect that's an (upstream) bug though, as they
do seem to reference symbols from libXvMC.so.1.


-- 
Earthling Michel Dänzer           |                   http://www.amd.com
Libre software enthusiast         |          Debian, X and DRI developer
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Tue, 26 Jun 2012 10:45:03 GMT) (full text, mbox, link).


Acknowledgement sent to Fabio <fabio.ped@libero.it>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Tue, 26 Jun 2012 10:45:13 GMT) (full text, mbox, link).


Message #145 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Fabio <fabio.ped@libero.it>
To: <pm.debian@googlemail.com>, Michel Dänzer <daenzer@debian.org>
Cc: <656719@bugs.debian.org>
Subject: R: Re: [RFC] [PATCH v3 2/3] debian/control: libg3dvl-mesa: Depend on libxvmc1
Date: Tue, 26 Jun 2012 12:28:43 +0200 (CEST)
>Am Montag, den 25.06.2012, 08:55 +0200 schrieb Michel Dänzer:
>> On Son, 2012-06-24 at 18:02 +0200, Paul Menzel wrote: 
>> > 
>> > This should be needed for the libxvmc1 interfaces to work. The VDPAU
>> > libraries should work without `libxvmc1`.
>> [...] 
>> > diff --git a/debian/control b/debian/control
>> > index a9fcdd3..064cd29 100644
>> > --- a/debian/control
>> > +++ b/debian/control
>> > @@ -809,6 +809,7 @@ Package: libg3dvl-mesa
>> >  Section: libs
>> >  Architecture: linux-any
>> >  Depends:
>> > + libxvmc1,
>> >   ${shlibs:Depends},
>> >   ${misc:Depends},
>> >  Description: xvmc and vdpau Gallium3D video acceleration drivers
>> 
>> Doesn't ${shlibs:Depends} contain libxvmc1 and libvdpau1?
>
>        $ LANG=C aptitude show libg3dvl-mesa
>        Package: libg3dvl-mesa                   
>        New: yes
>        State: installed
>        Automatically installed: no
>        Version: 8.0.3-2
>        Priority: optional
>        Section: libs
>        Maintainer: Debian X Strike Force <debian-x@lists.debian.org>
>        Architecture: i386
>        Uncompressed Size: 69.5 M
>        Depends: libc6 (>= 2.3.6-6~), libdrm-nouveau1a (>= 2.4.23), libdrm2 
(>= 2.4.3), libffi5 (>= 3.0.4), libgcc1 (>= 1:4.1.1), libstdc++6 (>=
>                 4.6), libvdpau1 (>= 0.2), libx11-6 (>= 2:1.4.99.1), 
libxext6, libxfixes3, libxv1
>        Description: xvmc and vdpau Gallium3D video acceleration drivers
>         
>        Homepage: http://mesa3d.sourceforge.net/
>
>So without that change I only see `libxv1` and not `libxvmc1`. Am I
>missing something?
>
>> Which is BTW just one reason why I think separate packages for the VDPAU
>> and XvMC functionality would make more sense.
>
>Alright. I will respin this series. I welcome drafts for more elaborate
>descriptions too. ;-)
>
>Fabio, it would be great to hear your comments too.

Separating the packages may have sense, especially since the media players 
could automatically choose an API that may not properly work on a specific 
driver: with separate packages one can install only the API he wants. I however 
put all in a single package since all APIs are still experimental anyway and to 
reduce the number of packages.

Anyway I am on vacation now, I have no time to deep work on this.




Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Tue, 26 Jun 2012 12:03:14 GMT) (full text, mbox, link).


Acknowledgement sent to Paul Menzel <pm.debian@googlemail.com>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Tue, 26 Jun 2012 12:03:55 GMT) (full text, mbox, link).


Message #150 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Paul Menzel <pm.debian@googlemail.com>
To: 656719@bugs.debian.org
Cc: Michel Dänzer <daenzer@debian.org>, Fabio Pedretti <fabio.ped@libero.it>
Subject: Bug#656719: updated patch series (was: ln: failed to create symbolic link `build/dri/i386-linux-gnu/gallium/XvMCConfig': File exists)
Date: Tue, 26 Jun 2012 14:00:00 +0200
[Message part 1 (text/plain, inline)]
Am Sonntag, den 24.06.2012, 17:56 +0200 schrieb Paul Menzel:

[…]

> I will attach three patches for RFC. I would be grateful for any
> comments.

Thank you for all your comments. Here is the updated patch series. I
reply with the three patches to this message.


Thanks,

Paul
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Tue, 26 Jun 2012 12:10:31 GMT) (full text, mbox, link).


Acknowledgement sent to Paul Menzel <pm.debian@googlemail.com>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Tue, 26 Jun 2012 12:11:18 GMT) (full text, mbox, link).


Message #155 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Paul Menzel <pm.debian@googlemail.com>
To: 656719@bugs.debian.org
Cc: Michel Dänzer <daenzer@debian.org>, Fabio Pedretti <fabio.ped@libero.it>
Subject: [PATCH v4 1/3] Add Gallium VDPAU and XvMC driver support (#656719)
Date: Tue, 26 Jun 2012 14:02:43 +0200
[Message part 1 (text/plain, inline)]
From: Fabio Pedretti <fabio.ped@libero.it>
Date: Sun, 29 Jan 2012 21:00:57 +0100

Since version 8.0 Mesa provides XvMC and VDPAU Gallium3D video
acceleration drivers.

Fabio’s patch sent to the Debian BTS [1] is adapted

1. to comment

       ln -s build/dri/$(DEB_HOST_MULTIARCH)/gallium/XvMCConfig /etc/X11/XvMCConfig

   overwriting `/etc/X11/XvMCConfig` already shipped by `libxvmc1`,
2. to not install `/etc/XvMCConfig` which should go under `/etc/X11/`
3. and removing a line from `not_installed`.

Item 2 probably has to be solved by some kind of `update-alternatives`
to work when this package in deinstalled again.

Using `mplayer -vo xvmc -vc ffmpeg12mc dvd.mpeg2` does not work for me
since MPlayer does not find `libXvMCr600.so.1`.

        $ mplayer -vo xvmc -vc ffmpeg12mc dvd.mpeg2
        MPlayer svn r34540 (Debian), built with gcc-4.7 (C) 2000-2012 MPlayer Team
        […]
        MPEG-PS file format detected.
        VIDEO:  MPEG2  720x576  (aspect 3)  25.000 fps  7500.0 kbps (937.5 kbyte/s)
        vo_xvmc: X-Video extension 2.2
        vo_xvmc: X-Video MotionCompensation Extension version 1.1
        ==========================================================================
        Forced video codec: ffmpeg12mc
        Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
        libavcodec version 53.35.0 (external)
        Mismatching header version 53.32.2
        [VD_FFMPEG] XVMC-accelerated MPEG-2.
        [VD_FFMPEG] XVMC-accelerated MPEG-2.
        Selected video codec: [ffmpeg12mc] vfm: ffmpeg (FFmpeg MPEG-1/2 (XvMC) - deprecated, just use ffmpeg12)
        ==========================================================================
        ==========================================================================
        Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
        AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
        Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
        ==========================================================================
        AO: [pulse] 48000Hz 2ch s16le (2 bytes per sample)
        Starting playback...
        [VD_FFMPEG] Trying pixfmt=0.
        [VD_FFMPEG] XVMC-accelerated MPEG-2.
        vo_xvmc: Found matching surface with id=32315659 on 63 port at 0 adapter
        Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
        VO: [xvmc] 720x576 => 1024x576 MPEG1/2 Motion Compensation and IDCT
        vo_xvmc: Found matching surface with id=32315659 on 63 port at 0 adapter
        vo_xvmc: Using Xv Adaptor #0 (Radeon Textured Video)
        vo_xvmc: Port 63 grabed
        XvMCWrapper: Could not load hardware specific XvMC library "libXvMCr600.so.1".
        libXvMCr600.so.1: cannot open shared object file: No such file or directory
        vo_xvmc: XvMCCreateContext failed with error 2
        […]

The libraries are installed correctly though.

        $ more /etc/X11/XvMCConfig
        libXvMCr600.so.1
        $ ls -l /usr/lib/dri/libXvMCr6*
        lrwxrwxrwx 1 root root      16 Jun 24 11:07 /usr/lib/dri/libXvMCr600.so -> libXvMCr600.so.1
        lrwxrwxrwx 1 root root      18 Jun 24 11:07 /usr/lib/dri/libXvMCr600.so.1 -> libXvMCr600.so.1.0
        -rw-r--r-- 1 root root 1067180 Jun 24 11:10 /usr/lib/dri/libXvMCr600.so.1.0

No file `NEWS.Debian` is provided since the support is still work in progress.

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=656719
---
 debian/changelog                |    7 +++++++
 debian/control                  |   22 ++++++++++++++++++++++
 debian/libg3dvl-mesa.install.in |    3 +++
 debian/not-installed            |    4 +++-
 debian/rules                    |    5 ++++-
 5 files changed, 39 insertions(+), 2 deletions(-)
 create mode 100644 debian/libg3dvl-mesa.install.in

diff --git a/debian/changelog b/debian/changelog
index 0eb66a1..a6900df 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+mesa (8.0.3-2) UNRELEASED; urgency=low
+
+  * Enable Gallium VDPAU and XvMC driver support on at least
+    Radeon r300+ and r600+. (Closes: #656719) (LP: #1002224)
+
+ -- Fabio Pedretti <fabio.ped@libero.it>  Mon, 21 May 2012 12:46:40 +0300
+
 mesa (8.0.3-1) unstable; urgency=low
 
   [ Robert Hooker ]
diff --git a/debian/control b/debian/control
index ec59840..a9fcdd3 100644
--- a/debian/control
+++ b/debian/control
@@ -32,6 +32,8 @@ Build-Depends:
  bison,
  llvm-2.9-dev [amd64 i386 kfreebsd-amd64 kfreebsd-i386],
  libwayland-dev (>= 0.85.0) [linux-any],
+ libvdpau-dev (>= 0.4.1) [linux-any],
+ libxvmc-dev (>= 1.0.6) [linux-any],
 Vcs-Git: git://git.debian.org/git/pkg-xorg/lib/mesa
 Vcs-Browser: http://git.debian.org/?p=pkg-xorg/lib/mesa.git
 Homepage: http://mesa3d.sourceforge.net/
@@ -803,4 +805,24 @@ Description: Mesa OpenGL utility library -- development files
  For a complete description of GLU, please look at the libglu1-mesa
  package.
 
+Package: libg3dvl-mesa
+Section: libs
+Architecture: linux-any
+Depends:
+ ${shlibs:Depends},
+ ${misc:Depends},
+Description: xvmc and vdpau Gallium3D video acceleration drivers
+
+Package: libg3dvl-mesa-dbg
+Section: debug
+Priority: extra
+Architecture: linux-any
+Depends:
+ libg3dvl-mesa (= ${binary:Version}),
+ ${misc:Depends},
+Description: xvmc and vdpau Gallium3D video acceleration drivers
+ .
+ This package contains the debugging symbols for the g3dvl libraries.
+
+
 # vim: tw=0
diff --git a/debian/libg3dvl-mesa.install.in b/debian/libg3dvl-mesa.install.in
new file mode 100644
index 0000000..3edf4cc
--- /dev/null
+++ b/debian/libg3dvl-mesa.install.in
@@ -0,0 +1,3 @@
+build/dri/${DEB_HOST_MULTIARCH}/gallium/libvdpau_* usr/lib/vdpau
+build/dri/${DEB_HOST_MULTIARCH}/gallium/libXvMC* usr/lib/dri
+build/dri/${DEB_HOST_MULTIARCH}/gallium/XvMCConfig usr/lib
diff --git a/debian/not-installed b/debian/not-installed
index afbf7dc..3ce6d56 100644
--- a/debian/not-installed
+++ b/debian/not-installed
@@ -18,7 +18,9 @@ NOT_INSTALLED := \
 	usr/include/GL/glx_mangle.h \
 	usr/include/GL/vms_x_fix.h \
 	usr/include/GL/wglext.h \
-	usr/include/GL/wmesa.h
+	usr/include/GL/wmesa.h \
+	dri/usr/*/libXvMC* \
+	dri/usr/lib/*/vdpau/
 
 # Architecture-specific additional files:
 NOT_INSTALLED_i386 = \
diff --git a/debian/rules b/debian/rules
index 3bf3702..c1999da 100755
--- a/debian/rules
+++ b/debian/rules
@@ -119,6 +119,7 @@ confflags-dri = \
 	--enable-glx-tls \
 	--enable-shared-glapi \
 	--enable-texture-float \
+	--enable-gallium-g3dvl \
 	--enable-xa \
 	$(confflags_DIRECT_RENDERING) \
 	$(confflags_EGL) \
@@ -214,6 +215,8 @@ $(STAMP_DIR)/stamp:
 $(QUILT_STAMPFN): $(STAMP_DIR)/stamp
 
 build: build-stamp
+	# XvMCConfig configuration file:
+	echo "ln -s build/dri/$(DEB_HOST_MULTIARCH)/gallium/XvMCConfig /etc/X11/XvMCConfig"
 
 build-stamp: $(BUILD_STAMPS)
 	>$@
@@ -294,7 +297,7 @@ binary-arch: install
 
 	# Also get rid of other files which aren't installed. Do not
 	# use -f to ensure we notice disappearing files:
-	set -e; for file in $(NOT_INSTALLED); do rm debian/tmp/$$file; done
+	set -e; for file in $(NOT_INSTALLED); do rm -r debian/tmp/$$file; done
 	# Files only in git, not in tarballs, OK to use rm -f here:
 	set -e; for file in $(NOT_INSTALLED_EITHER); do rm -f debian/tmp/$$file; done
 	# No need for this .so, libglapi is just a convenience library:
-- 
1.7.10.4
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Tue, 26 Jun 2012 12:12:13 GMT) (full text, mbox, link).


Acknowledgement sent to Paul Menzel <pm.debian@googlemail.com>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Tue, 26 Jun 2012 12:12:56 GMT) (full text, mbox, link).


Message #160 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Paul Menzel <pm.debian@googlemail.com>
To: 656719@bugs.debian.org
Cc: Michel Dänzer <daenzer@debian.org>, Fabio Pedretti <fabio.ped@libero.it>
Subject: [PATCH 2/3] debian/control: libg3dvl-mesa: Depend on libxvmc1.
Date: Tue, 26 Jun 2012 14:03:48 +0200
[Message part 1 (text/plain, inline)]
Date: Sun, 24 Jun 2012 17:09:16 +0200

Michael Dänzer confirmed that there seems to be an upstream bug [1].

        Am Montag, den 25.06.2012, 09:41 +0200 schrieb Michel Dänzer:
        
        […]
        
        > No, it indeed looks like the Mesa libXvMC*.so.1 libraries don't link
        > against libXvMC.so.1. I suspect that's an (upstream) bug though, as they
        > do seem to reference symbols from libXvMC.so.1.

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=656719#140
---
 debian/changelog |    6 +++++-
 debian/control   |    1 +
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index a6900df..614bb04 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,9 +1,13 @@
 mesa (8.0.3-2) UNRELEASED; urgency=low
 
+  [ Fabio Pedretti ]
   * Enable Gallium VDPAU and XvMC driver support on at least
     Radeon r300+ and r600+. (Closes: #656719) (LP: #1002224)
 
- -- Fabio Pedretti <fabio.ped@libero.it>  Mon, 21 May 2012 12:46:40 +0300
+  [ Paul Menzel ]
+  * libg3dvl-mesa: Depend on libxvmc1.
+
+ -- Paul Menzel <pm.debian@googlemail.com>  Sun, 24 Jun 2012 17:09:16 +0200
 
 mesa (8.0.3-1) unstable; urgency=low
 
diff --git a/debian/control b/debian/control
index a9fcdd3..064cd29 100644
--- a/debian/control
+++ b/debian/control
@@ -809,6 +809,7 @@ Package: libg3dvl-mesa
 Section: libs
 Architecture: linux-any
 Depends:
+ libxvmc1,
  ${shlibs:Depends},
  ${misc:Depends},
 Description: xvmc and vdpau Gallium3D video acceleration drivers
-- 
1.7.10.4
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Tue, 26 Jun 2012 12:28:22 GMT) (full text, mbox, link).


Acknowledgement sent to Paul Menzel <pm.debian@googlemail.com>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Tue, 26 Jun 2012 12:28:25 GMT) (full text, mbox, link).


Message #165 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Paul Menzel <pm.debian@googlemail.com>
To: 656719@bugs.debian.org
Cc: Michel Dänzer <daenzer@debian.org>, Fabio Pedretti <fabio.ped@libero.it>
Subject: [PATCH v4 3/3] Split up libg3dvl-mesa into libvdpau1-gallium and libxvmc1-gallium
Date: Tue, 26 Jun 2012 14:04:54 +0200
[Message part 1 (text/plain, inline)]
Date: Tue, 26 Jun 2012 13:09:46 +0200

The package names were suggested by Michael Dänzer [1] and were agreed
upon by Fabio Pedretti [2].

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=677886#26
[2] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=656719#145
---
 debian/changelog                    |    3 +-
 debian/control                      |   52 +++++++++++++++++++++++++++++++----
 debian/libg3dvl-mesa.install.in     |    3 --
 debian/libvdpau1-gallium.install.in |    2 ++
 debian/libxvmc1-gallium.install.in  |    1 +
 5 files changed, 51 insertions(+), 10 deletions(-)
 delete mode 100644 debian/libg3dvl-mesa.install.in
 create mode 100644 debian/libvdpau1-gallium.install.in
 create mode 100644 debian/libxvmc1-gallium.install.in

diff --git a/debian/changelog b/debian/changelog
index 614bb04..4467a87 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,8 +6,9 @@ mesa (8.0.3-2) UNRELEASED; urgency=low
 
   [ Paul Menzel ]
   * libg3dvl-mesa: Depend on libxvmc1.
+  * Split up libg3dvl-mesa into libvdpau1-gallium and libxvmc1-gallium.
 
- -- Paul Menzel <pm.debian@googlemail.com>  Sun, 24 Jun 2012 17:09:16 +0200
+ -- Paul Menzel <pm.debian@googlemail.com>  Tue, 26 Jun 2012 13:09:46 +0200
 
 mesa (8.0.3-1) unstable; urgency=low
 
diff --git a/debian/control b/debian/control
index 064cd29..8b264e2 100644
--- a/debian/control
+++ b/debian/control
@@ -805,25 +805,65 @@ Description: Mesa OpenGL utility library -- development files
  For a complete description of GLU, please look at the libglu1-mesa
  package.
 
-Package: libg3dvl-mesa
+Package: libvdpau1-gallium
+Section: libs
+Architecture: linux-any
+Depends:
+ ${shlibs:Depends},
+ ${misc:Depends},
+Description: VDPAU Gallium3D video acceleration drivers
+ .
+ Currently these drivers support using the GPU to decode MPEG2 material.
+ .
+ Recent MPlayer versions use the provided library automatically. But you
+ can manually use it using for example the following command line.
+ .
+ .    mplayer -vo vdpau -vc ffmpeg12vdpau example.mpeg2
+ .
+ Beware that this is work in progress and might not work as expected.
+
+Package: libvdpau1-gallium-dbg
+Section: debug
+Priority: extra
+Architecture: linux-any
+Depends:
+ libvdpau1-gallium (= ${binary:Version}),
+ ${misc:Depends},
+Description: debugging symbols for VDPAU Gallium3D video acceleration drivers
+ .
+ This package contains the debugging symbols for the VDPAU g3dvl libraries.
+
+Package: libxvmc1-gallium
 Section: libs
 Architecture: linux-any
 Depends:
  libxvmc1,
  ${shlibs:Depends},
  ${misc:Depends},
-Description: xvmc and vdpau Gallium3D video acceleration drivers
+Description: XvMC Gallium3D video acceleration drivers
+ .
+ Currently these drivers support using the GPU to decode MPEG2 material.
+ .
+ Recent MPlayer versions use the provided library automatically. But you
+ can manually use it using for example the following command line.
+ .
+ .    mplayer -vo xvmc -vc ffmpeg12mc example.mpeg2
+ .
+ You have to edit `/etc/X11/XvMCConfig` and list your hardware specific
+ library in there, for example `libXvMCr600.so.1`.
+ .
+ Beware that this is work in progress and might not work as expected.
 
-Package: libg3dvl-mesa-dbg
+Package: libxvmc1-gallium-dbg
 Section: debug
 Priority: extra
 Architecture: linux-any
 Depends:
- libg3dvl-mesa (= ${binary:Version}),
+ libxvmc1-gallium (= ${binary:Version}),
  ${misc:Depends},
-Description: xvmc and vdpau Gallium3D video acceleration drivers
+Description: debugging symbols for XvMC Gallium3D video acceleration drivers
  .
- This package contains the debugging symbols for the g3dvl libraries.
+ This package contains the debugging symbols for the XvMC g3dvl libraries.
 
 
 # vim: tw=0
diff --git a/debian/libg3dvl-mesa.install.in b/debian/libg3dvl-mesa.install.in
deleted file mode 100644
index 3edf4cc..0000000
--- a/debian/libg3dvl-mesa.install.in
+++ /dev/null
@@ -1,3 +0,0 @@
-build/dri/${DEB_HOST_MULTIARCH}/gallium/libvdpau_* usr/lib/vdpau
-build/dri/${DEB_HOST_MULTIARCH}/gallium/libXvMC* usr/lib/dri
-build/dri/${DEB_HOST_MULTIARCH}/gallium/XvMCConfig usr/lib
diff --git a/debian/libvdpau1-gallium.install.in b/debian/libvdpau1-gallium.install.in
new file mode 100644
index 0000000..76adf0a
--- /dev/null
+++ b/debian/libvdpau1-gallium.install.in
@@ -0,0 +1,2 @@
+build/dri/${DEB_HOST_MULTIARCH}/gallium/libXvMC* usr/lib/dri
+build/dri/${DEB_HOST_MULTIARCH}/gallium/XvMCConfig usr/lib
diff --git a/debian/libxvmc1-gallium.install.in b/debian/libxvmc1-gallium.install.in
new file mode 100644
index 0000000..757160f
--- /dev/null
+++ b/debian/libxvmc1-gallium.install.in
@@ -0,0 +1 @@
+build/dri/${DEB_HOST_MULTIARCH}/gallium/libvdpau_* usr/lib/vdpau
-- 
1.7.10.4
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Tue, 26 Jun 2012 16:15:02 GMT) (full text, mbox, link).


Acknowledgement sent to Paul Menzel <pm.debian@googlemail.com>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Tue, 26 Jun 2012 16:15:02 GMT) (full text, mbox, link).


Message #170 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Paul Menzel <pm.debian@googlemail.com>
To: 656719@bugs.debian.org
Cc: Michel Dänzer <daenzer@debian.org>, Fabio Pedretti <fabio.ped@libero.it>
Subject: Re: Bug#656719: updated patch series
Date: Tue, 26 Jun 2012 18:10:55 +0200
[Message part 1 (text/plain, inline)]
Am Dienstag, den 26.06.2012, 14:00 +0200 schrieb Paul Menzel:
> Am Sonntag, den 24.06.2012, 17:56 +0200 schrieb Paul Menzel:
> 
> […]
> 
> > I will attach three patches for RFC. I would be grateful for any
> > comments.
> 
> Thank you for all your comments. Here is the updated patch series. I
> reply with the three patches to this message.

Alright, there will be another iteration with the following changes.

1. Put libXvMC* libraries under /usr/lib/ and not /usr/lib/dri so that
MPlayer finds them.

2. Switch contents of libvdpau1-gallium.install.in and
libxvmc1-gallium.install.in.


Thanks,

Paul
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Wed, 27 Jun 2012 10:36:03 GMT) (full text, mbox, link).


Acknowledgement sent to Paul Menzel <pm.debian@googlemail.com>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Wed, 27 Jun 2012 10:36:03 GMT) (full text, mbox, link).


Message #175 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Paul Menzel <pm.debian@googlemail.com>
To: 656719@bugs.debian.org
Cc: Michel Dänzer <daenzer@debian.org>, Fabio Pedretti <fabio.ped@libero.it>
Subject: [PATCH v5 1/3] Add Gallium VDPAU and XvMC driver support (#656719)
Date: Wed, 27 Jun 2012 12:33:07 +0200
[Message part 1 (text/plain, inline)]
From: Fabio Pedretti <fabio.ped@libero.it>
Date: Sun, 29 Jan 2012 21:00:57 +0100

Since version 8.0 Mesa provides XvMC and VDPAU Gallium3D video
acceleration drivers.

Fabio’s patch sent to the Debian BTS [1] is adapted

1. to comment

       ln -s build/dri/$(DEB_HOST_MULTIARCH)/gallium/XvMCConfig /etc/X11/XvMCConfig

   overwriting `/etc/X11/XvMCConfig` already shipped by `libxvmc1`,
2. to not install `/etc/XvMCConfig` which should live under `/etc/X11/`,
3. to remove a line from `not_installed`
4. and to install the XvMC libraries under `/usr/lib/` and not
`/usr/lib/dri/` so that MPlayer finds them.

       $ mplayer -vo xvmc -vc ffmpeg12mc dvd.mpeg2
       MPlayer svn r34540 (Debian), built with gcc-4.7 (C) 2000-2012 MPlayer Team
       […]
       XvMCWrapper: Could not load hardware specific XvMC library "libXvMCr600.so.1".
       libXvMCr600.so.1: cannot open shared object file: No such file or directory
       vo_xvmc: XvMCCreateContext failed with error 2
       […]

Item 2 probably has to be solved by some kind of `update-alternatives`
to work when this package in deinstalled again.

No file `NEWS.Debian` is provided since the support is still work in
progress.

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=656719
---
For some reason XvMCConfig is not in my build tree anymore. So I took that out too.

 debian/changelog                |    7 +++++++
 debian/control                  |   22 ++++++++++++++++++++++
 debian/libg3dvl-mesa.install.in |    2 ++
 debian/not-installed            |    4 +++-
 debian/rules                    |    5 ++++-
 5 files changed, 38 insertions(+), 2 deletions(-)
 create mode 100644 debian/libg3dvl-mesa.install.in

diff --git a/debian/changelog b/debian/changelog
index 0eb66a1..a6900df 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+mesa (8.0.3-2) UNRELEASED; urgency=low
+
+  * Enable Gallium VDPAU and XvMC driver support on at least
+    Radeon r300+ and r600+. (Closes: #656719) (LP: #1002224)
+
+ -- Fabio Pedretti <fabio.ped@libero.it>  Mon, 21 May 2012 12:46:40 +0300
+
 mesa (8.0.3-1) unstable; urgency=low
 
   [ Robert Hooker ]
diff --git a/debian/control b/debian/control
index ec59840..a9fcdd3 100644
--- a/debian/control
+++ b/debian/control
@@ -32,6 +32,8 @@ Build-Depends:
  bison,
  llvm-2.9-dev [amd64 i386 kfreebsd-amd64 kfreebsd-i386],
  libwayland-dev (>= 0.85.0) [linux-any],
+ libvdpau-dev (>= 0.4.1) [linux-any],
+ libxvmc-dev (>= 1.0.6) [linux-any],
 Vcs-Git: git://git.debian.org/git/pkg-xorg/lib/mesa
 Vcs-Browser: http://git.debian.org/?p=pkg-xorg/lib/mesa.git
 Homepage: http://mesa3d.sourceforge.net/
@@ -803,4 +805,24 @@ Description: Mesa OpenGL utility library -- development files
  For a complete description of GLU, please look at the libglu1-mesa
  package.
 
+Package: libg3dvl-mesa
+Section: libs
+Architecture: linux-any
+Depends:
+ ${shlibs:Depends},
+ ${misc:Depends},
+Description: xvmc and vdpau Gallium3D video acceleration drivers
+
+Package: libg3dvl-mesa-dbg
+Section: debug
+Priority: extra
+Architecture: linux-any
+Depends:
+ libg3dvl-mesa (= ${binary:Version}),
+ ${misc:Depends},
+Description: xvmc and vdpau Gallium3D video acceleration drivers
+ .
+ This package contains the debugging symbols for the g3dvl libraries.
+
+
 # vim: tw=0
diff --git a/debian/libg3dvl-mesa.install.in b/debian/libg3dvl-mesa.install.in
new file mode 100644
index 0000000..fe8e252
--- /dev/null
+++ b/debian/libg3dvl-mesa.install.in
@@ -0,0 +1,2 @@
+build/dri/${DEB_HOST_MULTIARCH}/gallium/libvdpau_* usr/lib/vdpau
+build/dri/${DEB_HOST_MULTIARCH}/gallium/libXvMC* usr/lib/
diff --git a/debian/not-installed b/debian/not-installed
index afbf7dc..3ce6d56 100644
--- a/debian/not-installed
+++ b/debian/not-installed
@@ -18,7 +18,9 @@ NOT_INSTALLED := \
 	usr/include/GL/glx_mangle.h \
 	usr/include/GL/vms_x_fix.h \
 	usr/include/GL/wglext.h \
-	usr/include/GL/wmesa.h
+	usr/include/GL/wmesa.h \
+	dri/usr/*/libXvMC* \
+	dri/usr/lib/*/vdpau/
 
 # Architecture-specific additional files:
 NOT_INSTALLED_i386 = \
diff --git a/debian/rules b/debian/rules
index 3bf3702..c1999da 100755
--- a/debian/rules
+++ b/debian/rules
@@ -119,6 +119,7 @@ confflags-dri = \
 	--enable-glx-tls \
 	--enable-shared-glapi \
 	--enable-texture-float \
+	--enable-gallium-g3dvl \
 	--enable-xa \
 	$(confflags_DIRECT_RENDERING) \
 	$(confflags_EGL) \
@@ -214,6 +215,8 @@ $(STAMP_DIR)/stamp:
 $(QUILT_STAMPFN): $(STAMP_DIR)/stamp
 
 build: build-stamp
+	# XvMCConfig configuration file:
+	echo "ln -s build/dri/$(DEB_HOST_MULTIARCH)/gallium/XvMCConfig /etc/X11/XvMCConfig"
 
 build-stamp: $(BUILD_STAMPS)
 	>$@
@@ -294,7 +297,7 @@ binary-arch: install
 
 	# Also get rid of other files which aren't installed. Do not
 	# use -f to ensure we notice disappearing files:
-	set -e; for file in $(NOT_INSTALLED); do rm debian/tmp/$$file; done
+	set -e; for file in $(NOT_INSTALLED); do rm -r debian/tmp/$$file; done
 	# Files only in git, not in tarballs, OK to use rm -f here:
 	set -e; for file in $(NOT_INSTALLED_EITHER); do rm -f debian/tmp/$$file; done
 	# No need for this .so, libglapi is just a convenience library:
-- 
1.7.10.4
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Wed, 27 Jun 2012 10:36:09 GMT) (full text, mbox, link).


Acknowledgement sent to Paul Menzel <pm.debian@googlemail.com>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Wed, 27 Jun 2012 10:36:15 GMT) (full text, mbox, link).


Message #180 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Paul Menzel <pm.debian@googlemail.com>
To: 656719@bugs.debian.org
Cc: Michel Dänzer <daenzer@debian.org>, Fabio Pedretti <fabio.ped@libero.it>
Subject: [PATCH v5 2/3] debian/control: libg3dvl-mesa: Depend on libxvmc1.
Date: Wed, 27 Jun 2012 12:34:11 +0200
[Message part 1 (text/plain, inline)]
Date: Sun, 24 Jun 2012 17:09:16 +0200

Michael Dänzer confirmed that there seems to be an upstream bug [1].

        Am Montag, den 25.06.2012, 09:41 +0200 schrieb Michel Dänzer:

        […]

        > No, it indeed looks like the Mesa libXvMC*.so.1 libraries don't link
        > against libXvMC.so.1. I suspect that's an (upstream) bug though, as they
        > do seem to reference symbols from libXvMC.so.1.

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=656719#140
---
 debian/changelog |    6 +++++-
 debian/control   |    1 +
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index a6900df..614bb04 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,9 +1,13 @@
 mesa (8.0.3-2) UNRELEASED; urgency=low
 
+  [ Fabio Pedretti ]
   * Enable Gallium VDPAU and XvMC driver support on at least
     Radeon r300+ and r600+. (Closes: #656719) (LP: #1002224)
 
- -- Fabio Pedretti <fabio.ped@libero.it>  Mon, 21 May 2012 12:46:40 +0300
+  [ Paul Menzel ]
+  * libg3dvl-mesa: Depend on libxvmc1.
+
+ -- Paul Menzel <pm.debian@googlemail.com>  Sun, 24 Jun 2012 17:09:16 +0200
 
 mesa (8.0.3-1) unstable; urgency=low
 
diff --git a/debian/control b/debian/control
index a9fcdd3..064cd29 100644
--- a/debian/control
+++ b/debian/control
@@ -809,6 +809,7 @@ Package: libg3dvl-mesa
 Section: libs
 Architecture: linux-any
 Depends:
+ libxvmc1,
  ${shlibs:Depends},
  ${misc:Depends},
 Description: xvmc and vdpau Gallium3D video acceleration drivers
-- 
1.7.10.4
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Wed, 27 Jun 2012 10:36:40 GMT) (full text, mbox, link).


Acknowledgement sent to Paul Menzel <pm.debian@googlemail.com>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Wed, 27 Jun 2012 10:36:45 GMT) (full text, mbox, link).


Message #185 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Paul Menzel <pm.debian@googlemail.com>
To: 656719@bugs.debian.org
Cc: Michel Dänzer <daenzer@debian.org>, Fabio Pedretti <fabio.ped@libero.it>
Subject: [PATCH v5 3/3] Split up libg3dvl-mesa into libvdpau1-gallium and libxvmc1-gallium
Date: Wed, 27 Jun 2012 12:35:15 +0200
[Message part 1 (text/plain, inline)]
Date: Tue, 26 Jun 2012 13:09:46 +0200

The package names were suggested by Michael Dänzer [1] and were agreed
upon by Fabio Pedretti [2].

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=677886#26
[2] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=656719#145
---
 debian/changelog                    |    3 +-
 debian/control                      |   52 +++++++++++++++++++++++++++++++----
 debian/libg3dvl-mesa.install.in     |    2 --
 debian/libvdpau1-gallium.install.in |    1 +
 debian/libxvmc1-gallium.install.in  |    1 +
 5 files changed, 50 insertions(+), 9 deletions(-)
 delete mode 100644 debian/libg3dvl-mesa.install.in
 create mode 100644 debian/libvdpau1-gallium.install.in
 create mode 100644 debian/libxvmc1-gallium.install.in

diff --git a/debian/changelog b/debian/changelog
index 614bb04..4467a87 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,8 +6,9 @@ mesa (8.0.3-2) UNRELEASED; urgency=low
 
   [ Paul Menzel ]
   * libg3dvl-mesa: Depend on libxvmc1.
+  * Split up libg3dvl-mesa into libvdpau1-gallium and libxvmc1-gallium.
 
- -- Paul Menzel <pm.debian@googlemail.com>  Sun, 24 Jun 2012 17:09:16 +0200
+ -- Paul Menzel <pm.debian@googlemail.com>  Tue, 26 Jun 2012 13:09:46 +0200
 
 mesa (8.0.3-1) unstable; urgency=low
 
diff --git a/debian/control b/debian/control
index 064cd29..8b264e2 100644
--- a/debian/control
+++ b/debian/control
@@ -805,25 +805,65 @@ Description: Mesa OpenGL utility library -- development files
  For a complete description of GLU, please look at the libglu1-mesa
  package.
 
-Package: libg3dvl-mesa
+Package: libvdpau1-gallium
+Section: libs
+Architecture: linux-any
+Depends:
+ ${shlibs:Depends},
+ ${misc:Depends},
+Description: VDPAU Gallium3D video acceleration drivers
+ .
+ Currently these drivers support using the GPU to decode MPEG2 material.
+ .
+ Recent MPlayer versions use the provided library automatically. But you
+ can manually use it using for example the following command line.
+ .
+ .    mplayer -vo vdpau -vc ffmpeg12vdpau example.mpeg2
+ .
+ Beware that this is work in progress and might not work as expected.
+
+Package: libvdpau1-gallium-dbg
+Section: debug
+Priority: extra
+Architecture: linux-any
+Depends:
+ libvdpau1-gallium (= ${binary:Version}),
+ ${misc:Depends},
+Description: debugging symbols for VDPAU Gallium3D video acceleration drivers
+ .
+ This package contains the debugging symbols for the VDPAU g3dvl libraries.
+
+Package: libxvmc1-gallium
 Section: libs
 Architecture: linux-any
 Depends:
  libxvmc1,
  ${shlibs:Depends},
  ${misc:Depends},
-Description: xvmc and vdpau Gallium3D video acceleration drivers
+Description: XvMC Gallium3D video acceleration drivers
+ .
+ Currently these drivers support using the GPU to decode MPEG2 material.
+ .
+ Recent MPlayer versions use the provided library automatically. But you
+ can manually use it using for example the following command line.
+ .
+ .    mplayer -vo xvmc -vc ffmpeg12mc example.mpeg2
+ .
+ You have to edit `/etc/X11/XvMCConfig` and list your hardware specific
+ library in there, for example `libXvMCr600.so.1`.
+ .
+ Beware that this is work in progress and might not work as expected.
 
-Package: libg3dvl-mesa-dbg
+Package: libxvmc1-gallium-dbg
 Section: debug
 Priority: extra
 Architecture: linux-any
 Depends:
- libg3dvl-mesa (= ${binary:Version}),
+ libxvmc1-gallium (= ${binary:Version}),
  ${misc:Depends},
-Description: xvmc and vdpau Gallium3D video acceleration drivers
+Description: debugging symbols for XvMC Gallium3D video acceleration drivers
  .
- This package contains the debugging symbols for the g3dvl libraries.
+ This package contains the debugging symbols for the XvMC g3dvl libraries.
 
 
 # vim: tw=0
diff --git a/debian/libg3dvl-mesa.install.in b/debian/libg3dvl-mesa.install.in
deleted file mode 100644
index fe8e252..0000000
--- a/debian/libg3dvl-mesa.install.in
+++ /dev/null
@@ -1,2 +0,0 @@
-build/dri/${DEB_HOST_MULTIARCH}/gallium/libvdpau_* usr/lib/vdpau
-build/dri/${DEB_HOST_MULTIARCH}/gallium/libXvMC* usr/lib/
diff --git a/debian/libvdpau1-gallium.install.in b/debian/libvdpau1-gallium.install.in
new file mode 100644
index 0000000..757160f
--- /dev/null
+++ b/debian/libvdpau1-gallium.install.in
@@ -0,0 +1 @@
+build/dri/${DEB_HOST_MULTIARCH}/gallium/libvdpau_* usr/lib/vdpau
diff --git a/debian/libxvmc1-gallium.install.in b/debian/libxvmc1-gallium.install.in
new file mode 100644
index 0000000..75e5a10
--- /dev/null
+++ b/debian/libxvmc1-gallium.install.in
@@ -0,0 +1 @@
+build/dri/${DEB_HOST_MULTIARCH}/gallium/libXvMC* usr/lib/
-- 
1.7.10.4
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Sat, 11 May 2013 01:18:04 GMT) (full text, mbox, link).


Acknowledgement sent to Phillip Susi <psusi@ubuntu.com>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>.

Your message did not contain a Subject field. They are recommended and useful because the title of a $gBug is determined using this field. Please remember to include a Subject field in your messages in future.

(Sat, 11 May 2013 01:18:05 GMT) (full text, mbox, link).


Message #190 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Phillip Susi <psusi@ubuntu.com>
To: 656719@bugs.debian.org
Date: Fri, 10 May 2013 21:15:59 -0400
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

any chance of this being applied some time soon?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iQEcBAEBAgAGBQJRjZvLAAoJEJrBOlT6nu75ITIH/Al8IPCAblqJ7Ts6420CYBDy
s4XTMJWAYwEMkR03oXIziDu3Y0xydz96kAbiTcBrjKQDpHJ7c3brjR4hjC1EBIx0
7uPxbzFP2ivY4iySwyVvGEt96tQbZnxaJo6W/a3rh0GhhVB2ujVJNhgM21DaFkV/
b8b3Qa8d8QdDYlUXm4dcu+mBcLbPPezVL42wzGvOc9fHx6qQzvnKWwvJ3c6SnZRu
DaoKqiXP8AhStfeYnLMSWyCEwD0CHdUiAv3K23MGT/grjajHLVQ0yAUGiqZprWee
+QidK3xH4qpdAm+9KW0ofK7hwiYlNjcXjpnxjdCze7IBBc2zPvqTm1NqZIl8gpo=
=Gmul
-----END PGP SIGNATURE-----



Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Sun, 09 Jun 2013 01:12:04 GMT) (full text, mbox, link).


Acknowledgement sent to Mikhail Kshevetskiy <mikhail.kshevetskiy@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Sun, 09 Jun 2013 01:12:04 GMT) (full text, mbox, link).


Message #195 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Mikhail Kshevetskiy <mikhail.kshevetskiy@gmail.com>
To: 656719@bugs.debian.org, Emilio Pozuelo Monfort <pochu@debian.org>
Cc: Cyril Brulebois <kibi@debian.org>, Fabio Pedretti <fabio.ped@libero.it>, Julien Cristau <jcristau@debian.org>
Subject: Re: Bug#656719: Please provide xvmc and vdpau Gallium3D video acceleration drivers
Date: Sun, 9 Jun 2013 05:08:46 +0400
[Message part 1 (text/plain, inline)]
This patch provide xvmc/vdpau support for mesa-9.1.3 from debian unstable.

changes:
  * add libxvmc1-gallium-drivers and libvdpau1-gallium-drivers packages
    to provide xvmc and vdpau video acceleration for Nvidia and AMD
    Radeon chips.
  * backport radeon UVD support from upstream mesa sources (linux >= 3.10
    and latest radeon firmware files required)

Building were tested on i386 and amd64 architectures.

Mikhail Kshevetskiy

[0001-add-xvmc-vdpau-support-add-UVD-support-for-radeon.patch (text/x-patch, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, goswin-v-b@web.de, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Fri, 12 Jul 2013 22:09:04 GMT) (full text, mbox, link).


Acknowledgement sent to Goswin von Brederlow <goswin-v-b@web.de>:
Extra info received and forwarded to list. Copy sent to goswin-v-b@web.de, Debian X Strike Force <debian-x@lists.debian.org>. (Fri, 12 Jul 2013 22:09:04 GMT) (full text, mbox, link).


Message #200 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Goswin von Brederlow <goswin-v-b@web.de>
To: Debian Bug Tracking System <656719@bugs.debian.org>
Subject: Re: Please provide xvmc and vdpau Gallium3D video acceleration drivers (libg3dvl-mesa package)
Date: Sat, 13 Jul 2013 00:04:49 +0200
Package: mesa
Version: 9.1.4
Followup-For: Bug #656719

The dependency on linux-firmware-nonfree should be firmware-linux-nonfree
instead.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=de_DE (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash



Marked as found in versions mesa/9.1.4; no longer marked as found in versions 9.1.4. Request was from Vincent Bernat <bernat@debian.org> to control@bugs.debian.org. (Thu, 10 Oct 2013 08:09:08 GMT) (full text, mbox, link).


Merged 656719 677886 723741 Request was from Vincent Bernat <bernat@debian.org> to control@bugs.debian.org. (Thu, 10 Oct 2013 08:09:09 GMT) (full text, mbox, link).


Marked as found in versions mesa/9.2.1-1. Request was from Vincent Bernat <bernat@debian.org> to control@bugs.debian.org. (Thu, 10 Oct 2013 08:15:12 GMT) (full text, mbox, link).


Added tag(s) experimental. Request was from Vincent Bernat <bernat@debian.org> to control@bugs.debian.org. (Thu, 10 Oct 2013 08:15:14 GMT) (full text, mbox, link).


Removed tag(s) experimental. Request was from Julien Cristau <jcristau@debian.org> to control@bugs.debian.org. (Thu, 10 Oct 2013 09:48:07 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Thu, 31 Oct 2013 23:33:04 GMT) (full text, mbox, link).


Acknowledgement sent to Paul Menzel <pm.debian@googlemail.com>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Thu, 31 Oct 2013 23:33:04 GMT) (full text, mbox, link).


Message #215 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Paul Menzel <pm.debian@googlemail.com>
To: 656719@bugs.debian.org
Cc: Michel Dänzer <daenzer@debian.org>, Fabio Pedretti <fabio.ped@libero.it>, Phillip Susi <psusi@ubuntu.com>, Mikhail Kshevetskiy <mikhail.kshevetskiy@gmail.com>, Emilio Pozuelo Monfort <pochu@debian.org>, Goswin von Brederlow <goswin-v-b@web.de>, Vincent Bernat <bernat@debian.org>
Subject: Re: [PATCH v5 1/3] Add Gallium VDPAU and XvMC driver support (#656719)
Date: Fri, 01 Nov 2013 00:29:27 +0100
[Message part 1 (text/plain, inline)]
Dear Debian folks,


Am Mittwoch, den 27.06.2012, 12:33 +0200 schrieb Paul Menzel:
> From: Fabio Pedretti <fabio.ped@libero.it>
> Date: Sun, 29 Jan 2012 21:00:57 +0100
> 
> Since version 8.0 Mesa provides XvMC and VDPAU Gallium3D video
> acceleration drivers.

[…]

as I understand it, these packages are still needed to use for example
the UVD on Radeon chips for video decoding, right?

As Debian Wheezy has been released, what do the maintainers propose on
how to proceed with this report?

[…]


Thanks,

Paul
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Sun, 10 Nov 2013 13:39:04 GMT) (full text, mbox, link).


Acknowledgement sent to Stefan Fritsch <sf@sfritsch.de>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Sun, 10 Nov 2013 13:39:04 GMT) (full text, mbox, link).


Message #220 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Stefan Fritsch <sf@sfritsch.de>
To: 656719@bugs.debian.org
Subject: Please provide xvmc and vdpau Gallium3D video acceleration drivers
Date: Sun, 10 Nov 2013 14:35:16 +0100
[Message part 1 (text/plain, inline)]
It would be nice if you could add these drivers. That would mean one 
less reason to use the proprietary fglrx driver.

Attached is Mikhail's diff adjusted to 9.2.2-1
[mesa_9.2.2-1.1.debdiff (text/x-patch, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Sun, 10 Nov 2013 14:06:04 GMT) (full text, mbox, link).


Acknowledgement sent to Vincent Bernat <bernat@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Sun, 10 Nov 2013 14:06:04 GMT) (full text, mbox, link).


Message #225 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Vincent Bernat <bernat@debian.org>
To: Stefan Fritsch <sf@sfritsch.de>
Cc: 656719@bugs.debian.org
Subject: Re: Bug#656719: Please provide xvmc and vdpau Gallium3D video acceleration drivers
Date: Sun, 10 Nov 2013 15:03:45 +0100
[Message part 1 (text/plain, inline)]
 ❦ 10 novembre 2013 14:35 CET, Stefan Fritsch <sf@sfritsch.de> :

> It would be nice if you could add these drivers. That would mean one 
> less reason to use the proprietary fglrx driver.

Indeed, it would be nice. I was planning on proposing a patch but we now
have one (and pretty simple one).
-- 
panic("Lucy in the sky....");
	2.2.16 /usr/src/linux/arch/sparc64/kernel/starfire.c
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Sun, 10 Nov 2013 16:03:04 GMT) (full text, mbox, link).


Acknowledgement sent to Vincent Bernat <bernat@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Sun, 10 Nov 2013 16:03:04 GMT) (full text, mbox, link).


Message #230 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Vincent Bernat <bernat@debian.org>
To: Stefan Fritsch <sf@sfritsch.de>
Cc: 656719@bugs.debian.org
Subject: Re: Bug#656719: Please provide xvmc and vdpau Gallium3D video acceleration drivers
Date: Sun, 10 Nov 2013 17:01:47 +0100
[Message part 1 (text/plain, inline)]
 ❦ 10 novembre 2013 15:03 CET, Vincent Bernat <bernat@debian.org> :

>> It would be nice if you could add these drivers. That would mean one 
>> less reason to use the proprietary fglrx driver.
>
> Indeed, it would be nice. I was planning on proposing a patch but we now
> have one (and pretty simple one).

The patch works fine for me. Processor usage has dropped
noticeably. When using VDPAU with mplayer, I notice a tearing line at
the center of the screen when running in fullscreen.
-- 
printk(KERN_WARNING "%s: Short circuit detected on the lobe\n",
dev->name);
	2.4.0-test2 /usr/src/linux/drivers/net/tokenring/lanstreamer.c
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Wed, 11 Dec 2013 12:45:09 GMT) (full text, mbox, link).


Acknowledgement sent to eric2.valette@orange.com:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Wed, 11 Dec 2013 12:45:09 GMT) (full text, mbox, link).


Message #235 received at 656719@bugs.debian.org (full text, mbox, reply):

From: VALETTE Eric OLNC/OLPS <eric2.valette@orange.com>
To: 656719@bugs.debian.org
Subject: Add Patches to implement support for NVIDIA's VDPAU interoperability OpenGL extension within Mesa/Gallium3D
Date: Wed, 11 Dec 2013 13:36:25 +0100
I tried the patch and indeed it works. However, when trying to use XBMC 
on top of  it, it barks and does not work because the patches mentioned 
in the title are not yet in.
So please provide a mesa version that has it (I think both 9.2.4 and 
10.0 have it).

-- eric




Information forwarded to debian-bugs-dist@lists.debian.org, hramrach@gmail.com, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Tue, 24 Dec 2013 09:57:05 GMT) (full text, mbox, link).


Acknowledgement sent to Michal Suchanek <hramrach@gmail.com>:
Extra info received and forwarded to list. Copy sent to hramrach@gmail.com, Debian X Strike Force <debian-x@lists.debian.org>. (Tue, 24 Dec 2013 09:57:05 GMT) (full text, mbox, link).


Message #240 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Michal Suchanek <hramrach@gmail.com>
To: Debian Bug Tracking System <656719@bugs.debian.org>
Subject: Re: Please provide xvmc and vdpau Gallium3D video acceleration drivers (libg3dvl-mesa package)
Date: Tue, 24 Dec 2013 10:37:23 +0100
[Message part 1 (text/plain, inline)]
Source: mesa
Followup-For: Bug #656719

Hello,

Sending the debdiff updated for mesa 10.

Both mesa 9.2.2 and mesa 10 work for vdpau playback on Cedar (radeon).

Thanks

Michal

-- System Information:
Debian Release: 7.3
  APT prefers stable
  APT policy: (990, 'stable'), (171, 'unstable'), (151, 'experimental'), (121, 'precise-updates'), (121, 'precise-security'), (121, 'precise'), (101, 'stable'), (101, 'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.11-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
[mesa_10.0.1-1-vdpau.diff (text/x-diff, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Wed, 29 Jan 2014 12:09:14 GMT) (full text, mbox, link).


Acknowledgement sent to Alexander Sitnik <alex.sitnik@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Wed, 29 Jan 2014 12:09:14 GMT) (full text, mbox, link).


Message #245 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Alexander Sitnik <alex.sitnik@gmail.com>
To: 656719@bugs.debian.org
Subject: Re: Please provide xvmc and vdpau Gallium3D video acceleration drivers (libg3dvl-mesa package)
Date: Wed, 29 Jan 2014 16:06:08 +0400
[Message part 1 (text/plain, inline)]
Hi, mesa maintainers,

I've tried to rebuild mesa 10.0.2-1 from experimental with Michal's patch.
I were interested only in VDPAU and after week of testing I can say that it
works fine on my Radeon HD5670. Both mplayer and flashplugin-nonfree use it
and there is no visual glitches with it. CPU load also much lower as it was
expected.

Please enable VDPAU in mesa packages.
Thanks.
[Message part 2 (text/html, inline)]

Disconnected #723741 from all other report(s). Request was from Andreas Boll <andreas.boll.dev@gmail.com> to control@bugs.debian.org. (Tue, 04 Mar 2014 18:42:07 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Sat, 22 Mar 2014 18:06:28 GMT) (full text, mbox, link).


Acknowledgement sent to Pali Rohár <pali.rohar@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Sat, 22 Mar 2014 18:06:28 GMT) (full text, mbox, link).


Message #252 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Pali Rohár <pali.rohar@gmail.com>
To: 656719@bugs.debian.org
Subject: Re: Please provide xvmc and vdpau Gallium3D video acceleration drivers (libg3dvl-mesa package)
Date: Sat, 22 Mar 2014 19:03:52 +0100
Hello!

It looks like nouveau, r600 and radeonsi vdpau drivers are already in
debian repository. But not xvmc libraries. See:

https://packages.debian.org/sid/mesa-vdpau-drivers
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=705558#24

-- 
Pali Rohár
pali.rohar@gmail.com



Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Sun, 23 Mar 2014 20:21:04 GMT) (full text, mbox, link).


Acknowledgement sent to Julien Cristau <jcristau@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Sun, 23 Mar 2014 20:21:04 GMT) (full text, mbox, link).


Message #257 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Julien Cristau <jcristau@debian.org>
To: Pali Rohár <pali.rohar@gmail.com>, 656719@bugs.debian.org
Subject: Re: Bug#656719: Please provide xvmc and vdpau Gallium3D video acceleration drivers (libg3dvl-mesa package)
Date: Sun, 23 Mar 2014 21:19:01 +0100
[Message part 1 (text/plain, inline)]
On Sat, Mar 22, 2014 at 19:03:52 +0100, Pali Rohár wrote:

> Hello!
> 
> It looks like nouveau, r600 and radeonsi vdpau drivers are already in
> debian repository. But not xvmc libraries. See:
> 
Correct, we're probably not going to be enabling xvmc.

Cheers,
Julien
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Sun, 23 Mar 2014 21:57:04 GMT) (full text, mbox, link).


Acknowledgement sent to Pali Rohár <pali.rohar@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Sun, 23 Mar 2014 21:57:04 GMT) (full text, mbox, link).


Message #262 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Pali Rohár <pali.rohar@gmail.com>
To: Julien Cristau <jcristau@debian.org>
Cc: 656719@bugs.debian.org
Subject: Re: Bug#656719: Please provide xvmc and vdpau Gallium3D video acceleration drivers (libg3dvl-mesa package)
Date: Sun, 23 Mar 2014 22:52:18 +0100
2014-03-23 21:19 GMT+01:00 Julien Cristau <jcristau@debian.org>:
> On Sat, Mar 22, 2014 at 19:03:52 +0100, Pali Rohár wrote:
>
>> Hello!
>>
>> It looks like nouveau, r600 and radeonsi vdpau drivers are already in
>> debian repository. But not xvmc libraries. See:
>>
> Correct, we're probably not going to be enabling xvmc.
>
> Cheers,
> Julien

Can I ask for reason why not to enable also xvmc?

-- 
Pali Rohár
pali.rohar@gmail.com



Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Tue, 25 Mar 2014 17:39:05 GMT) (full text, mbox, link).


Acknowledgement sent to Fabio Pedretti <fabio.ped@libero.it>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Tue, 25 Mar 2014 17:39:05 GMT) (full text, mbox, link).


Message #267 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Fabio Pedretti <fabio.ped@libero.it>
To: <pali.rohar@gmail.com>, Julien Cristau <jcristau@debian.org>
Cc: <656719@bugs.debian.org>
Subject: R: Bug#656719: Please provide xvmc and vdpau Gallium3D video acceleration drivers (libg3dvl-mesa package)
Date: Tue, 25 Mar 2014 18:37:51 +0100 (CET)
>2014-03-23 21:19 GMT+01:00 Julien Cristau <jcristau@debian.org>:
>> On Sat, Mar 22, 2014 at 19:03:52 +0100, Pali Rohár wrote:
>>
>>> Hello!
>>>
>>> It looks like nouveau, r600 and radeonsi vdpau drivers are already in
>>> debian repository. But not xvmc libraries. See:
>>>
>> Correct, we're probably not going to be enabling xvmc.
>>
>> Cheers,
>> Julien
>
>Can I ask for reason why not to enable also xvmc?
>
>-- 
>Pali Rohár
>pali.rohar@gmail.com

There are apparently only two Debian packages that can leverage XvMC support: 
mplayer and gxine. Other not packaged software may also use it anyway. Other 
packages (not many, however) can use VDPAU (supported by open source mesa 
drivers).

However the current status doesn't make a lot of sense: some software could 
use XvMC but free mesa drivers are not provided. Since xvmc library is 
supported in Debian I suppose free mesa drivers should also be provided. If we 
don't want to support open source XvMC drivers we should also consider 
deprecating libxvmc and recompiling software packages without it.

There may be also other technical (bugs or missing features) or non technical 
(no developer care enough to do it or is able to test it or whatever was the 
reason VDPAU took over 2 years to be packaged or glamor is still not) reasons 
not to provide xvmc mesa drivers but I don't know them.



Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Wed, 26 Mar 2014 15:21:05 GMT) (full text, mbox, link).


Acknowledgement sent to Pali Rohár <pali.rohar@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Wed, 26 Mar 2014 15:21:05 GMT) (full text, mbox, link).


Message #272 received at 656719@bugs.debian.org (full text, mbox, reply):

From: Pali Rohár <pali.rohar@gmail.com>
To: Fabio Pedretti <fabio.ped@libero.it>
Cc: Julien Cristau <jcristau@debian.org>, 656719@bugs.debian.org
Subject: Re: Bug#656719: Please provide xvmc and vdpau Gallium3D video acceleration drivers (libg3dvl-mesa package)
Date: Wed, 26 Mar 2014 16:17:21 +0100
Right, it does not make sense to have in debian repository free
applications with enabled xvmc support and disabled (not included)
free xvmc drivers in repository.



Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#656719; Package src:mesa. (Mon, 16 Jan 2017 18:09:02 GMT) (full text, mbox, link).


Acknowledgement sent to "USPS Ground" <sean.swenson@khauk-associates.com>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Mon, 16 Jan 2017 18:09:02 GMT) (full text, mbox, link).


Message #277 received at 656719@bugs.debian.org (full text, mbox, reply):

From: "USPS Ground" <sean.swenson@khauk-associates.com>
To: 656719@bugs.debian.org
Subject: Notification status of your delivery (USPS 005357462)
Date: Mon, 16 Jan 2017 02:24:49 -0800
[Message part 1 (text/plain, inline)]
Dear Customer,



This is to confirm that your item has been shipped at January 13.



You can find more details in this e-mail attachment!



With sincere thanks,

Sean Swenson,

USPS Senior Station Manager.

[Undelivered-Parcel-ID-005357462.zip (application/zip, attachment)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jan 14 01:58:20 2018; Machine Name: beach

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.