Package Details: aacgain-cvs 20130814-7

Git Clone URL: https://aur.archlinux.org/aacgain-cvs.git (read-only, click to copy)
Package Base: aacgain-cvs
Description: Adjusts the volume of music files (mp4/m4a/QT/mp3) using ReplayGain algorithm.
Upstream URL: http://altosdesign.com/aacgain
Licenses: GPL
Conflicts: aacgain
Provides: aacgain
Submitter: skystrife
Maintainer: oliver.anhuth
Last Packager: oliver.anhuth
Votes: 66
Popularity: 0.74
First Submitted: 2010-10-04 04:34 (UTC)
Last Updated: 2021-07-25 19:36 (UTC)

Latest Comments

oliver.anhuth commented on 2021-07-25 19:42 (UTC)

I disabled the warning which caused the compile error, so it should build again.

I have to say that this is really bad code though...

sotitrox commented on 2021-07-14 03:42 (UTC) (edited on 2021-07-14 03:43 (UTC) by sotitrox)

since a few months this it's not compilling :'( , the output its in spanish, sorry about that

``En el fichero inc``luido desde src/src.h:28,
                 desde src/impl.h:6:
src/mp4file.cpp: En la función miembro ‘MP4ChapterType mp4v2::impl::MP4File::ConvertChapters(MP4ChapterType)’:
src/mp4file.cpp:2583:44: error: el formato no es una cadena literal y no tiene argumentos de formato [-Werror=format-security]
 2583 |         VERBOSE_READ(GetVerbosity(), printf(errMsg));
      |                                      ~~~~~~^~~~~~~~
src/mp4util.h:48:63: nota: en definición de macro ‘VERBOSE’
   48 |     if (((exprverbosity) & (verbosity)) == (exprverbosity)) { expr; }
      |                                                               ^~~~
src/mp4file.cpp:2583:9: nota: en expansión de macro ‘VERBOSE_READ’
 2583 |         VERBOSE_READ(GetVerbosity(), printf(errMsg));
      |         ^~~~~~~~~~~~
En el fichero incluido desde /usr/include/string.h:519,
                 desde /usr/include/c++/11.1.0/cstring:42,
                 desde ./libplatform/platform_base.h:27,
                 desde ./libplatform/platform_posix.h:31,
                 desde ./libplatform/platform.h:24,
                 desde src/src.h:6,
                 desde src/impl.h:6:
En la función ‘char* strncpy(char*, const char*, size_t)’,
    incluido en línea de ‘void mp4v2::impl::MP4File::AddNeroChapter(MP4Timestamp, const char*)’ en src/mp4file.cpp:2233:16:
/usr/include/bits/string_fortified.h:95:34: aviso: ‘char* __builtin___strncpy_chk(char*, const char*, long unsigned int, long unsigned int)’: el límite especificado depende de la longitud del argumento origen [-Wstringop-truncation]
   95 |   return __builtin___strncpy_chk (__dest, __src, __len,
      |          ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
   96 |                                   __glibc_objsize (__dest));
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~
src/mp4file.cpp: En la función miembro ‘void mp4v2::impl::MP4File::AddNeroChapter(MP4Timestamp, const char*)’:
src/mp4file.cpp:2232:39: nota: la longitud se calcula aquí
 2232 |         int len = min((uint32_t)strlen(chapterTitle), (uint32_t)255);
      |                                 ~~~~~~^~~~~~~~~~~~~~
En el fichero incluido desde /usr/include/string.h:519,
                 desde /usr/include/c++/11.1.0/cstring:42,
                 desde ./libplatform/platform_base.h:27,
                 desde ./libplatform/platform_posix.h:31,
                 desde ./libplatform/platform.h:24,
                 desde src/src.h:6,
                 desde src/impl.h:6:
En la función ‘char* strncpy(char*, const char*, size_t)’,
    incluido en línea de ‘MP4TrackId mp4v2::impl::MP4File::FindChapterReferenceTrack(MP4TrackId, char*, int)’ en src/mp4file.cpp:2264:28:
/usr/include/bits/string_fortified.h:95:34: aviso: ‘char* __builtin_strncpy(char*, const char*, long unsigned int)’: el límite especificado depende de la longitud del argumento origen [-Wstringop-truncation]
   95 |   return __builtin___strncpy_chk (__dest, __src, __len,
      |          ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
   96 |                                   __glibc_objsize (__dest));
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~
src/mp4file.cpp: En la función miembro ‘MP4TrackId mp4v2::impl::MP4File::FindChapterReferenceTrack(MP4TrackId, char*, int)’:
src/mp4file.cpp:2263:55: nota: la longitud se calcula aquí
 2263 |                     int nameLen = min((uint32_t)strlen(name), (uint32_t)trackNameSize);
      |                                                 ~~~~~~^~~~~~
En el fichero incluido desde /usr/include/string.h:519,
                 desde /usr/include/c++/11.1.0/cstring:42,
                 desde ./libplatform/platform_base.h:27,
                 desde ./libplatform/platform_posix.h:31,
                 desde ./libplatform/platform.h:24,
                 desde src/src.h:6,
                 desde src/impl.h:6:
En la función ‘char* strncpy(char*, const char*, size_t)’,
    incluido en línea de ‘MP4ChapterType mp4v2::impl::MP4File::GetChapters(MP4Chapter_t**, uint32_t*, MP4ChapterType)’ en src/mp4file.cpp:2468:20:
/usr/include/bits/string_fortified.h:95:34: aviso: ‘char* __builtin_strncpy(char*, const char*, long unsigned int)’: el límite especificado depende de la longitud del argumento origen [-Wstringop-truncation]
   95 |   return __builtin___strncpy_chk (__dest, __src, __len,
      |          ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
   96 |                                   __glibc_objsize (__dest));
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~
src/mp4file.cpp: En la función miembro ‘MP4ChapterType mp4v2::impl::MP4File::GetChapters(MP4Chapter_t**, uint32_t*, MP4ChapterType)’:
src/mp4file.cpp:2467:48: nota: la longitud se calcula aquí
 2467 |             uint32_t len = min((uint32_t)strlen(name), (uint32_t)MP4V2_CHAPTER_TITLE_MAX);
      |                                          ~~~~~~^~~~~~
En el fichero incluido desde /usr/include/string.h:519,
                 desde /usr/include/c++/11.1.0/cstring:42,
                 desde ./libplatform/platform_base.h:27,
                 desde ./libplatform/platform_posix.h:31,
                 desde ./libplatform/platform.h:24,
                 desde src/src.h:6,
                 desde src/impl.h:6:
En la función ‘char* strncpy(char*, const char*, size_t)’,
    incluido en línea de ‘void mp4v2::impl::MP4File::AddChapter(MP4TrackId, MP4Duration, const char*)’ en src/mp4file.cpp:2174:20:
/usr/include/bits/string_fortified.h:95:34: aviso: ‘char* __builtin___strncpy_chk(char*, const char*, long unsigned int, long unsigned int)’: el límite especificado depende de la longitud del argumento origen [-Wstringop-truncation]
   95 |   return __builtin___strncpy_chk (__dest, __src, __len,
      |          ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
   96 |                                   __glibc_objsize (__dest));
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~
src/mp4file.cpp: En la función miembro ‘void mp4v2::impl::MP4File::AddChapter(MP4TrackId, MP4Duration, const char*)’:
src/mp4file.cpp:2171:39: nota: la longitud se calcula aquí
 2171 |         textLen = min((uint32_t)strlen(chapterTitle), (uint32_t)MP4V2_CHAPTER_TITLE_MAX);
      |                                 ~~~~~~^~~~~~~~~~~~~~
cc1plus: algunos avisos se tratan como errores
make: *** [GNUmakefile:1316: src/mp4file.lo] Error 1
==> ERROR: Se produjo un fallo en build().
    Cancelando...

oliver.anhuth commented on 2021-01-11 20:10 (UTC) (edited on 2021-01-12 10:21 (UTC) by oliver.anhuth)

Yes, my change to adjust the compile flags seems to be wrong. Your approach should work, but it seems safer to just change the makefile instead. Which was actually suggested by pitbuster in the first place.

I modified the package build accordingly. Perhaps you could check that it still works on ARM. I am not really using the package...

smilerish commented on 2021-01-09 09:38 (UTC) (edited on 2021-01-09 09:38 (UTC) by smilerish)

Thank you for adding ARM, oliver.anhuth. I can confirm this builds on arm7h (RPi).

Just a minor thing: I'm getting this warning a lot:

warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]

I think the problem is that pitbuster's suggestion overrides all the compiler flags, including optimisations. I fixed this by editing the line so that it appends to the environment (so makepkg.conf) CXXFLAGS:

make libmp4v2.la CXXFLAGS="$CXXFLAGS -Wno-narrowing"

In fact, I moved this option to the configure line instead of the make line, but I'm not sure if either is preferable? Both seem to work - tested on arm7h and x86_64.

oliver.anhuth commented on 2020-06-30 14:17 (UTC)

Thanks! Added -Wno-narrowing to the mp4v2 build flags. Let's see how long this can stay afloat...

pitbuster commented on 2020-06-30 04:14 (UTC)

The build is throwing -Wnarrowing errors. I got it to locally compile by doing some manual patching on the mp4v2 source, but I think adding -Wno-narrowing in the Makefiles should be better.

vicyos commented on 2020-05-17 09:02 (UTC)

It is not compiling. It's giving this error:

ERROR: A failure occurred in build(). Aborting... :: Unable to build aacgain-cvs - makepkg exited with code: 4

oliver.anhuth commented on 2020-03-02 08:02 (UTC)

I added ARM. But I don't have an ARM system to verify that it builds OK.

smilerish commented on 2020-02-28 16:16 (UTC)

Can I second/bump EtiennePerot's comment: this builds and works fine on ARM so can the PKGBUILD be updated to reflect that?

mokkurkalve commented on 2019-02-26 22:35 (UTC)

That took care of the problem. It builds just fine now.

oliver.anhuth commented on 2019-02-26 22:05 (UTC)

This is strange, I tried the snapshot and makepkg too and had no problems. Could be some difference in the setup. I fiddled with the PKGBUILD to make it less dependent on a specific file system layout. Maybe you could give it a try...

mokkurkalve commented on 2019-02-26 15:24 (UTC)

I've tried both yay and also just downloading snapshot and run 'makepkg'. Both methods fails the same way. Snapshot should contain all files. ls -la fix_missing_ptr_deref.patch PKGBUILD .SRCINFO

oliver.anhuth commented on 2019-02-24 17:57 (UTC)

Tried it out and encountered no problems. The patch file is part of the AUR repository, so you need more than just the PKGBUILD file. What install method are you using?

mokkurkalve commented on 2019-02-20 13:38 (UTC)

As said, build fails thus: PKGBUILD: line 37: ../../fix_missing_ptr_deref.patch: No such file or directory

kzoli429 commented on 2018-11-09 19:13 (UTC)

PKGBUILD: line 37: ../../fix_missing_ptr_deref.patch: No such file or directory ==> ERROR: A failure occurred in build(). Aborting...

oliver.anhuth commented on 2018-06-18 06:42 (UTC)

Source forge CVS repository for mp3gain seems to have locked up. Replaced it by some (arbitrary) github clone.

JohnDVD commented on 2018-06-16 17:11 (UTC)

cannot access cvs:

cvs update: [17:10:04] waiting for anoncvs_mp3gain's lock in /cvsroot/mp3gain/mp3gain

dreieck commented on 2016-12-08 11:13 (UTC)

You download a fixed version. So please adjust pkgver appropriately, and remove the "-svn"-addition to the package name.

dreieck commented on 2016-12-08 11:11 (UTC)

Source changed. Original source not available anymore: == %< == -> Downloading mp4v2-1.9.1.tar.bz2... --2016-12-08 12:10:40-- http://mp4v2.googlecode.com/files/mp4v2-1.9.1.tar.bz2 Resolving mp4v2.googlecode.com (mp4v2.googlecode.com)... 64.233.184.82, 2a00:1450:400c:c0b::52 Connecting to mp4v2.googlecode.com (mp4v2.googlecode.com)|64.233.184.82|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2016-12-08 12:10:40 ERROR 404: Not Found. == >% == Please update.

RubenKelevra commented on 2016-09-12 11:12 (UTC)

==> FEHLER: Fehler beim Download von http://mp4v2.googlecode.com/files/mp4v2-1.9.1.tar.bz2 Breche ab... ==> FEHLER:Makepkg konnte aacgain-cvs nicht erstellen. ==> Erstellen von aacgain-cvs neu starten?[j/N]

thesame commented on 2016-09-10 21:17 (UTC)

mp4v2 url is now: https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/mp4v2/mp4v2-1.9.1.tar.bz2

EtiennePerot commented on 2016-07-05 03:18 (UTC)

Confirmed that this builds and runs fine on armv7h. Can you add armv{6,7,8}{l,h} to the list of supported architectures?

Evilandi666 commented on 2013-08-14 14:53 (UTC)

Should work fine now. Problem was a behaviour change in patch, so that it can't patch files with paths like "../bla". Some sed and patch magic fixed it.

hamelg commented on 2013-05-02 19:12 (UTC)

PKGBUILD completely broken, I have switched to mp3gain (I don't have aac files)

Nothing4You commented on 2013-03-29 14:14 (UTC)

patching file ../../mp3gain/mpglibDBL/VbrTag.h Creating the configure script ~/build/aacgain-cvs/src ~/build/aacgain-cvs/src/aacgain/linux autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force aclocal: error: couldn't open directory 'm4': No such file or directory autoreconf: aclocal failed with exit status: 1 ~/build/aacgain-cvs/src/aacgain/linux to build aacgain: mkdir build cd build ../../../configure make If everything goes right, your aacgain executable will be located in the build/accgain directory. To reduce binary size, run strip -s on the executable. /home/rschwab/build/aacgain-cvs/PKGBUILD: line 63: ../../../configure: No such file or directory ==> ERROR: A failure occurred in build(). Aborting...

Markus00000 commented on 2013-01-11 08:33 (UTC)

I get this when trying to install: ==> Building mp4v2... Ignoring potentially dangerous file name ../mp4v2/src/mp4track.cpp can't find file to patch at input line 3 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- ../mp4v2/src/mp4track.cpp 2009-05-23 06:29:37.000000000 -0700 |+++ ../mp4v2/src/mp4track.cpp 2010-07-28 16:00:37.171875000 -0700 -------------------------- File to patch:

TheSaint commented on 2012-09-04 23:30 (UTC)

Found a problem << config.status: error: cannot find input file: `mp3gain/Makefile.in' >> Probaly one may install mp3gain alone, so it should skip this step.

commented on 2011-07-25 19:46 (UTC)

autoconf is a makedependancy. Building fails with the following error without it: /tmp/packerbuild-1000/aacgain-cvs/aacgain-cvs/PKGBUILD: line 63: ../../../configure: No such file or directory