Bug#617409: [Pkg-libburnia-devel] Bug#617409: brasero: Brasero corrupts all blank CD-R when burning (was: additional info)

George Danchev danchev at spnet.net
Sat Jul 7 18:14:00 UTC 2012


On Saturday 07 July 2012 19:28:53 Thomas Schmitt wrote:
> Hi,
> 
> Simon Wenner wrote:
> > xorriso seems to work as expected.
> 
> Your report and the one of Alain Rpnpif support the theory that your drives
> dislike CD write type TAO with your particular CD media or in general.
> I failed to force Brasero into using the other write type. (Details below.)
> 
> I see in Brasero 2.30.3 source code in file
>   ./plugins/libburnia/burn-libburn.c
> 
>         if (flags & BRASERO_BURN_FLAG_DAO)
>                 burn_write_opts_set_write_type (opts,
>                                                 BURN_WRITE_SAO,
>                                                 BURN_BLOCK_SAO);
>         else {
>                 burn_write_opts_set_write_type (opts,
>                                                 BURN_WRITE_TAO,
>                                                 BURN_BLOCK_MODE1);
> 
> If you can modify that code, so that both become
>                                                 BURN_WRITE_SAO,
>                                                 BURN_BLOCK_SAO);
> then you cripple it for appendable CD and some DVD, but would force it to
> use SAO on blank CDs.
> 
> I am willing to bet 1 eurocent on this CD being readable.

Let's see :)

> George or Paul:
> Can you provide Simon and Alain with a patch that does this to the Debian
> source of Brasero in Wheezy ?
> Just change all calls of burn_write_opts_set_write_type() to send the
> same parameters as the one with BURN_WRITE_SAO.

get the source package (apt-get source) and just edit
plugins/libburnia/burn-libburn.c then

george at sid:/tmp/brasero-3.4.1$ dpkg-source --commit 
dpkg-source: info: local changes detected, the modified files are:
 brasero-3.4.1/plugins/libburnia/burn-libburn.c
Enter the desired patch name: libburn-cd-sao
dpkg-source: info: local changes have been recorded in a new patch: 
brasero-3.4.1/debian/patches/libburn-cd-sao

The modification is already applied, thus build with:

george at sid:/tmp/brasero-3.4.1$ dpkg-buildpackage

> (Program will be usable just for testing with blank CD, not for production.
>  A proposal for a better remedy would follow in case of success.)
> 
> 
> ------------------------------------------------------------------------
> Lengthy reasoning and experiments:
> 
> The version distributed by Debian is based on the same libburn
> and the same libisofs as Brasero.
> 
> But better check this by ldd:

On my sid, these are as expected:

>   $ ldd /usr/bin/xorriso | grep libisofs

# ldd /usr/bin/xorriso | grep libisofs
        libisofs.so.6 => /usr/lib/libisofs.so.6 (0x00007f913488b000)

>   $ ldd /usr/lib/brasero-0/plugins/libbrasero-libisofs.so | grep libisofs

# ldd /usr/lib/brasero3-1/plugins/libbrasero-libisofs.so | grep libisofs
        libisofs.so.6 => /usr/lib/libisofs.so.6 (0x00007f2945053000)

>   $ ldd /usr/bin/xorriso | grep libburn

# ldd /usr/bin/xorriso | grep libburn
        libburn.so.4 => /usr/lib/libburn.so.4 (0x00007fa403dc2000)

>   $ ldd /usr/lib/brasero-0/plugins/libbrasero-libburn.so | grep libburn

# ldd /usr/lib/brasero3-1/plugins/libbrasero-libburn.so | grep libburn
        libburn.so.4 => /usr/lib/libburn.so.4 (0x00007fa6810c0000)

-- 
pub 4096R/0E4BD0AB <people.fccf.net/danchev/key pgp.mit.edu>





More information about the pkg-gnome-maintainers mailing list