ports/164571: [PATCH] emulators/qemu-devel: fix pkg-plist

Jimmy Olgeni olgeni at FreeBSD.org
Sat Jan 28 13:50:07 UTC 2012


>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 at 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
- at exec if [ ! -f %D/etc/qemu/target-x86_64.conf ] ; then cp -p %D/%F %B/etc/qemu/target-x86_64.conf; fi
+ at 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:



More information about the freebsd-ports-bugs mailing list