You are not logged in.
Hi. Thanks for reading my questions. I just migarated from gentoo to Arch this week and I am still familarizing myself with the basic stuffs of Arch. Today I tried to convert a bunch of RMVB files into H264/AAC MP4 and I noticed that the ffmpeg package from official repository does not enable libfaac, so I managed to install the git version through yaourt. The aac encoder sometimes get stuck so I had to use libfaac.
Anyway, after I built ffmpeg-git and x264-git from AUR, I noticed that mplayer is broken due to some missing .so file from x264, so it seemed to me the only recommended solution is to compile mplayer-svn in AUR. Later I noticed that amarok was also broken by missing ffmpeg .so. So I am feeling a little confused now... I therefore have the following questions... I apologize if they are newbie questions and should be answered with "RTFM"... ![]()
1. To resolve the broken shared objects, like what I encountered, is compiling all the packages DIRECTLY depending on x264+ffmpeg the only recommended solution?
If this is the only solution, then it may not look that bad because it seems to me that by using pacman -Qi I can easily find out who depend on x264+ffmpeg, and there are only very few of them.
2. How to list those packages OPTIONALLY depending on x264+ffmpeg?
I ran findbrokenpkgs and found
/usr/lib/alsa-lib/libasound_module_pcm_a52.so needs missing libavcodec.so.54
Clearly, alsa-plugins only lists ffmpeg as optional dependency. I searched around and didn't find pacman support such function, neither I found anything useful except writing script by myself. And to gave me more headache, I even could not figure out whether this broken optional dependency was harmful. Though I assume they are generally harmless.
3. What if compiling thos packages, which DIRECTLY depend on ffmpeg, through AUR breaks those packages INDIRECTLY depending on ffmpeg ?
I am merely using ffmpeg as an example. Assume, package A depends on ffmpeg and has a broken .so. Then I compiled A, and realized that package B, which depends on A, is consequently broken. I don't think it
is going to happen quite often and some of the breakages may not be harmful, or their harm is not immediate. But as time moves on, those potential breakage may become more difficult to diagonose..
4. What is the best way to avoid messing up my system if I have to install plenty of packages from AUR?
I will certainly be much more cautious in future when installing anything from AUR by running findbrokenpkgs more frequently. But again, what if finally I ran into a system with many packages demanding a compilation from AUR, which made my machine look more like a gentoo instead of Arch? Are there any general suggestions?
Thank you in advance.. ![]()
Last edited by shallpion (2013-01-06 17:18:46)
Offline
I just learnt that a better choice, instead of install git version from AUR, is to build the same version of ffmpeg from ABS with my personal preference of compilation configuration...
Sorry for my stupid question...
Offline
Since ffmpeg can be a little pain, I wouldn't go with the git version from the AUR if possible. Instead, I'd recompile the official version using PKGBUILD from ABS with options I need -- libfaac in this case. This way I'd try to avoid problems with packages depending on the official ffmpeg. Besides, I try to stick with a rather consistent set of packages, choosing necessary applications so that the core libraries can easily be shared. AUR comes in handy only when there's no alternative present in the official repos; this simplifies the maintenance, IMO.
Edit: you seem to have already answered your question...
Last edited by bohoomil (2013-01-06 17:25:47)
:: Registered Linux User No. 223384
:: github
:: infinality-bundle+fonts: good looking fonts made easy
Offline
Since ffmpeg can be a little pain, I wouldn't go with the git version from the AUR if possible. Instead, I'd recompile the official version using PKGBUILD from ABS with options I need -- libfaac in this case. This way I'd try to avoid problems with packages depending on the official ffmpeg. Besides, I try to stick with a rather consistent set of packages, choosing necessary applications so that the core libraries can easily be shared. AUR comes in handy only when there's no alternative present in the official repos; this simplifies the maintenance, IMO.
Edit: you seem to have already answered your question...
Yes... I somehow forgot there is a thing called makepkg and was totally confused about how Arch users should handle the .so nightmare. Just built ffmpeg by myself and now digging into detailed configuration. Thanks a lot ![]()
Offline