FS#45208 - [qemu] use modules feature to make network block drivers optional

Attached to Project: Arch Linux
Opened by Peter Wu (Lekensteyn) - Thursday, 04 June 2015, 19:37 GMT
Last edited by Sébastien Luttringer (seblu) - Tuesday, 28 July 2015, 13:19 GMT
Task Type Feature Request
Category Packages: Testing
Status Closed
Assigned To Tobias Powalowski (tpowa)
Sébastien Luttringer (seblu)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No


The qemu package only keeps growing. Recently 2.3.0-3 added a dependency on ceph which would pull in another 132 MiB.

Have you considered --enable-modules? That would in theory allow an optdepends on such large dependencies. I do get a "/usr/bin/ld: block/iscsi.o: relocation R_X86_64_PC32 against undefined symbol `error_abort' can not be used when making a shared object; recompile with -fPIC" error though when compiling with that option.

But anyway, has this option been considered? It should not add a great burden on package maintainers while allowing for making unused, large dependencies optional.
This task depends upon

This task blocks these from closing
 FS#45819 - [qemu] Think glusterfs needs to be a depends 
Closed by  Sébastien Luttringer (seblu)
Tuesday, 28 July 2015, 13:19 GMT
Reason for closing:  Implemented
Comment by Bartłomiej Piotrowski (Barthalion) - Monday, 08 June 2015, 09:00 GMT
Unsurprisingly adding -fPIC to CFLAGS fixes the build. I'll try to push it to [testing] this week, but I encourage Tobias and Sebastien to do that instead.
Comment by Peter Wu (Lekensteyn) - Friday, 24 July 2015, 18:06 GMT
Ping? Will this be fixed in 2.3.0 or are you postponing it to 2.4?
Comment by Sébastien Luttringer (seblu) - Saturday, 25 July 2015, 00:33 GMT
I pushed a version with enable-modules and glusterfs support. So I moved/added (ssh, curl, ceph, glusterfs) as optdeps.

Note that qemu 2.3 doesn't build with last spice-protocol release. I didn't test with 2.4 rc2.

Please let me know if you notice some issue with the new package.