Bug 171824 - [patch] multimedia/libvdpau: miscellaneous tweaks
Summary: [patch] multimedia/libvdpau: miscellaneous tweaks
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Guido Falsi
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-20 22:30 UTC by Jan Beich
Modified: 2012-10-23 22:13 UTC (History)
0 users

See Also:


Attachments
misc.diff (2.59 KB, patch)
2012-09-20 22:30 UTC, Jan Beich
no flags Details | Diff
libvdpau.diff (2.56 KB, patch)
2012-10-22 15:38 UTC, Guido Falsi
no flags Details | Diff
libvdpau.diff (2.59 KB, patch)
2012-10-22 16:00 UTC, Guido Falsi
no flags Details | Diff
libvdpau.diff (3.38 KB, patch)
2012-10-23 09:05 UTC, Guido Falsi
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Beich freebsd_committer freebsd_triage 2012-09-20 22:30:08 UTC
- switch back to cgit snapshot[1][2]
- switch to XZ format, it's smaller: 139k (gz) vs. 129k (bz2) vs. 124k (xz)
- don't overwrite .cfg upon install
- drop gmake(1) dep as docs aren't built anyway
- properly USE_AUTOTOOLS which implies GNU_CONFIGURE

[1] with cgit we can easily switch between tags or branches with
    downside being increased buildtime due to autotools
[2] gzip(1) stores original name (FNAME) and modification time (MTIME)
    in its header by default which causes cgit/gitweb snapshots to have
    different checksum every time snapshot is generated.
    http://www.gzip.org/zlib/rfc-gzip.html
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2012-10-11 15:14:57 UTC
Responsible Changed
From-To: eadler->freebsd-ports-bugs

how did I get this one? I can't deal with it now - sorry.
Comment 2 Guido Falsi freebsd_committer freebsd_triage 2012-10-21 18:18:58 UTC
Responsible Changed
From-To: freebsd-ports-bugs->madpilot

I'll take it.
Comment 3 Guido Falsi freebsd_committer freebsd_triage 2012-10-22 15:38:56 UTC
Hi,

I'm testing your patch. I have converted the port to optionsng also.

Would you be interested in becoming the maintainer for this port? In
sucha  case just state it and I also need your approval for this patch.

Thank you.

-- 
Guido Falsi <madpilot@FreeBSD.org>
Comment 4 Guido Falsi freebsd_committer freebsd_triage 2012-10-22 15:39:11 UTC
State Changed
From-To: open->feedback

Ask for submitter approval.
Comment 5 Guido Falsi freebsd_committer freebsd_triage 2012-10-22 16:00:48 UTC
PLease ignore previous patch, it's wrong.

See attached one. Sorry! :)

-- 
Guido Falsi <madpilot@FreeBSD.org>
Comment 6 Jan Beich freebsd_committer freebsd_triage 2012-10-22 17:20:05 UTC
Guido Falsi <madpilot@FreeBSD.org> writes:

> Hi,
>
> I'm testing your patch. I have converted the port to optionsng also.
>
> Would you be interested in becoming the maintainer for this port? In
> sucha  case just state it and I also need your approval for this patch.

No.

> -.include <bsd.port.pre.mk>
> +.include <bsd.options.mk>

* it should be <bsd.port.options.mk>
* last line still has <bsd.port.post.mk>

> -.if defined(WITH_DEBUG)
> +.if ${PORT_OPTIONS:MDEBUG
                            ^^ typo

> -.if defined(STRIP) && ${STRIP} != ""
> +.if {PORT_OPTIONS:MSTRIP}
      ^^ typo

STRIP is an undocumented feature of WITH_DEBUG (in bsd.port.mk) and
DEBUG_FLAGS (in bsd.own.mk). It governs stripping binaries in bsd.prog.mk,
bsd.lib.mk and also ports that use INSTALL_MACROS in bsd.port.mk. Currently,
to build/install a port and its dependencies with debug symbols one would

  $ make install WITH_DEBUG= # old way
  $ make install WITH=DEBUG  # optionsNG way

If you're going to suddenly require STRIP option being defined for *some*
ports please document it, alongside changed WITH_DEBUG in bsd.port.mk.
Comment 7 Guido Falsi freebsd_committer freebsd_triage 2012-10-22 19:01:39 UTC
On 10/22/12 18:20, Jan Beich wrote:
> Guido Falsi <madpilot@FreeBSD.org> writes:
> 
>> Hi,
>>
>> I'm testing your patch. I have converted the port to optionsng also.
>>
>> Would you be interested in becoming the maintainer for this port? In
>> sucha  case just state it and I also need your approval for this patch.
> 
> No.
> 
>> -.include <bsd.port.pre.mk>
>> +.include <bsd.options.mk>
> 
> * it should be <bsd.port.options.mk>
> * last line still has <bsd.port.post.mk>
> 
>> -.if defined(WITH_DEBUG)
>> +.if ${PORT_OPTIONS:MDEBUG
>                             ^^ typo
> 
>> -.if defined(STRIP) && ${STRIP} != ""
>> +.if {PORT_OPTIONS:MSTRIP}
>       ^^ typo
> 

Sorry for these mistakes. I should really have checked better before
sending the diff.

> STRIP is an undocumented feature of WITH_DEBUG (in bsd.port.mk) and
> DEBUG_FLAGS (in bsd.own.mk). It governs stripping binaries in bsd.prog.mk,
> bsd.lib.mk and also ports that use INSTALL_MACROS in bsd.port.mk. Currently,
> to build/install a port and its dependencies with debug symbols one would
> 
>   $ make install WITH_DEBUG= # old way
>   $ make install WITH=DEBUG  # optionsNG way
> 
> If you're going to suddenly require STRIP option being defined for *some*
> ports please document it, alongside changed WITH_DEBUG in bsd.port.mk.
> 

I stand corrected for this. I did not know about this STRIP feature.
Since at this time we're in a feature freeze I can't touch bsd.port.mk
and friends. I'll check on it and see if I can make a good patchset for
this. In the while I'll remove these options.

Thanks a lot for pointing this out!

-- 
Guido Falsi <madpilot@FreeBSD.org>
Comment 8 Guido Falsi freebsd_committer freebsd_triage 2012-10-23 09:05:20 UTC
This patch should work correctly.

I thought I could take maintainership, since I maintain olther video
acceleration pieces.

PORTREVISION bump is needed since the package does change.

-- 
Guido Falsi <madpilot@FreeBSD.org>
Comment 9 Guido Falsi freebsd_committer freebsd_triage 2012-10-23 22:13:42 UTC
State Changed
From-To: feedback->closed

Committed. Thanks!