LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Why does Conky depend on Audacious?!!! (https://www.linuxquestions.org/questions/slackware-14/why-does-conky-depend-on-audacious-887645/)

manzdagratiano 06-21-2011 10:15 PM

Why does Conky depend on Audacious?!!!
 
Hi All!

I noticed I had audacious installed on my system, and having been a fan of setting up a minimal Slackware system, I purged it immediately. But, subsequently, conky refused to start with the error message:

conky: error while loading shared libraries: libaudcore.so.1: cannot open shared object file: No such file or directory


Reinstalling audacious and audacious-plugins fixed the issue. Now I have nothing against audacious - that was the first audio player I had ever used in GNU/Linux, on a Knoppix CD (well, xmms actually). But why on earth does conky depend on a shared library that is part of audacious? I do not have audacious on my other distros, so I am flabbergasted!

andrewthomas 06-21-2011 10:22 PM

When you built conky, you had audacious on your system and it must of linked to it.

If you would have rebuilt conky after removing audacious, it would work just fine.

thegato 06-21-2011 10:40 PM

Audacious should be disabled by default. However if you're using the script from slackbuilds.org it has --enable-audacious set.

Just remove it or switch it to --disable-audacious

manzdagratiano 06-21-2011 11:50 PM

Quote:

Originally Posted by thegato (Post 4392355)
Audacious should be disabled by default. However if you're using the script from slackbuilds.org it has --enable-audacious set.

Just remove it or switch it to --disable-audacious

Aha! Herein lies the culprit - I indeed did build from Slackbuilds.org! Thanks! I would expect that the default behavior would be to disable audacious support.

andrewthomas 06-22-2011 10:20 AM

Quote:

Originally Posted by manzdagratiano (Post 4392383)
Aha! Herein lies the culprit - I indeed did build from Slackbuilds.org! Thanks! I would expect that the default behavior would be to disable audacious support.

Yet, if you don't have audacious on your system, the --enable-audacious flag is harmless.

The only reason you encountered a problem was because you removed the program.

manzdagratiano 06-23-2011 08:54 AM

Quote:

Originally Posted by andrewthomas (Post 4392865)
Yet, if you don't have audacious on your system, the --enable-audacious flag is harmless.

The only reason you encountered a problem was because you removed the program.

The flag would be harmless by itself, but the Slackbuilds.org script lists audacious as a mandatory dependency - it won't compile without it! - I tried building without audacious and it screamed; why on Earth they would do that is beyond me, and maybe I should submit a new script. For the meantime, I just chose to leave audacious installed as opposed to manually downloading and editing the Slackbuild, so that the package could be cleanly managed by sbopkg :)

Daedra 06-23-2011 09:36 AM

I maintain the conky script and it may beyond you, but like were saying audacious is standard in the stock Slackware full install, which most people here seem use. Why would I gut a useful feature out of the build script when its easy enough for people who don't need it to just edit the script themselves. It takes maybe an extra two minutes to build it by hand vs. sbopkg. Is it really that inconvenient for you?

abrouwers 06-23-2011 10:28 AM

Quote:

Originally Posted by manzdagratiano (Post 4393719)
The flag would be harmless by itself, but the Slackbuilds.org script lists audacious as a mandatory dependency - it won't compile without it! - I tried building without audacious and it screamed; why on Earth they would do that is beyond me, and maybe I should submit a new script. For the meantime, I just chose to leave audacious installed as opposed to manually downloading and editing the Slackbuild, so that the package could be cleanly managed by sbopkg :)

Actually, the problem is that YOU built it against audacious, and then removed the audacious package. Otherwise, your package would not have linked against audacious in the first place. Don't blame the tools :-)

manzdagratiano 06-24-2011 10:18 AM

Quote:

Originally Posted by Daedra (Post 4393751)
I maintain the conky script and it may beyond you, but like were saying audacious is standard in the stock Slackware full install, which most people here seem use. Why would I gut a useful feature out of the build script when its easy enough for people who don't need it to just edit the script themselves. It takes maybe an extra two minutes to build it by hand vs. sbopkg. Is it really that inconvenient for you?

I apologize if my comment seemed like the `flamewar' type - such was not my intention. I would first commend you for maintaining the script in the first place. What I was trying to elucidate was that I find it unusual that audacious is a mandatory dependency of conky, since it is not necessary for conky to function (why I say `mandatory' is revealed later in the post - please see below). I concede that it is included in the regular Slackware stock build, but whether a person actually chooses to have it on their system is a matter of personal choice. Just to corroborate my point, if you take a look at this thread over in the Arch Linux forums representing a poll of media players, most people use mpd as opposed to audacious, whereas mpd is not a mandatory dependency of conky, though the flag is indeed enabled by default in your script, which detects mpd if it is there and not otherwise. Agreed that mpd is not part of the standard install, but there are tons of packages in Slackbuilds.org that have external dependencies not in the Slackware default install. I am not making this a case to make mpd a dependency - I would just like to ask: why not the same for audacious? Leave the flag enabled, and if the user has it, include the support, else not. Listing it as a mandatory dependency requires modifying the script itself, which though not really inconvenient because it entails editing a few lines of code, is an extra step. If one were to argue that Slackers are 'advanced' enough to deal with that, then one could also say that they are advanced enough to just download the source themselves, and './configure + make + make install' themselves, thereby eliminating the need for the entire Slackbuilds.org repository, which would be a ludicrous statement! But, as I acknowledged, the choice is indeed yours.

Quote:

Originally Posted by abrouwers (Post 4393787)
Actually, the problem is that YOU built it against audacious, and then removed the audacious package. Otherwise, your package would not have linked against audacious in the first place. Don't blame the tools :-)

To that I can only reply - you did not read my last post carefully. I am not here blaming the tools. I also tried after I purged audacious, and when I purge conky and try reinstalling it via sbopkg, this is what I get:
Code:

checking for Audacious... configure: error: Package requirements (audacious >= 1.4.0 audclient dbus-glib-1 glib-2.0 gobject-2.0) were not met:

No package 'audacious' found
No package 'audclient' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables Audacious_CFLAGS
and Audacious_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.


conky:
Would you like to continue processing the rest of the
build queue or would you like to abort?  If this failed
package is a dependency of another package in the queue
then it may not make sense to continue.

(Y)es to continue, (N)o to abort, (R)etry the build?:

This therefore implies that audacious is listed as a mandatory dependency, and not merely as a flag which is harmless even if enabled in the absence of audacious. Like I said, it doesn't really bother me to either leave audacious installed or build with it explicitly disabled. I was merely pointing out that turning on a package as a mandatory dependency which is not really needed for the functioning of the package being installed is an anomalous choice.

Daedra 06-24-2011 10:38 AM

I understand what you are saying, I do. But when I submit packages to SBo I submit them with the mindset that the person did a full install, since that is what is generally recommended. If you notice the conky build does have a flag for lua, the reason is because lua does not come with the stock Slackware so enabling it by default would make no sense, but as you know audacious does. Yes it sucks that if you don't have audacious the build will fail, but the vast majority of people will never run into this problem. And the ones who do can just remove the --enable-audacious flag and build it themselves.

manzdagratiano 06-24-2011 12:23 PM

Quote:

Originally Posted by Daedra (Post 4394636)
I understand what you are saying, I do. But when I submit packages to SBo I submit them with the mindset that the person did a full install, since that is what is generally recommended. If you notice the conky build does have a flag for lua, the reason is because lua does not come with the stock Slackware so enabling it by default would make no sense, but as you know audacious does. Yes it sucks that if you don't have audacious the build will fail, but the vast majority of people will never run into this problem. And the ones who do can just remove the --enable-audacious flag and build it themselves.

Agreed and conceded by all means Good Sir! :)

Cheers!


All times are GMT -5. The time now is 02:15 PM.