From owner-freebsd-ports-bugs@freebsd.org Fri Aug 28 10:33:05 2015 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AE3559C201C for ; Fri, 28 Aug 2015 10:33:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 99F19DF8 for ; Fri, 28 Aug 2015 10:33:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id t7SAX5SW087941 for ; Fri, 28 Aug 2015 10:33:05 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 202404] [MAINTAINER] multimedia/mplayer2: updates to Makefile Date: Fri, 28 Aug 2015 10:33:05 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Aug 2015 10:33:05 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D202404 --- Comment #37 from Jan Beich --- Comment on attachment 160430 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D160430 v9 Let me try to enumerate what haven't landed yet. I wonder if a single blob commit is OK. - Expose A52, ENCA, DVDREAD, DVDNAV, RTCPU as options - Hide WIN32 option on non-i386 architectures - Drop no longer supported OSVERSION range - Drop DEBUG and PACKAGE_BUILDING hacks - Convert to option helpers - Sort options > + --disable-liba52 \ I thought you've converted it into A52 option since v6. > -ENCA_LIB_DEPENDS=3D libenca.so:${PORTSDIR}/converters/enca > -ENCA_CONFIGURE_OFF=3D --disable-enca Why remove since v8? mplayer2 directly links against libenca with ASS=3Don due to libass package having ENCA=3Don by default. Hidden dependencies make build unpredictable and may cause issues e.g., - libenca ABI changed -> bump PORTREVISION of consumers - libass is rebuilt with ENCA=3Doff then libenca can be pruned by |pkg autoremove| Maybe also make ENCA=3Don by default to keep the feature intact for users of freebsd.org packages. >+OPTIONS_DEFINE=3D A52 ASS CACA DEBUG DV DVDREAD DVDNAV GIF IPV6 JACK LADS= PA \ >+ LIBBLURAY LIBCDIO LIRC MAD OPENGL PORTAUDIO PULSEAUDIO \ >+ REALPLAYER RTC RTCPU SDL SMB SPEEX THEORA V4L VDPAU X11 XINERAMA The option is guarded in configure, so you need to provide it only for specific architectures. And it may need to be enabled by default to keep the feature for packages users intact. if test "$_runtime_cpudetection" =3D yes && ! x86 && ! ppc; then die "Runtime CPU detection only works for x86, x86-64 and PPC!" fi See below WIN32 example but ignore !PACKAGE_BUILDING guard. > .if !defined(PACKAGE_BUILDING) >+OPTIONS_DEFINE_i386+=3D WIN32 >+OPTIONS_DEFAULT_i386+=3D WIN32 > .endif > -WIN32_DESC=3D Win32 codec pack support > +WIN32_DESC=3D Enable win32 codec Why?=20 "Enable" is a noise word and can be removed from local descriptions for other options as well (as part of options cleanup). "win32" is not a codec but a "set" or "pack" of them. Original description used "codec set" but "codec pack" is more popular term on Windows. WIN32_DESC=3D Enable win32 codec set on the IA32 arch > +LIBCDIO_DESC=3D Enable libcdio support [...] > +LIBCDIO_LIB_DEPENDS=3D libcdio_paranoia.so:${PORTSDIR}/sysutils/libcdio-= paranoia > +LIBCDIO_CONFIGURE_OFF=3D --disable-libcdio I've renamed LIBCDIO to CDIO in ports r395434. This was supposed to be part of your v6 as CDIO_DESC is already defined in Mk/bsd.options.desc.mk. Please, rebase carefully. >-.if defined(WITH_KERN_HZ) >-DEFAULT_KERN_HZ=3D${WITH_KERN_HZ} >-.else >-DEFAULT_KERN_HZ=3D1024 >-.endif WITH_KERN_HZ still referenced later in Makefile and would break build if the assignment not restored or the reference not removed. And per comment 24 the conditional will work just fine without bsd.port.options.mk line. mplayer.c:4082:34: error: expected expression unsigned long irqp =3D ; /* 512 seemed OK. 128 is jerky. */ ^ Note, if you're removing a feature provide rationale to be used in commit message. It doesn't need to be more than one sentence long but should explain "why" and not "what" was done. (In reply to Carlos J Puga Medina from comment #33) > OK, I need to sanitize this before remove .include = line. > > .if ${PORT_OPTIONS:MRTC} Use target option helpers. They're documented in /usr/ports/CHANGES from 20150701 or https://www.freebsd.org/doc/en/books/porters-handbook/makefile-options.html= #options-targets-on --=20 You are receiving this mail because: You are the assignee for the bug.=