Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#14631 - [kvm] Simplify KVM PKGBUILD

Attached to Project: Arch Linux
Opened by Damjan Georgievski (damjan) - Friday, 08 May 2009, 13:02 GMT
Last edited by Tobias Powalowski (tpowa) - Thursday, 21 May 2009, 17:10 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I've successfully made a KVM package with the following steps:

{
cd ${srcdir}/${pkgname}-${pkgver}
./configure --prefix=/usr --audio-drv-list=alsa,sdl,oss,esd --with-patched-kernel
make
make DESTDIR=${pkgdir} install

# symbolic link for backwards compatibility
ln -s qemu-system-x86_64 ${pkgdir}/usr/bin/qemu-kvm
# install udev rule
install -D -m644 ${srcdir}/65-kvm.rules \
${pkgdir}/lib/udev/rules.d/65-kvm.rules
}

so a lot of the cruft (I guess it accumulated over the years) is not needed.

The changes are:
- add "--with-patched-kernel" so that it doesn't try to compile the kernel module
- just use make and make install, they work just ok
- remove the fix for sdl compilation - not needed
- remove kqemu rules file - kvm doesn't support kqemu anyway

also, the zlib and e2fsprogs dependencies seem to not be needed acording to namcap.

Attached is the whole revised PKGBUILD file
This task depends upon

Closed by  Tobias Powalowski (tpowa)
Thursday, 21 May 2009, 17:10 GMT
Reason for closing:  Fixed
Additional comments about closing:  kvm-86
Comment by Damjan Georgievski (damjan) - Friday, 08 May 2009, 13:06 GMT
I'd also suggest removing the esound dependency (by using "--audio-drv-list=alsa,sdl,oss" in the configure line), but I don't know if there's a consensus in the Arch community about phasing out Esound ?
Comment by Damjan Georgievski (damjan) - Friday, 08 May 2009, 14:58 GMT
While at this, I guess make and make install should be guarded with a " || return 1" like most other packages have

so:
make || return 1
make install DESTDIR=${pkgdir} || return 1

Loading...