Re: change in build .sh due to Pulseaudio device removal /

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Em 19-06-2011 09:40, Jan Hoogenraad escreveu:
> Mauro:
> 
> You are completely right. Getting the packages automatically is very user-friendly. Furthermore, this will make media_build a great place to start of users stuck with older kernels.

Automatic install is good, but I think that providing a command line to the user
is better, as he may want to install things on a different way. For example, on
Mandriva, there are 2 or 3 different options to install package. I think that 
Debian/Ubuntu also provides at least 3 different ways (apt-get, aptitude, yum).

> 
> 
> On Ubuntu, the package name is  libproc-processtable-perl
> the command to install it is (on Ubuntu, usually no root user is used, but rather per command invokation).
> 
> The command for installation will be:
> 
>  sudo apt-get install libproc-processtable-perl
> 
> There is no
> /etc/system-release
> on my system
> 
> However, there is a file /etc/lsb-release
> cat /etc/lsb-release
> DISTRIB_ID=Ubuntu
> DISTRIB_RELEASE=10.04
> DISTRIB_CODENAME=lucid
> DISTRIB_DESCRIPTION="Ubuntu 10.04.2 LTS"
> 
> I will make an updated script in the next week.

OK. I just added a logic that works with RHEL/Fedora. There's no
/etc/lsb-release on RHEL 6.1 or Fedora 15, but it shouldn't be hard
to do support the Ubuntu way with:

 my $system_release = qx(cat /etc/system-release);
 $system_release = qx(cat /etc/redhat-release) if !$system_release;
+$system_release = qx(grep DISTRIB_ID /etc/lsb-release) if !$system_release;

Cheers,
Mauro
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux