Skip to content

xwax: fix the build (missing alsa-lib input)#402378

Merged
pbsds merged 2 commits intoNixOS:masterfrom
trofi:xwax-update
May 10, 2025
Merged

xwax: fix the build (missing alsa-lib input)#402378
pbsds merged 2 commits intoNixOS:masterfrom
trofi:xwax-update

Conversation

@trofi
Copy link
Contributor

@trofi trofi commented Apr 27, 2025

Without the change the build fails as
https://hydra.nixos.org/build/294945388:

alsa.c:24:10: fatal error: alsa/asoundlib.h: No such file or directory
   24 | #include <alsa/asoundlib.h>
      |          ^~~~~~~~~~~~~~~~~~

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/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (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.

trofi added 2 commits April 27, 2025 22:54
Without the change the build fails as
https://hydra.nixos.org/build/294945388:

    alsa.c:24:10: fatal error: alsa/asoundlib.h: No such file or directory
       24 | #include <alsa/asoundlib.h>
          |          ^~~~~~~~~~~~~~~~~~
@github-actions github-actions bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Apr 27, 2025
@wegank wegank added the 12.approvals: 1 This PR was reviewed and approved by one person. label Apr 28, 2025
@Sigmanificient
Copy link
Member

Sigmanificient commented May 2, 2025

Upon further testing on a similar fix pr (xwax: add missing dependency, unbreak), I found some issue with the current state of the derivation:
image

The apps opens but and connect to my hw0,0 but cant find any playable files on my Downloads folder. The GUI seems to have some kind of rendering issue

Startup logs:

External scan '/home/sigmanificient/Downloads/'...
/homeless-shelter/libexec/xwax-scan: No such file or directory
Initialising deck 0 (hw:0,0)...
Building LUT for 20 bit 1000Hz timecode (Serato 2nd Ed., side A)
Lookup table has 65536 hashes to 712000 slots (10 slots per hash, 5818Kb)
Launching realtime thread to handle devices...
Initialising fonts...
Loading font '/nix/store/6plhfhjj7qdzqj3kfzvj329zkjvcrbnq-dejavu-fonts-2.37/share/fonts/truetype//DejaVuSans.ttf', 32pt...
Loading font '/nix/store/6plhfhjj7qdzqj3kfzvj329zkjvcrbnq-dejavu-fonts-2.37/share/fonts/truetype//DejaVuSans.ttf', 20pt...
Loading font '/nix/store/6plhfhjj7qdzqj3kfzvj329zkjvcrbnq-dejavu-fonts-2.37/share/fonts/truetype//DejaVuSans.ttf', 10pt...
Loading font '/nix/store/6plhfhjj7qdzqj3kfzvj329zkjvcrbnq-dejavu-fonts-2.37/share/fonts/truetype//DejaVuSans-Oblique.ttf', 10pt...
Loading font '/nix/store/6plhfhjj7qdzqj3kfzvj329zkjvcrbnq-dejavu-fonts-2.37/share/fonts/truetype//DejaVuSans-Bold.ttf', 14pt...
Loading font '/nix/store/6plhfhjj7qdzqj3kfzvj329zkjvcrbnq-dejavu-fonts-2.37/share/fonts/truetype//DejaVuSansMono-Bold.ttf', 9pt...
Initialising SDL...
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
Launching interface thread...
Scan completed with status 256
Error scanning /home/sigmanificient/Downloads/
New interface size is 960x720.
New interface size is 944x1031.
New interface size is 946x1030.
New interface size is 948x1030.

@Sigmanificient Sigmanificient self-requested a review May 2, 2025 18:28
@Sigmanificient Sigmanificient removed the 12.approvals: 1 This PR was reviewed and approved by one person. label May 2, 2025
@trofi
Copy link
Contributor Author

trofi commented May 2, 2025

I'm not familiar with the program. But I think the trick is to make the scanner and importers to work:

/homeless-shelter/libexec/xwax-scan: No such file or directory

If I use xwax's own ./scan and ./import with slightly amended shebangs (and ffmpeg in the path) I am able to import ogg sample:

$ ./xwax -s ./scan -i ./import -l ~/tmdc/ --dummy
# Press `F1` after navigating to the track:
Importing '/home/slyfox/tmdc/tmdc8inv.ogg'...
Track import completed

@wegank wegank added the 12.approvals: 1 This PR was reviewed and approved by one person. label May 2, 2025
@Sigmanificient Sigmanificient mentioned this pull request May 9, 2025
13 tasks
@pbsds
Copy link
Member

pbsds commented May 10, 2025

Is it possible to add those shebang amendments to the derivation?

@trofi
Copy link
Contributor Author

trofi commented May 10, 2025

Currently the derivation does not install them. Should it? I was not sure if the users are expected to provide their own equivalent importers.

@pbsds
Copy link
Member

pbsds commented May 10, 2025

Ah, okay. Then help me understand, is the issue @Sigmanificient uncovered just a pre-existing wart with the package or is it a regression?

@trofi
Copy link
Contributor Author

trofi commented May 10, 2025

I think it's pre-existing.

@pbsds pbsds merged commit 3225b22 into NixOS:master May 10, 2025
29 checks passed
@trofi trofi deleted the xwax-update branch May 10, 2025 19:51
@trofi trofi mentioned this pull request May 10, 2025
13 tasks
@trofi
Copy link
Contributor Author

trofi commented May 10, 2025

Proposed the default installation of importers as:

trofi added a commit to trofi/nixpkgs that referenced this pull request May 10, 2025
Without the change user needs to supply their own importer and scanner.
Discovered in NixOS#402378 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 0 This PR does not cause any packages 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. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants