Bug 271487 - games/dMagnetic: Update to 0.37
Summary: games/dMagnetic: Update to 0.37
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: https://dettus.net/dMagnetic
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2023-05-18 12:29 UTC by Thomas Dettbarn
Modified: 2023-05-22 06:49 UTC (History)
1 user (show)

See Also:


Attachments
The git diff patch to the freebsd-ports (2.89 KB, patch)
2023-05-18 12:29 UTC, Thomas Dettbarn
dettus: maintainer-approval+
Details | Diff
The patch to the FreeBSD portstree (attempt 2) (2.66 KB, patch)
2023-05-18 15:12 UTC, Thomas Dettbarn
dettus: maintainer-approval+
Details | Diff
The patch to the FreeBSD portstree (attempt 3) (3.03 KB, patch)
2023-05-19 09:35 UTC, Thomas Dettbarn
dettus: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Dettbarn 2023-05-18 12:29:30 UTC
Created attachment 242248 [details]
The git diff patch to the freebsd-ports

Hello!

So, my little project games/dMagnetic saw release 0.37.
(How time flies...)

Please find the appropriate patch to the ports tree attached to this "Bug"report. :)
Comment 1 Fernando Apesteguía freebsd_committer freebsd_triage 2023-05-18 14:10:07 UTC
Hi Thomas,

The patch does not apply cleanly. It is trying to modify a certain files/patch-Makefile which does not exist in the repo yet.

Can you have a look?
Comment 2 Thomas Dettbarn 2023-05-18 15:02:28 UTC
Hmm...

The problem is somewhere in the MORONIC way, I used git diff...
For some reason, a simple

git diff >freebsd.patch

does not produce what you guys need, it somehow does not include the new files I put in there (The ones I git add'ed). 


For you, my Plan B is to omit this patch-Makefile, but BecauseOfReasons(tm) I would like to keep it. At least for now.

Plan A is to find the proper commandline to produce a patch.
Can you help me with that one? (Please...)
Comment 3 Fernando Apesteguía freebsd_committer freebsd_triage 2023-05-18 15:07:13 UTC
(In reply to Thomas Dettbarn from comment #2)
git diff will give you a diff from the *last* commit in your branch. It looks like you committed files/patch-Makefile in your local branch and then did some more changes and execute git diff. This might be it although I'm not sure.

The thing you can do is:

git diff main > freebsd.patch

That should git you the differences between your local branch and main.
Comment 4 Thomas Dettbarn 2023-05-18 15:12:27 UTC
Created attachment 242252 [details]
The patch to the FreeBSD portstree (attempt 2)

This patch has been created using
(git diff ; git diff --staged ) >freebsd_dmagnetic037.patch
Comment 5 Thomas Dettbarn 2023-05-18 15:31:07 UTC
git diff main produced the same result, so the patch is good. :)
Comment 6 Fernando Apesteguía freebsd_committer freebsd_triage 2023-05-19 06:52:43 UTC
(In reply to Thomas Dettbarn from comment #5)
Testing...

Can I suggest you change the install instructions for FreeBSD in your home page?
It says:

FreeBSD		pkg_add dMagnetic

Cheers.
Comment 7 Fernando Apesteguía freebsd_committer freebsd_triage 2023-05-19 06:54:00 UTC
Please, test the ports before submission.

===> Checking for items in STAGEDIR missing from pkg-plist
Error: Orphaned: %%DATADIR%%/LICENSE.txt

Will you update the patch?
Comment 8 Thomas Dettbarn 2023-05-19 09:35:39 UTC
Created attachment 242269 [details]
The patch to the FreeBSD portstree (attempt 3)

Whilst working on the "make install target", I forgot to take a closer look at the pkg-plist. 
My apologies, hopefully, this one will work better. 


For the next release, I WILL set out pouderie.
Comment 9 Fernando Apesteguía freebsd_committer freebsd_triage 2023-05-22 06:49:21 UTC
Committed,

Thanks!
Comment 10 commit-hook freebsd_committer freebsd_triage 2023-05-22 06:49:53 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0adb087f9b58eb26ab71ccc1344c7c73f98c2ae9

commit 0adb087f9b58eb26ab71ccc1344c7c73f98c2ae9
Author:     Thomas Dettbarn <dettus@dettus.net>
AuthorDate: 2023-05-19 11:43:22 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2023-05-22 06:44:12 +0000

    games/dMagnetic: Update to 0.37

    ChangeLog: https://dettus.net/dMagnetic

    PR:             271487
    Reported by:    dettus@dettus.net (maintainer)

 games/dMagnetic/Makefile                   | 11 +---------
 games/dMagnetic/distinfo                   |  6 +++---
 games/dMagnetic/files/patch-Makefile (new) | 34 ++++++++++++++++++++++++++++++
 games/dMagnetic/pkg-plist                  |  1 +
 4 files changed, 39 insertions(+), 13 deletions(-)