FS#36654 - [devtools] Can't build bzr packages using devtools

Attached to Project: Arch Linux
Opened by Maxime Gauduin (Alucryd) - Saturday, 24 August 2013, 11:59 GMT
Last edited by Pierre Schmitz (Pierre) - Saturday, 02 November 2013, 22:10 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Pierre Schmitz (Pierre)
Architecture All
Severity Low
Priority Normal
Reported Version 4.1.2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Trying to build a bzr package using devtools in a clean chroot will fail because bzr does not have write permissions in /srcdest.

Example when trying to build granite-bzr:

==> Retrieving sources...
==> Validating source files with sha256sums...
granite ... Skipped
==> Extracting sources...
-> Creating working copy of granite bzr repo...
No handlers could be found for logger "bzr"
bzr: ERROR: Cannot lock LockDir(file:///srcdest/granite/.bzr/branch/lock): Transport error: [Errno 30] Read-only file system: '/srcdest/granite/.bzr/branch/lock/6kef89w7x4.tmp' [Errno 30] Read-only file system: '/srcdest/granite/.bzr/branch/lock/6kef89w7x4.tmp'
==> ERROR: Failure while creating working copy of granite bzr repo
Aborting...
==> ERROR: Build failed, check /var/lib/archbuild/extra-x86_64/alucryd/build

What would be the best approach for this: running bzr as root or making /srcdest rw?
This task depends upon

Closed by  Pierre Schmitz (Pierre)
Saturday, 02 November 2013, 22:10 GMT
Reason for closing:  Fixed
Comment by Maxime Gauduin (Alucryd) - Monday, 23 September 2013, 11:11 GMT
FYI, I've sent a patch for this some time ago: https://patchwork.archlinux.org/patch/1487/
Comment by Markus M. May (triplem) - Monday, 28 October 2013, 19:22 GMT
Tested the above patch, seems to work nicely ;-)

A good package to test is e.g. grub, which can be build using the usual makepkg, but not with makechrootpkg, after this patch, makechrootpkg works as well.

Loading...