Bug 245771 - games/alephone: Update to 20190331
Summary: games/alephone: Update to 20190331
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: Fernando Apesteguía
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2020-04-20 19:15 UTC by shamaz.mazum
Modified: 2020-04-27 06:42 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (fiziologus)


Attachments
The updated port (13.55 KB, text/plain)
2020-04-20 19:15 UTC, shamaz.mazum
no flags Details
Diff for games/alephone (10.52 KB, patch)
2020-04-21 12:50 UTC, shamaz.mazum
no flags Details | Diff
Diff for games/alephone (8.63 KB, patch)
2020-04-22 07:16 UTC, shamaz.mazum
no flags Details | Diff
additional improvements on top of submitter's patch (10.19 KB, patch)
2020-04-22 07:56 UTC, Fernando Apesteguía
fernape: maintainer-approval? (fiziologus)
Details | Diff
Merged my patch with Fernando Apesteguía's (8.59 KB, patch)
2020-04-22 10:10 UTC, shamaz.mazum
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description shamaz.mazum 2020-04-20 19:15:19 UTC
Created attachment 213613 [details]
The updated port

Please update `games/alephone` to a new version. The new port is attached
Comment 1 Fernando Apesteguía freebsd_committer freebsd_triage 2020-04-21 09:54:07 UTC
Hi Shamaz,

Thanks for the update. It is much preferred to attach a diff file[1] (svn diff the best) to request port updates. shar files are preferred when we want to add a new port.

Would you mind attaching a diff file?

[1] https://www.freebsd.org/doc/en/books/porters-handbook/book.html#svn-diff
Comment 2 shamaz.mazum 2020-04-21 12:50:31 UTC
Created attachment 213634 [details]
Diff for games/alephone
Comment 3 shamaz.mazum 2020-04-21 12:54:02 UTC
Done. A question for the future: will diff between commits produced by `git diff` or `git show` be OK? I feel very uncomfortable using SVN.
Comment 4 Fernando Apesteguía freebsd_committer freebsd_triage 2020-04-21 13:22:28 UTC
(In reply to shamaz.mazum from comment #3)
Thanks for that.

As per the current documentation, svn diff is the preferred option, probably because the official ports repository is in subversion :)

That said, people commit changes coming from git too.
Comment 5 shamaz.mazum 2020-04-22 07:16:40 UTC
Created attachment 213667 [details]
Diff for games/alephone

Updated the diff. Fix somehow misspelled FFMPEG. Also added missing dependencies (used `poudriere testport` to find them). Support for smpeg is removed because smpeg2 has incompatible API changes.
Comment 6 Fernando Apesteguía freebsd_committer freebsd_triage 2020-04-22 07:56:49 UTC
Created attachment 213670 [details]
additional improvements on top of submitter's patch

This port has a number of issues. Some of them you already fixed, but there are issues in pkg-plist as well (PORTDOCS = * means we don't have to include those files in pkg-plist for example), missing USES, patches format, etc.

I fixed most of them in the attached patch. Please, review it. Additionally, I installed games/alephone-{data,scenarios} but when running alephone, it complains about not finding maps, sounds, etc...

You might be interested in using ports-mgmt/portlint and ports-mgmt/poudriere. These tools catch most if not all of the common pitfalls we face when updating ports.
You can have more information here: https://www.freebsd.org/doc/en/books/porters-handbook/book.html#testing-poudriere
https://www.freebsd.org/doc/en/books/porters-handbook/book.html#porting-portlint

Thanks!
Comment 7 shamaz.mazum 2020-04-22 08:07:53 UTC
Thanks for the work, I must use poudriere before sending anything. Sorry, I'm still a newbie in porting. Check the updated patch (tested it with `poudriere testport`):

See https://bugs.freebsd.org/bugzilla/attachment.cgi?id=213667

Turns out smpeg2 has API changes and is incompatible with smpeg, and smpeg is what alephone really wants to. Fortunately, it's not even used when compiling with ffmpeg. I removed support for smpeg, as it depends on old SDL, which is Wayland-incompatible (I am a Wayland user).
Comment 8 Fernando Apesteguía freebsd_committer freebsd_triage 2020-04-22 09:11:20 UTC
(In reply to shamaz.mazum from comment #7)

It's OK. Thanks for the patch, but there is no rush here. Please, review my patch and add my changes to yours (or the other way around). There are still some missing pieces like USE=shame-mime-info and these portlint issues:

portlint -AC
WARN: Makefile: COMMENT is not supposed to begin with 'A ', 'An ', or 'The '.
WARN: Makefile: for new port, make $FreeBSD$ tag in comment section empty, to make SVN happy.
FATAL: Makefile: extra item "LICENSE" placed in the MAINTAINER section.
FATAL: Makefile: extra item "LIB_DEPENDS" placed in the LICENSE section.
2 fatal errors and 2 warnings found.

Thanks
Comment 9 shamaz.mazum 2020-04-22 10:10:56 UTC
Created attachment 213674 [details]
Merged my patch with Fernando Apesteguía's

Added a new patch (merged your and mine). portlint and poudriere seems to be happy
Comment 10 shamaz.mazum 2020-04-22 17:05:48 UTC
Also I do not know if `# $FreeBSD$` line needs to be modified. I followed this instruction:

> [the header...just to make it easier for us to identify the ports.]
> # $FreeBSD$
> [ ^^^^^^^^^ This will be automatically replaced with RCS ID string by SVN
> when it is committed to our repository.  If upgrading a port, do not alter
> this line back to "$FreeBSD$".  SVN deals with it automatically.]

https://www.freebsd.org/doc/en/books/porters-handbook/book.html#porting-samplem

portlint with no options does not complain about this, but portlint -AC does:

> WARN: Makefile: for new port, make $FreeBSD$ tag in comment section empty, to make SVN happy.

I understand it as mutually exclusive recommendations. I hope you'll help me if there is something wrong with the patch.
Comment 11 Fernando Apesteguía freebsd_committer freebsd_triage 2020-04-22 18:04:18 UTC
(In reply to shamaz.mazum from comment #10)
They're OK, don't worry.

The port is queued for build testing in the last arcitechture/OS version. I'll come back to you when it's done.
Comment 12 Fernando Apesteguía freebsd_committer freebsd_triage 2020-04-22 20:52:25 UTC
Build and run testing OK.

I'll give a couple of days more for maintainer to show up.

Thanks!
Comment 13 commit-hook freebsd_committer freebsd_triage 2020-04-26 16:58:48 UTC
A commit references this bug:

Author: fernape
Date: Sun Apr 26 16:57:52 UTC 2020
New revision: 533079
URL: https://svnweb.freebsd.org/changeset/ports/533079

Log:
  games/alephone: Update to 20190331

   * Add license
   * Fix COMMENT
   * Add missing dependencies

  PR:	245771
  Submitted by:	shamaz.mazum@gmail.com
  Approved by:	fiziologus@gmail.com (maintainer timeout)

Changes:
  head/games/alephone/Makefile
  head/games/alephone/distinfo
  head/games/alephone/pkg-plist
Comment 14 Fernando Apesteguía freebsd_committer freebsd_triage 2020-04-27 05:57:26 UTC
Committed,

Thanks!
Comment 15 shamaz.mazum 2020-04-27 06:42:12 UTC
Thanks to you!