Date: Tue, 20 Sep 2005 20:47:10 +0200 From: "Björn König" <bkoenig@cs.tu-berlin.de> To: FreeBSD-gnats-submit@FreeBSD.org Cc: nox@jelal.kn-bremen.de Subject: ports/86379: Port emulators/qemu: broken package if compiled with kqemu Message-ID: <20050920184710.619E433251B@eurystheus.local> Resent-Message-ID: <200509201850.j8KIo9G3077585@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 86379 >Category: ports >Synopsis: Port emulators/qemu: broken package if compiled with kqemu >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Sep 20 18:50:09 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Björn König >Release: FreeBSD 6.0-BETA4 i386 >Organization: >Environment: >Description: In case you compiled a package of the port emulators/qemu with the option WITH_KQEMU=yes the installation of this package fails because the absolute path of the kernel module is specified in the package list. The following error message occurs: tar: /boot/kernel/kqemu.ko: Cannot stat: No such file or directory tar: Error opening archive: Empty input file: Inappropriate file type or format pkg_add: extract_plist: can not invoke 73 byte tar pipeline: /usr/bin/tar cf - /boot/kernel/kqemu.ko|/usr/bin/tar --unlink -xpf - -C / It is necessary to strip the leading slash from /boot/kernel/kqemu.ko. >How-To-Repeat: # mkdir /usr/ports/packages # cd /usr/ports/emulators/qemu # make -DWITH_KQEMU package clean # pkg_delete 'qemu*' # pkg_add /usr/ports/packages/Latest/qemu.tbz >Fix: --- qemu-050920.diff begins here --- --- Makefile.orig Tue Sep 20 18:55:43 2005 +++ Makefile Tue Sep 20 18:56:14 2005 @@ -43,7 +43,7 @@ NO_PACKAGE= Depends on kernel, and module not redistributable CONFIGURE_ARGS+= --enable-kqemu PLIST_SUB= WITH_KQEMU="" -PLIST_SUB+= KMODDIR=${KMODDIR} +PLIST_SUB+= KMODDIR=${KMODDIR:C/^\///} .else CONFIGURE_ARGS+= --disable-kqemu PLIST_SUB= WITH_KQEMU="@comment " --- qemu-050920.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050920184710.619E433251B>