From: Mauro Carvalho Chehab <mchehab@redhat.com>
To: Jan Hoogenraad <jan-conceptronic@hoogenraad.net>
Cc: Linux Media Mailing List <linux-media@vger.kernel.org>
Subject: Re: change in build .sh due to Pulseaudio device removal /
Date: Sun, 19 Jun 2011 09:50:45 -0300 [thread overview]
Message-ID: <4DFDF0A5.9030207@redhat.com> (raw)
In-Reply-To: <4DFDEE23.1070106@hoogenraad.net>
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
prev parent reply other threads:[~2011-06-19 12:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-17 20:08 Pulseaudio device removal Mauro Carvalho Chehab
2011-06-18 17:20 ` change in build .sh due to Pulseaudio device removal / Jan Hoogenraad
2011-06-19 12:15 ` Mauro Carvalho Chehab
2011-06-19 12:40 ` Jan Hoogenraad
2011-06-19 12:50 ` Mauro Carvalho Chehab [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4DFDF0A5.9030207@redhat.com \
--to=mchehab@redhat.com \
--cc=jan-conceptronic@hoogenraad.net \
--cc=linux-media@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox