Bug#781485: Processed: reassign 781485 to pbuilder
Mattia Rizzolo
mattia at mapreri.org
Mon Mar 30 21:24:51 UTC 2015
control: reopen -1
control: reassign -1 libeatmydata1/82-6
control: owner -1 !
control: retitle -1 eatmydata: please document how to *correctly* use the library with chroots without using the eatmydata wrapper
On Tue, Mar 31, 2015 at 09:34:56AM +1300, Francois Marier wrote:
> > The actual question for the OP is: given that pbuilder has no direct
> > support for libeatmydata, and neither does gbp, how did you configure the
> > whole machinery?
> I just realized that I added this (and then totally forgot about it) to
> ~/.pbuilderrc about 5 years ago [1]:
>
> BINDMOUNTS="/var/cache/apt/archives"
> APTCACHE=""
> EXTRAPACKAGES="eatmydata"
>
> if [ -z "$LD_PRELOAD" ]; then
> LD_PRELOAD=/usr/lib/libeatmydata/libeatmydata.so
> else
> LD_PRELOAD="$LD_PRELOAD":/usr/lib/libeatmydata/libeatmydata.so
> fi
> export LD_PRELOAD
>
> So, I owe you all an apology for wasting your time, and sincere thanks for
> looking into it so quickly!
>
>
> [1] Based on https://np237.livejournal.com/29608.html
Actually there are really too many posts like this in the wide wild web.
I reassigned this bug to libeatmydata. I think I'll write a README.Debian file,
which will be available in /usr/share/doc/libeatmydata1/README.Debian to
document how to properly use libeatmydata with pbuilder.
For reference, the best method currently available is the one currently used by
the eatmydata wrapper:
LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+"$LD_LIBRARY_PATH:"}/usr/lib/libeatmydata
LD_PRELOAD=${LD_PRELOAD:+"$LD_PRELOAD "}libeatmydata.so
export LD_LIBRARY_PATH LD_PRELOAD
please also think about using the eatmydata wrapper. It got written for a
reason.
For people which lack shell maestry (I had difficults to understand what this
means the first time I saw this) the '${var:+"var"}/path/to/something' variable
definition means (more or less) "if variable is defined and non-empty, then
redefine it with the previous content, a colon, and then the text
"/path/to/something".
--
regards,
Mattia Rizzolo
GPG Key: 66AE 2B4A FCCF 3F52 DA18 4D18 4B04 3FCD B944 4540 .''`.
more about me: http://mapreri.org : :' :
Launchpad user: https://launchpad.net/~mapreri `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia `-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pbuilder-maint/attachments/20150330/63574051/attachment-0001.sig>
More information about the Pbuilder-maint
mailing list