Bug 223966

Summary: archivers/brotli: Update to 1.0.2
Product: Ports & Packages Reporter: Bernard Spil <brnrd>
Component: Individual Port(s)Assignee: Bernard Spil <brnrd>
Status: Closed FIXED    
Severity: Affects Only Me CC: freebsd, osa
Priority: --- Keywords: needs-qa, patch
Version: LatestFlags: bugzilla: maintainer-feedback? (osa)
Hardware: Any   
OS: Any   
Bug Depends on:    
Bug Blocks: 223967    
Attachments:
Description Flags
svn diff for archivers/brotli
none
svn diff for archivers/brotli
none
svn diff for archivers/brotli brnrd: maintainer-approval? (osa)

Description Bernard Spil freebsd_committer freebsd_triage 2017-11-29 13:57:51 UTC
Created attachment 188392 [details]
svn diff for archivers/brotli

```
archivers/brotli: Update to 1.0.2

PR: 
```

Also renames bro to brotli. Might warrant an UPDATING entry?
Comment 1 Bernard Spil freebsd_committer freebsd_triage 2017-11-29 21:24:19 UTC
Created attachment 188409 [details]
svn diff for archivers/brotli

Ran into a nasty bug with ports framework here. brotli built with cmake, curl has brotli support, circular dependency.

Updated the port to stop using cmake and switch to automake. This involved some hacking as it requires you to run bootstrap which uses arithmetic not available in real sh. Additionally this lead to shared libs not linking to libbrotlicommon.so killing linking in curl (already during configure).

Currently building all ports in poudriere. Both Apache and cURL with brotli support.
Comment 2 Bernard Spil freebsd_committer freebsd_triage 2017-11-29 21:49:31 UTC
The Makefile.am patch is already merged upstream
https://github.com/google/brotli/pull/623
Comment 3 Sergey A. Osokin freebsd_committer freebsd_triage 2017-11-30 11:56:33 UTC
Hi Bernard,

I'll take a look on it soon.

We also need to update www/nginx and www/nginx-devel as well, both are using a archivers/brotli for third-party module ngx_brotli.
Comment 4 Bernard Spil freebsd_committer freebsd_triage 2017-11-30 20:41:12 UTC
(In reply to Sergey A. Osokin from comment #3)
Hi Sergey,

I've updated the brotli module for nginx to a version that supports more recent brotli ABI, see bug #224000.
Comment 5 Sergey A. Osokin freebsd_committer freebsd_triage 2017-12-09 16:35:11 UTC
Comment on attachment 188409 [details]
svn diff for archivers/brotli

Hi Bernard,

I'd recommend to update the patch with a small change for shared libraries to expose PORTVERSION for PLIST_SUB and utilize it in pkg-plist.
Comment 6 Bernard Spil freebsd_committer freebsd_triage 2017-12-10 10:38:26 UTC
Created attachment 188682 [details]
svn diff for archivers/brotli

Updated as per maintainer request. Uses PORTVERSION as SHLIBVER in pkg-plist.
Comment 7 Sergey A. Osokin freebsd_committer freebsd_triage 2017-12-11 21:53:07 UTC
Looks great!  Hope it doesn't break anything in ports tree.
Please go ahead and commit the change, it's approved now.
Thanks.
Comment 8 commit-hook freebsd_committer freebsd_triage 2017-12-12 08:12:28 UTC
A commit references this bug:

Author: brnrd
Date: Tue Dec 12 08:11:26 UTC 2017
New revision: 456110
URL: https://svnweb.freebsd.org/changeset/ports/456110

Log:
  archivers/brotli: Update to 1.0.2

  PR:		223966
  Approved by:	osa (maintainer)

Changes:
  head/archivers/brotli/Makefile
  head/archivers/brotli/distinfo
  head/archivers/brotli/files/
  head/archivers/brotli/files/patch-freebsd-upstream
  head/archivers/brotli/pkg-plist
Comment 9 Bernard Spil freebsd_committer freebsd_triage 2017-12-12 08:13:18 UTC
YW!