Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Jan 2012 14:49:30 +0100 (CET)
From:      Jimmy Olgeni <olgeni@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        nox@FreeBSD.org
Subject:   ports/164571: [PATCH] emulators/qemu-devel: fix pkg-plist
Message-ID:  <201201281349.q0SDnUmN098569@backoffice.colby.local>
Resent-Message-ID: <201201281350.q0SDo6Rq017392@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         164571
>Category:       ports
>Synopsis:       [PATCH] emulators/qemu-devel: fix pkg-plist
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 28 13:50:06 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Jimmy Olgeni
>Release:        FreeBSD 9.0-STABLE amd64
>Organization:
>Environment:
System: FreeBSD olgeni 9.0-STABLE FreeBSD 9.0-STABLE #0: Fri Jan 20 22:16:29 CET 2012
>Description:

When installing qemu-devel by package the following error is displayed:

cp: /usr/local/etc/qemu/etc/qemu/target-x86_64.conf: No such file or directory
pkg_add: command 'if [ ! -f /usr/local/etc/qemu/target-x86_64.conf ] ; then cp -p /usr/local/etc/qemu/target-x86_64.conf.sample /usr/local/etc/qemu/etc/qemu/target-x86_64.conf; fi' failed

A typo (%B rather than %D) makes the target path come out wrong by expanding "etc/qemu" twice.

Port maintainer (nox@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- qemu-devel-1.0_2.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/emulators/qemu-devel/Makefile,v
retrieving revision 1.133
diff -u -u -r1.133 Makefile
--- Makefile	12 Dec 2011 18:35:47 -0000	1.133
+++ Makefile	28 Jan 2012 13:43:50 -0000
@@ -7,7 +7,7 @@
 
 PORTNAME=	qemu
 PORTVERSION=	1.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	emulators
 MASTER_SITES=	http://wiki.qemu.org/download/qemu/:release \
 		LOCAL/nox:release \
Index: pkg-plist
===================================================================
RCS file: /home/pcvs/ports/emulators/qemu-devel/pkg-plist,v
retrieving revision 1.33
diff -u -u -r1.33 pkg-plist
--- pkg-plist	2 Dec 2011 19:28:07 -0000	1.33
+++ pkg-plist	28 Jan 2012 13:43:50 -0000
@@ -37,7 +37,7 @@
 @exec if [ ! -f %D/etc/qemu-ifdown ] ; then cp -p %D/%F %B/qemu-ifdown; fi
 @unexec if cmp -s %D/etc/qemu/target-x86_64.conf.sample %D/etc/qemu/target-x86_64.conf; then rm -f %D/etc/qemu/target-x86_64.conf; fi
 etc/qemu/target-x86_64.conf.sample
-@exec if [ ! -f %D/etc/qemu/target-x86_64.conf ] ; then cp -p %D/%F %B/etc/qemu/target-x86_64.conf; fi
+@exec if [ ! -f %D/etc/qemu/target-x86_64.conf ] ; then cp -p %D/%F %D/etc/qemu/target-x86_64.conf; fi
 @dirrmtry etc/qemu
 %%DATADIR%%/bios.bin
 %%DATADIR%%/vgabios.bin
--- qemu-devel-1.0_2.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201281349.q0SDnUmN098569>