Bug 230539 - textproc/libunibreak: Update to 4.0; Take MAINTAINER'ship
Summary: textproc/libunibreak: Update to 4.0; Take MAINTAINER'ship
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Steve Wills
URL: https://github.com/adah1972/libunibre...
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-11 16:36 UTC by Nathan
Modified: 2018-08-17 12:38 UTC (History)
1 user (show)

See Also:


Attachments
Update (4.60 KB, patch)
2018-08-11 16:36 UTC, Nathan
ndowens04: maintainer-approval+
Details | Diff
Update (4.68 KB, patch)
2018-08-11 16:44 UTC, Nathan
ndowens04: maintainer-approval+
Details | Diff
Update; Removed patches (3.55 KB, patch)
2018-08-11 21:00 UTC, Nathan
ndowens04: maintainer-approval+
Details | Diff
Updated patch based on discussion (2.64 KB, patch)
2018-08-16 19:57 UTC, Steve Wills
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan 2018-08-11 16:36:40 UTC
Created attachment 196092 [details]
Update

textproc/libunibreak: Update to 4.0

* Changed source to Github
  -- Latest versions are hosted there
* Added patch-src_Makefile
  -- Fixes Error: Bad symlink 'lib/liblinebreak.a'
     pointing inside the stage directory

Changelog: https://github.com/adah1972/libunibreak/blob/23aa7415254420de0aa4186e72f602257762c9ec/NEWS



Built using Poudriere 3.2.7 11.2-Release AMD64
Portlint -AC: looks fine
Comment 1 Nathan 2018-08-11 16:42:41 UTC
Also, fixes fbreader; with previous version, fbrunner would not launch
Comment 2 Nathan 2018-08-11 16:44:16 UTC
Created attachment 196093 [details]
Update
Comment 3 Nathan 2018-08-11 21:00:54 UTC
Created attachment 196106 [details]
Update; Removed patches
Comment 4 Tobias Kortkamp freebsd_committer freebsd_triage 2018-08-16 09:38:18 UTC
Using USE_GITHUB is wrong here.  Please use the static tarball from
https://github.com/adah1972/libunibreak/releases/download/libunibreak_4_0/libunibreak-4.0.tar.gz

It contains pregenerated files like a configure script and you
can drop USES=autoreconf again.
Comment 5 Steve Wills freebsd_committer freebsd_triage 2018-08-16 16:26:48 UTC
(In reply to Tobias Kortkamp from comment #4)
Why the preference for not running autoreconf? Performance?
Comment 6 Nathan 2018-08-16 16:28:50 UTC
Either way I have the patch without autoreconf ready but I’m on my phone so can’t upload it. I ssh to my home pc while I’m away to do ports stuff
Comment 7 Tobias Kortkamp freebsd_committer freebsd_triage 2018-08-16 17:14:14 UTC
(In reply to Steve Wills from comment #5)
It's not about not using USES=autoreconf.

USE_GITHUB implies use of codeload.github.com which generates
volatile tarballs that are not guaranteed to be stable i.e. they
can change checksums.  A nice discussion about this can be found
here: https://github.com/libgit2/libgit2/issues/4343

Besides when upstream releases tarballs they might not be identical
to a tarball generated via codeload.github.com.  Often they contain
pregenerated scripts/manpages/files that we would have to generate
ourselves.  This alone should be reason enough to prefer them over
the USE_GITHUB ones when upstream takes the time to prepare them.

Stuart Henderson from OpenBSD has explained the situation very well
too IMHO (ignore the OpenBSD specific bits):
https://marc.info/?l=openbsd-ports&m=151973450514279&w=2
Comment 8 Steve Wills freebsd_committer freebsd_triage 2018-08-16 18:55:58 UTC
(In reply to Tobias Kortkamp from comment #7)
Ok, sounds fine to me to fetch the release tarball instead of the generated one, but would prefer to keep USES=autoreconf and patch src/Makefile.am as that seems cleaner to me.
Comment 9 Nathan 2018-08-16 19:04:06 UTC
Problem to me is there needs to be a standard. One can do it this way but submit a different port and reviewer will say to use USE_GITHUB
Comment 10 Steve Wills freebsd_committer freebsd_triage 2018-08-16 19:13:13 UTC
(In reply to Nathan from comment #9)
I think for right now and this PR we should just focus on this port.
Comment 11 Tobias Kortkamp freebsd_committer freebsd_triage 2018-08-16 19:32:16 UTC
(In reply to Steve Wills from comment #8)
Fine with me.

Though I bet LN_S could also be overwritten via MAKE_ARGS

MAKE_ARGS=	LN_S="${INSTALL_DATA}"
Comment 12 Steve Wills freebsd_committer freebsd_triage 2018-08-16 19:57:14 UTC
Created attachment 196261 [details]
Updated patch based on discussion

This look OK then?
Comment 13 Nathan 2018-08-17 00:24:01 UTC
(In reply to Steve Wills from comment #12)
> Created attachment 196261 [details]
> Updated patch based on discussion
> 
> This look OK then?

Yup :)
Comment 14 Tobias Kortkamp freebsd_committer freebsd_triage 2018-08-17 08:14:21 UTC
(In reply to Steve Wills from comment #12)
Looks ok.

Since there are no build file patches anymore, USES=autoreconf
is not really needed now, but it's fine with me either way.
Comment 15 commit-hook freebsd_committer freebsd_triage 2018-08-17 12:37:13 UTC
A commit references this bug:

Author: swills
Date: Fri Aug 17 12:37:02 UTC 2018
New revision: 477422
URL: https://svnweb.freebsd.org/changeset/ports/477422

Log:
  textproc/libunibreak: Update to 4.0

  While here, assign maintainer

  PR:		230539 (with modifications)
  Submitted by:	Nathan <ndowens@yahoo.com>

Changes:
  head/textproc/libunibreak/Makefile
  head/textproc/libunibreak/distinfo
  head/textproc/libunibreak/files/
  head/textproc/libunibreak/pkg-plist
Comment 16 Steve Wills freebsd_committer freebsd_triage 2018-08-17 12:38:08 UTC
Committed, thanks!