Skip to content
This repository has been archived by the owner on Jan 1, 2023. It is now read-only.

Commit

Permalink
alsa-utils: fix alsamixer in netbsd-curses
Browse files Browse the repository at this point in the history
  • Loading branch information
konimex committed Jul 16, 2021
1 parent d4f0234 commit cc1637f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions extra/alsa-utils/build
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#!/bin/sh -e
# shellcheck disable=2016

# Fix a missing include
sed '/<syslog.h>/a #include <limits.h>' alsactl/utils.c > _
mv -f _ alsactl/utils.c
# Fix alsamixer for netbsd-curses
sed -e 's/ MIN_MENU_COMMAND/REQ_LEFT_ITEM/' \
-e 's/ MAX_MENU_COMMAND/REQ_PREV_MATCH/' \
alsamixer/bindings.h > _
mv -f _ alsamixer/bindings.h

# Makefile fix
sed '/\$(edit)\|\.\(service\|rules\)/d' alsactl/Makefile.in > _
Expand All @@ -16,7 +18,6 @@ mv -f __ alsaucm/Makefile.in
--sbindir=/usr/bin \
--with-udev-rules-dir=/usr/lib/udev/rules.d \
--disable-alsaconf \
--disable-alsamixer \
--disable-bat \
--disable-xmlto \
--disable-nls
Expand Down

4 comments on commit cc1637f

@dilyn-corner
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that alsa-mixer is not entirely fixed when doing this, but you can at least build and open it.
Changing devices in alsa-mixer in the "usual way" doesn't work for me when doing this.

@f1nniboy
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dilyn-corner you could avoid this by setting the device using the -c CARD or -D DEVICE argument.

@dilyn-corner
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, but this isn't what I would take to be the 'usual way' ;)

@f1nniboy
Copy link

@f1nniboy f1nniboy commented on cc1637f Jul 21, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it's just a temporary workaround until netbsd-curses (I assume that it's an issue on their side) fixes it.

Please sign in to comment.