Package Details: ncpamixer 1.3.8-1

Git Clone URL: https://aur.archlinux.org/ncpamixer.git (read-only, click to copy)
Package Base: ncpamixer
Description: ncurses PulseAudio Mixer
Upstream URL: https://github.com/fulhax/ncpamixer
Licenses: MIT
Conflicts: ncpamixer-git
Provides: ncpamixer
Submitter: None
Maintainer: eddie_vs
Last Packager: eddie_vs
Votes: 33
Popularity: 0.74
First Submitted: 2018-01-01 13:45 (UTC)
Last Updated: 2024-11-13 19:12 (UTC)

Latest Comments

« First ‹ Previous 1 2

fx101 commented on 2020-08-31 08:38 (UTC) (edited on 2020-08-31 08:38 (UTC) by fx101)

@khalil2535 my patch below fixes your issue if you want to use it in the meantime.

khalil2535 commented on 2020-08-31 08:36 (UTC)

hope it would get fixed soon.


==> Starting build()...
-- The C compiler identification is GNU 10.2.0
-- The CXX compiler identification is GNU 10.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for wsyncup in /usr/lib/libcurses.so
-- Looking for wsyncup in /usr/lib/libcurses.so - found
-- Looking for cbreak in /usr/lib/libncurses.so
-- Looking for cbreak in /usr/lib/libncurses.so - found
-- Found Curses: /usr/lib/libncurses.so
-- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE
-- Got version -- Configuring done -- Generating done -- Build files have been written to: /home/khalil2535/.cache/yay/ncpamixer/src/ncpamixer-1.3.3 Scanning dependencies of target ncpamixer [ 5%] Building CXX object CMakeFiles/ncpamixer.dir/pulsemixer.cpp.o [ 10%] Building CXX object CMakeFiles/ncpamixer.dir/pa_object.cpp.o [ 15%] Building CXX object CMakeFiles/ncpamixer.dir/pa_card.cpp.o [ 21%] Building CXX object CMakeFiles/ncpamixer.dir/pa_sink.cpp.o [ 26%] Building CXX object CMakeFiles/ncpamixer.dir/pa_input.cpp.o [ 31%] Building CXX object CMakeFiles/ncpamixer.dir/pa_source.cpp.o [ 36%] Building CXX object CMakeFiles/ncpamixer.dir/pa_source_output.cpp.o [ 42%] Building CXX object CMakeFiles/ncpamixer.dir/pa.cpp.o In file included from /usr/include/string.h:519, from /usr/include/c++/10.2.0/cstring:42, from /home/khalil2535/.cache/yay/ncpamixer/src/ncpamixer-1.3.3/src/pa.cpp:5: In function 'char strncpy(char, const char, size_t)', inlined from 'void Pa::update_input(const pa_sink_input_info)' at /home/khalil2535/.cache/yay/ncpamixer/src/ncpamixer-1.3.3/src/pa.cpp:466:16: /usr/include/bits/string_fortified.h:106:34: error: 'char __builtin_strncpy(char, const char, long unsigned int)' specified bound 255 equals destination size [-Werror=stringop-truncation] 106 | return __builtinstrncpychk (dest, __src, __len, __bos (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1plus: all warnings being treated as errors make[2]: [CMakeFiles/ncpamixer.dir/build.make:173: CMakeFiles/ncpamixer.dir/pa.cpp.o] Error 1 make[1]: ** [CMakeFiles/Makefile2:123: CMakeFiles/ncpamixer.dir/all] Error 2 make: [Makefile:149: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting... error making: ncpamixer

fx101 commented on 2020-08-28 09:52 (UTC) (edited on 2020-08-28 09:53 (UTC) by fx101)

This package is currently broken due to some pedantic errors in the latest GCC. Also, 1.3.3.1 is out now. Here's a patch to address the first issue:

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 72bc495..e67d859 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -76,9 +76,6 @@ target_link_libraries(${CMAKE_PROJECT_NAME}
     ${CMAKE_THREAD_LIBS_INIT}
     )

-target_compile_options(${CMAKE_PROJECT_NAME} PUBLIC "-Werror")
-target_compile_options(${CMAKE_PROJECT_NAME} PUBLIC "-Wall")
-target_compile_options(${CMAKE_PROJECT_NAME} PUBLIC "-Wpedantic")

And here's the git diff for the SHA256sum and patching modifications needed for PKGBUILD:

diff --git a/PKGBUILD b/PKGBUILD
index 4a2e5b1..6ac73d7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: sQVe <oskargrunning@gmail.com>

 pkgname=ncpamixer
-pkgver=1.3.3
+pkgver=1.3.3.1
 pkgrel=1
 pkgdesc='ncurses PulseAudio Mixer'
 url='https://github.com/fulhax/ncpamixer'
@@ -12,8 +12,13 @@ makedepends=('git' 'cmake')
 provides=('ncpamixer')
 replaces=('ncpamixer-git')
 conflicts=('ncpamixer-git')
-source=("https://github.com/fulhax/${pkgname}/archive/${pkgver}.tar.gz")
-sha256sums=('a9f5385e06de4d5554030cc41c111d08d2bd1488140f260f10aec27369475c5f')
+source=("https://github.com/fulhax/${pkgname}/archive/${pkgver}.tar.gz" "fix_pedantic_errors.patch")
+sha256sums=('b2c797a90c92aa931052c5ac89a79fbc30f76d5e2a5b773ef68edf057c34b060' '6d53e5c17db8e0de5f848710493127c3f1e16606da1d3a66b9463f87e3dec341')
+
+prepare() {
+    cd "$srcdir/$pkgname-$pkgver"
+    patch -p1 --forward --input="$srcdir/fix_pedantic_errors.patch"
+}

 build() {
   cd "$srcdir/$pkgname-$pkgver"

chowbok commented on 2018-08-05 03:26 (UTC)

Hi, can you add "aarch64" to the supported architectures? I tested it, it builds fine.

kragacles commented on 2018-03-17 14:14 (UTC)

Thanks for this! An excellent replacement for pavucontrol.

<deleted-account> commented on 2018-02-05 07:28 (UTC)

You are right, I don't maintain ncpamixer-git so I've written a comment on it on ncpamixer-git.

willemw commented on 2018-02-04 07:45 (UTC)

provides=, replaces= and conflicts= should be defined in "other" ncpamixer packages ("ncpamixer-git"), not in the "main" ncpamixer package ("ncpamixer").