SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
first let me say that if you want to get in touch with me directly you can use a pm or also by email (it's pretty easy to find it) if you open a topic in a forum usually is because you want to discuss thing in public so other people can also partecipate.
then, on the matter of the topic: the issue with the newer release of audacity is that the audacity people left a stale configure file in their tarball.
as you have noticed too, regenerating a new one with "autoreconf -vif" fixes the dependency detection.
I prefer to specify what has to be enabled using switches mainly because I prefer to use as dependencies what we have available on SBo, preferring that to the third-party sources that the audacity people ship with their tarballs: some versions ago they don't ship anything and they have the habit of not being very consistent with those in the past (they sometimes work fine, other times not), so, if I have to support a build script, I prefer to do it with whatever I have the possibility to test extensively.
also, if you make the audacity build system autodetect everything you have in the system, if it doesn't find a dependency it will automatically use the corresponding one from the third-party bundled sources, so, if you prefer to enable only some of the functionality in audacity disabiling others, you would have to disable them specifically in the script editing it: I personally prefer to have them disabled if they're not available in the system.
that said, regarding an handful of specific dependencies like libsoxr, I prefer to use the version shipped with the sources.
OK , more flexible build if people can choose what enable and what disable.
Probably cause i think ever in enable all possible options , but not all users want this.
I try modifications, cause have a trouble with actual script , if remove libflac , he not link the system version , and later get an error cause the script remove the libsrc in audacity project, at this point can remove in the list of folder to delete , "flac" and then build, but using audcity flac version.
In some case this post is only for talk , and i apreciate developers lost time on help other users , thanks !
I try modifications, cause have a trouble with actual script , if remove libflac , he not link the system version , and later get an error cause the script remove the libsrc in audacity project, at this point can remove in the list of folder to delete , "flac" and then build, but using audcity flac version.
consider that every script on SBo assumes that you are using a Slackware full installation to run it, so I personally don't even put in account the case in which you have removed the shipped libflac from your system.
# ensure we use the system headers for these: note that we do this after the
# configure as this last wants to run sub-configures in these dirs
for i in ffmpeg expat libid3tag libflac libmad libresample libsndfile libvamp lv2 soundtouch twolame; do
rm -rf lib-src/$i
done
if no run autoreconf -vi , then audacity try to build own libflac ...but script removed from source = ERROR ON BUILD
cause no system version linked (no autoreconf -vi) , audacity now wants that...or try compile in own version of libreries.
In some case , when you try ..you see.
that --> --with-libflac=system \
no work if not link system librarie ... :=)
thats the same , for the rest of list .... if delete but no linked , build LOCAL libraries , pay attention after configure..says what are SYSTEM and LOCAL linked.
Last edited by USUARIONUEVO; 03-19-2017 at 03:37 PM.
if no run autoreconf -vi , then audacity try to build own libflac ...but script removed from source = ERROR ON BUILD
sorry, I think I had explained this earlier: you *have to* run autoreconf in case of audacity-2.1.3, because the configure shipped is broken, that's why it doesn't use the system libflac.
Successfully able to compile 2.1.3 after adding autoreconf -vi , now if only I knew enough how to properly add audacity-manual-2.1.3.zip to the slackbuild, instead of just manually unzipping to
you have to unzip it into /usr/share/audacity/help/manual but, IMHO, it's not that useful to package it because it's just a bunch of html files (20 Mb) that are opened in the browser once you select "Help" -> "Manual" from the menu, so it's not that different to reading them online: you can set up audacity to read them also remotely, it doesn't change anything for the program as it opens an external browser.
I'll add an option to package it but I'll leave it disabled by default, the only people who will need it will be the ones wanting to read it without an internet connection.
you have to unzip it into /usr/share/audacity/help/manual but, IMHO, it's not that useful to package it because it's just a bunch of html files that are opened in the browser once you select "Help" -> "Manual" from the menu, so it's not that different to reading them online: you can set up audacity to read them also remotely, it doesn't change anything for the program as it opens an external browser.
I'll add an option to package it but I'll leave it disabled by default, the only people who will need it will be the ones wanting to read it without an internet connection.
If you can add the .zip as some kind of optional dependency, and then just add MANUAL=yes for the slackbuild assuming the zip file is downloaded along with the source, that would be ideal. I just prefer having things offline
If you can add the .zip as some kind of optional dependency, and then just add MANUAL=yes for the slackbuild assuming the zip file is downloaded along with the source, that would be ideal. I just prefer having things offline
I have done exactly like that
Code:
diff -Naur audacity.orig/README audacity/README
--- audacity.orig/README 2017-03-19 08:53:11.582204339 +0100
+++ audacity/README 2017-03-21 07:00:31.200734315 +0100
@@ -5,3 +5,7 @@
Optional dependencies (autodetected) are ffmpeg, jack-audio-connection-kit,
ladspa_sdk, lame, soundtouch, twolame, vamp-plugin-sdk and lilv + suil
(for lv2 support).
+
+The manual is packaged with the application only if you pass the script
+the additional option
+ MANUAL=yes
diff -Naur audacity.orig/audacity.SlackBuild audacity/audacity.SlackBuild
--- audacity.orig/audacity.SlackBuild 2017-03-19 08:53:11.583204339 +0100
+++ audacity/audacity.SlackBuild 2017-03-21 07:34:32.553179714 +0100
@@ -1,9 +1,9 @@
#!/bin/sh
-# Slackware build script for Audacity
+# Slackware build script for audacity
# Copyright 2006-2010 Chess Griffin <chess@chessgriffin.com>
-# Copyright 2011-2016 Matteo Bernardini <ponce@slackbuilds.org>
+# Copyright 2011-2017 Matteo Bernardini <ponce@slackbuilds.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -31,7 +31,7 @@
PRGNAM=audacity
SRCNAM=Audacity
-VERSION=${VERSION:-2.1.2}
+VERSION=${VERSION:-2.1.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -63,6 +63,7 @@
fi
if [ -x /usr/bin/listplugins ]; then do_ladspa="--with-ladspa"; else do_ladspa="--without-ladspa"; fi
+if [ $(which lame) ]; then do_lame="-lame=system"; else do_lame="out-lame"; fi
if pkg-config --exists libavcodec; then do_ffmpeg="-ffmpeg=system"; else do_ffmpeg="out-ffmpeg"; fi
if pkg-config --exists soundtouch; then do_soundtouch="-soundtouch=system"; else do_soundtouch="out-soundtouch"; fi
if pkg-config --exists twolame; then do_twolame="-libtwolame=system"; else do_twolame="out-libtwolame"; fi
@@ -91,6 +92,8 @@
# fix building against ffmpeg-2.6.x, patch from archlinux
patch -p1 < $CWD/audacity-ffmpeg.patch
+autoreconf -fi
+
# libsoxr is the new default resampling library
LDFLAGS="-L/usr/lib$LIBDIRSUFFIX" \
CFLAGS="$SLKCFLAGS" \
@@ -109,6 +112,7 @@
--with-libsoxr \
--with-portaudio \
$do_ladspa \
+ --with$do_lame \
--with$do_ffmpeg \
--with$do_lv2 \
--with$do_soundtouch \
@@ -131,10 +135,10 @@
# We're going to overwrite the included audacity.desktop file with ours,
# and the icon isn't added at all by upstream, so we'll do that here
-install -D -m 0644 $CWD/audacity.desktop \
- $PKG/usr/share/applications/audacity.desktop
+install -D -m 0644 $CWD/$PRGNAM.desktop \
+ $PKG/usr/share/applications/$PRGNAM.desktop
install -D -m 0644 images/AudacityLogo48x48.xpm \
- $PKG/usr/share/pixmaps/audacity.xpm
+ $PKG/usr/share/pixmaps/$PRGNAM.xpm
# Move manpage directory to the proper location
mv $PKG/usr/share/man $PKG/usr
@@ -145,6 +149,11 @@
cp LICENSE.txt README.txt todo.txt $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+if [ "${MANUAL:-no}" = "yes" ]; then
+ mkdir -p $PKG/usr/share/$PRGNAM/help/manual
+ unzip $CWD/$PRGNAM-help-$VERSION.zip -d $PKG/usr/share/$PRGNAM/help/manual
+fi
+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
diff -Naur audacity.orig/audacity.info audacity/audacity.info
--- audacity.orig/audacity.info 2017-03-19 08:53:11.583204339 +0100
+++ audacity/audacity.info 2017-03-21 06:54:53.114765327 +0100
@@ -1,8 +1,10 @@
PRGNAM="audacity"
-VERSION="2.1.2"
+VERSION="2.1.3"
HOMEPAGE="http://audacity.sourceforge.net"
-DOWNLOAD="https://github.com/audacity/audacity/archive/Audacity-2.1.2.tar.gz"
-MD5SUM="84488cd755fe14cbc39769dd1abb7113"
+DOWNLOAD="https://github.com/audacity/audacity/archive/Audacity-2.1.3.tar.gz \
+ http://ponce.cc/slackware/sources/repo/audacity-help-2.1.3.zip"
+MD5SUM="82e7216ae4b9bb597ed6f291bd44f45 \
+ 5e32b26a48f79e82438998c3334fe117"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="wxGTK3"
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.