NetBSD Problem Report #51604

From www@NetBSD.org  Sun Nov  6 04:50:03 2016
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 1EAF37A217
	for <gnats-bugs@gnats.NetBSD.org>; Sun,  6 Nov 2016 04:50:03 +0000 (UTC)
Message-Id: <20161106045001.DC9077A2CC@mollari.NetBSD.org>
Date: Sun,  6 Nov 2016 04:50:01 +0000 (UTC)
From: davshao@gmail.com
Reply-To: davshao@gmail.com
To: gnats-bugs@NetBSD.org
Subject: x11/xfce4-tumbler PLIST_VARS aren't actually used in PLIST
X-Send-Pr-Version: www-1.0

>Number:         51604
>Category:       pkg
>Synopsis:       x11/xfce4-tumbler PLIST_VARS aren't actually used in PLIST
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    youri
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 06 04:55:00 +0000 2016
>Last-Modified:  Sun Nov 06 09:24:02 +0000 2016
>Originator:     David Shao
>Release:        current pkgsrc
>Organization:
>Environment:
DragonFly  4.7-DEVELOPMENT DragonFly v4.7.0.777.g55bcc-DEVELOPMENT #2: Sat Nov  5 19:57:01 PDT 2016     xxxxxx@:/usr/obj/usr/src/sys/X86_64_GENERIC  x86_64

>Description:
For current pkgsrc x11/xfce4-tumbler, some effort has been made to give in options.mk an option to not build with say multimedia/ffmpegthumbnailer.  Unfortunately the PLIST_VARS defined in options.mk are not actually used in PLIST, so that

bmake install package

fails on for example DragonFly 4.7-DEVELOPMENT with the line

PKG_OPTIONS.tumbler= -ffmpegthumbnailer

added to /usr/pkg/etc/mk.conf


>How-To-Repeat:

>Fix:
If only dealing with ffmpegthumbnailer, the following patch allows

bmake install package clean

to work on DragonFly 4.7-DEVELOPMENT; however, the other PLIST_VARS from options.mk might need to be used in PLIST as well.

diff -Nur x11/xfce4-tumbler/PLIST x11/xfce4-tumbler.new/PLIST
--- x11/xfce4-tumbler/PLIST	2015-04-21 01:56:45.000000000 -0700
+++ x11/xfce4-tumbler.new/PLIST	2016-11-05 21:34:25.601370000 -0700
@@ -21,7 +21,7 @@
 lib/tumbler-1/plugins/cache/tumbler-cache-plugin.so
 lib/tumbler-1/plugins/cache/tumbler-xdg-cache.la
 lib/tumbler-1/plugins/tumbler-cover-thumbnailer.la
-lib/tumbler-1/plugins/tumbler-ffmpeg-thumbnailer.la
+${PLIST.ffmpegthumbnailer}lib/tumbler-1/plugins/tumbler-ffmpeg-thumbnailer.la
 lib/tumbler-1/plugins/tumbler-font-thumbnailer.la
 lib/tumbler-1/plugins/tumbler-jpeg-thumbnailer.la
 lib/tumbler-1/plugins/tumbler-odf-thumbnailer.la

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->youri
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Sun, 06 Nov 2016 09:24:02 +0000
Responsible-Changed-Why:
Over to maintainer


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.