Skip to content

yeahwm: switch lesstif to motif - #414901

Closed
mdaniels5757 wants to merge 1 commit into
NixOS:masterfrom
mdaniels5757:yeahwm-switch-to-motif
Closed

mdaniels5757 wants to merge 1 commit into
NixOS:masterfrom
mdaniels5757:yeahwm-switch-to-motif

Conversation

@mdaniels5757

Copy link
Copy Markdown
Member

lesstif has been unmaintained for a decade, does not build with gcc 14, and advises users to use motif instead.

I do not use a window manager, so this is untested (but it did build).

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • Nixpkgs 25.11 Release Notes (or backporting 24.11 and 25.05 Nixpkgs Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
  • NixOS 25.11 Release Notes (or backporting 24.11 and 25.05 NixOS Release notes)
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

lesstif has been unmaintained for a decade, does not build with gcc 14,
and advises users to use motif instead.
@github-actions github-actions Bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Jun 8, 2025
@mdaniels5757 mdaniels5757 mentioned this pull request Jun 9, 2025
1 of 13 tasks
@mdaniels5757

Copy link
Copy Markdown
Member Author

nixpkgs-review result for #414901

Generated using nixpkgs-review-gha

Command: nixpkgs-review pr 414901

Logs: https://github.com/mdaniels5757/nixpkgs-review-gha/actions/runs/15538615321

Download packages from cache:
  • x86_64-linux
    nix-store -r --add-root nixpkgs-pr-414901-x86_64-linux \
      --option binary-caches 'https://cache.nixos.org/ https://mdaniels5757-nix.cachix.org' \
      --option trusted-public-keys '
      cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
      mdaniels5757-nix.cachix.org-1:iT2D2XMbTS301DFoC8sTOSP86fXMPiGrvPnrEsQN5uo=
      ' \
      /nix/store/659x4ks9dayg52sdwyqrg39bcx0l42p6-yeahwm-0.3.5
  • aarch64-linux
    nix-store -r --add-root nixpkgs-pr-414901-aarch64-linux \
      --option binary-caches 'https://cache.nixos.org/ https://mdaniels5757-nix.cachix.org' \
      --option trusted-public-keys '
      cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
      mdaniels5757-nix.cachix.org-1:iT2D2XMbTS301DFoC8sTOSP86fXMPiGrvPnrEsQN5uo=
      ' \
      /nix/store/d5nfygxihjr5ypilry74j56s4knm8p3f-yeahwm-0.3.5
  • x86_64-darwin
    nix-store -r --add-root nixpkgs-pr-414901-x86_64-darwin \
      --option binary-caches 'https://cache.nixos.org/ https://mdaniels5757-nix.cachix.org' \
      --option trusted-public-keys '
      cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
      mdaniels5757-nix.cachix.org-1:iT2D2XMbTS301DFoC8sTOSP86fXMPiGrvPnrEsQN5uo=
      ' \
      /nix/store/382v2bzia0a4b8lrcvqdy4zivvv1pzpp-yeahwm-0.3.5
  • aarch64-darwin
    nix-store -r --add-root nixpkgs-pr-414901-aarch64-darwin \
      --option binary-caches 'https://cache.nixos.org/ https://mdaniels5757-nix.cachix.org' \
      --option trusted-public-keys '
      cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
      mdaniels5757-nix.cachix.org-1:iT2D2XMbTS301DFoC8sTOSP86fXMPiGrvPnrEsQN5uo=
      ' \
      /nix/store/12104yb7if3gvkbsx037x5g19dzkvhdw-yeahwm-0.3.5

x86_64-linux (sandbox = true)

✅ 1 package built:
  • yeahwm

aarch64-linux (sandbox = true)

✅ 1 package built:
  • yeahwm

x86_64-darwin (sandbox = true)

✅ 1 package built:
  • yeahwm

aarch64-darwin (sandbox = true)

✅ 1 package built:
  • yeahwm

@Aleksanaa

Copy link
Copy Markdown
Member

You haven't tested functionality?

@mdaniels5757

Copy link
Copy Markdown
Member Author

Correct, I have not. (I'm on WSL, so unfortunately I cannot.)

@Sigmanificient

Sigmanificient commented Jun 13, 2025 •

Copy link
Copy Markdown
Member

Having trouble to test yeahvm:

[nix-shell:~/.cache/nixpkgs-review/pr-414901]$ yeahwm -display :1
Segmentation fault (core dumped)
==531699== Memcheck, a memory error detector
==531699== Copyright (C) 2002-2024, and GNU GPL'd, by Julian Seward et al.
==531699== Using Valgrind-3.24.0 and LibVEX; rerun with -h for copyright info
==531699== Command: yeahwm -display :1
==531699== 
==531699== Invalid read of size 4
==531699==    at 0x4041F3: ??? (in /nix/store/659x4ks9dayg52sdwyqrg39bcx0l42p6-yeahwm-0.3.5/bin/yeahwm)
==531699==    by 0x402929: ??? (in /nix/store/659x4ks9dayg52sdwyqrg39bcx0l42p6-yeahwm-0.3.5/bin/yeahwm)
==531699==    by 0x49F547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6)
==531699==  Address 0x5c is not stack'd, malloc'd or (recently) free'd
==531699== 
==531699== 
==531699== Process terminating with default action of signal 11 (SIGSEGV): dumping core
==531699==  Access not within mapped region at address 0x5C
==531699==    at 0x4041F3: ??? (in /nix/store/659x4ks9dayg52sdwyqrg39bcx0l42p6-yeahwm-0.3.5/bin/yeahwm)
==531699==    by 0x402929: ??? (in /nix/store/659x4ks9dayg52sdwyqrg39bcx0l42p6-yeahwm-0.3.5/bin/yeahwm)
==531699==    by 0x49F547D: (below main) (in /nix/store/cg9s562sa33k78m63njfn1rw47dp9z0i-glibc-2.40-66/lib/libc.so.6)
==531699==  If you believe this happened as a result of a stack
==531699==  overflow in your program's main thread (unlikely but
==531699==  possible), you can try to increase the size of the
==531699==  main thread stack using the --main-stacksize= flag.
==531699==  The main thread stack size used in this run was 8388608.
==531699== 
==531699== HEAP SUMMARY:
==531699==     in use at exit: 65,285 bytes in 41 blocks
==531699==   total heap usage: 102 allocs, 61 frees, 71,309 bytes allocated
==531699== 
==531699== LEAK SUMMARY:
==531699==    definitely lost: 0 bytes in 0 blocks
==531699==    indirectly lost: 0 bytes in 0 blocks
==531699==      possibly lost: 0 bytes in 0 blocks
==531699==    still reachable: 65,285 bytes in 41 blocks
==531699==         suppressed: 0 bytes in 0 blocks
==531699== Rerun with --leak-check=full to see details of leaked memory
==531699== 
==531699== For lists of detected and suppressed errors, rerun with: -s
==531699== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
Segmentation fault (core dumped)

@Sigmanificient

Sigmanificient commented Jun 13, 2025 •

Copy link
Copy Markdown
Member

I indentified the culprit as:

    font = XLoadQueryFont(dpy, opt_font);
    if (!font)
        font = XLoadQueryFont(dpy, DEF_FONT);
    theight = font-> /* max_bounds. */ ascent + font-> /* max_bounds. */ descent + 2;   /*title height */

and setting DEF_FONT to "fixed" fix the crash. However, still nothing appear in the Xephyr window, and the shortcut to open the terminal does nothing (had to replace DEF_CMD1 too)

... did that package ever worked?

@Aleksanaa

Copy link
Copy Markdown
Member

What's the status of it on master?

@Sigmanificient

Sigmanificient commented Jun 13, 2025 •

Copy link
Copy Markdown
Member

What's the status of it on master?

Well it does not build because of lesstif

@Aleksanaa

Copy link
Copy Markdown
Member

Maybe just remove it? I can't find a timestamp on its hompage (http://phrat.de/downloads.html), but a fork created in 2018 (https://github.com/hirocarma/yeahwm/blob/master/Makefile) shows it was already 0.3.5, so it's not updated in at least 7 years, and it's unmaintained in Nixpkgs, and nobody has complained or tried to fix it.

@Sigmanificient

Sigmanificient commented Jun 13, 2025 •

Copy link
Copy Markdown
Member

The package was introduced back 2020 with version 0.3.5 meaning there has not been any update and upstream is probably abandoned. I doubt that the initial version was even functional (on nixpkgs), because it was added alongside 3 other wm, and not marked as tested on top of having no mechanism to handle the config.h properly (like dwm or ragnar). It also has been maintainerless for a while.

I think it is indeed just better to remove it

@mdaniels5757 mdaniels5757 mentioned this pull request Jun 13, 2025
1 of 13 tasks
mdaniels5757 added a commit to mdaniels5757/nixpkgs that referenced this pull request Jun 13, 2025
This package is broken and unmaintained upstream.

See also NixOS#414901 (comment)
@mdaniels5757
mdaniels5757 deleted the yeahwm-switch-to-motif branch June 14, 2025 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants