Bug 272660 - x11-wm/blackbox: switch from std::mem_fun to std::mem_fn
Summary: x11-wm/blackbox: switch from std::mem_fun to std::mem_fn
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:
Depends on:
Blocks:
 
Reported: 2023-07-22 10:46 UTC by Trond Endrestøl
Modified: 2023-07-28 20:51 UTC (History)
2 users (show)

See Also:
A.J.Caines: maintainer-feedback+


Attachments
Updated patch for src/blackbox.cc (1.52 KB, patch)
2023-07-22 10:48 UTC, Trond Endrestøl
no flags Details | Diff
Updated patch for src/Screen.cc (1.70 KB, patch)
2023-07-22 10:48 UTC, Trond Endrestøl
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Trond Endrestøl 2023-07-22 10:46:59 UTC
Patches to be supplied shortly.
Comment 1 Trond Endrestøl 2023-07-22 10:48:01 UTC
Created attachment 243544 [details]
Updated patch for src/blackbox.cc
Comment 2 Trond Endrestøl 2023-07-22 10:48:36 UTC
Created attachment 243545 [details]
Updated patch for src/Screen.cc
Comment 3 Fernando Apesteguía freebsd_committer freebsd_triage 2023-07-23 17:08:47 UTC
Hi Trond,

Isn't this something that should better be sent upstream?
Comment 4 Andrew J. Caines 2023-07-23 19:41:30 UTC
Approved without testing based on review of changes.
Thank you, Trond.

Fernando,

Blackbox development stopped a while ago with the release of 0.70.1
in November 2005. See https://github.com/bradleythughes/blackbox/tags
There have been some subsequent efforts to update the code, but none appear to have revived or taken over the project.
Comment 5 Fernando Apesteguía freebsd_committer freebsd_triage 2023-07-24 06:12:51 UTC
(In reply to Andrew J. Caines from comment #4)
OK,

It could be nice if at least we could also send this upstream to some of those repos (wikipedia mentions this one: https://github.com/bbidulock/blackboxwm/tree/master).

Thanks.
Comment 6 Fernando Apesteguía freebsd_committer freebsd_triage 2023-07-24 16:12:28 UTC
Trond,

Could yo attach a patch *to the port itself*?
Comment 7 Andrew J. Caines 2023-07-24 16:18:04 UTC
Fernando,

You are quite right that updates which apply to any active upstream projects should be shared with them, however these changes appear to me to be changes specific to (the compiler now used on) FreeBSD and so belong only in the port. I defer to Trond and others better qualified than I on this assessment.

You should feel free to share these any all other changes[1] which have not yet been incorporated into any active upstream projects (despite being available for decades).

FWIW I see that Fedora uses Brian Bidulock's fork[2] for its package, but note that it appears to already include maintenance changes from multiple sources and is not an active project.

Since this bug report is not the place for this discussion, I suggest posting to the FreeBSD Ports list[3] with the results of your efforts. I'm only 6839 messages behind on FreeBSD lists, so I will see it... eventually.


[1] See https://github.com/freebsd/freebsd-ports/tree/main/x11-wm/blackbox/files
[2] https://github.com/bbidulock/blackboxwm
[3] https://lists.freebsd.org/subscription/freebsd-ports
Comment 8 commit-hook freebsd_committer freebsd_triage 2023-07-28 06:33:13 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1bd91c34660f630db4d1414a2d64b47162a5baad

commit 1bd91c34660f630db4d1414a2d64b47162a5baad
Author:     Trond Endrestol <Trond.Endrestol@ximalas.info>
AuthorDate: 2023-07-27 06:48:20 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2023-07-28 06:32:51 +0000

    x11-wm/blackbox: switch from std::mem_fun to std::mem_fn

    The former is deprecated.

    PR:             272660
    Reported by:    Trond.Endrestol@ximalas.info
    Approved by:    A.J.Caines@halplant.com (maintainer)

 x11-wm/blackbox/Makefile                    |  2 +-
 x11-wm/blackbox/files/patch-src_Screen.cc   | 24 ++++++++++++++++++++++++
 x11-wm/blackbox/files/patch-src_blackbox.cc | 25 +++++++++++++++++++++++++
 3 files changed, 50 insertions(+), 1 deletion(-)
Comment 9 Fernando Apesteguía freebsd_committer freebsd_triage 2023-07-28 06:33:29 UTC
Committed,

Thanks!
Comment 10 Andrew J. Caines 2023-07-28 20:51:56 UTC
Thank you Fernando and thank you again Trond.