ports/86379: Port emulators/qemu: broken package if compiled with kqemu

Björn König bkoenig at cs.tu-berlin.de
Tue Sep 20 18:50:15 UTC 2005


>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:



More information about the freebsd-ports-bugs mailing list