From: Mauro Carvalho Chehab <mchehab@redhat.com>
To: Michal Donat <michal.donat@atlas.cz>
Cc: linux-media@vger.kernel.org
Subject: Re: Arch Linux package names for media-build
Date: Thu, 06 Oct 2011 16:39:30 -0300 [thread overview]
Message-ID: <4E8E03F2.5040103@redhat.com> (raw)
In-Reply-To: <op.v2xzjjzd1s61x9@arch-laptop>
Em 06-10-2011 15:12, Michal Donat escreveu:
> Hi,
> see the console output below. The mentioned packages in Arch Linux are:
>
> Digest::SHA1: repository/package = extra/perl-digest-sha1
> Proc::ProcessTable: repository/package = aur/perl-proc-processtable
> Also there was missing lsdiff: repository/package = community/patchutils
>
>
>> /tmp/src $ git clone git://linuxtv.org/media_build.git
>> /tmp/src/media_build $ ./build Checking if the needed tools for Arch Linux are available ERROR: please install "Digest::SHA1", otherwise, build won't work. ERROR: please install "Proc::ProcessTable", otherwise, build won't work. I don't know distro Arch Linux. So, I can't provide you a hint with the package names. Be welcome to contribute with a patch for media-build, by submitting a distro-specific hint to linux-media@vger.kernel.org
>
Could you please test if the patch bellow works properly with Arch Linux?
Thanks,
Mauro
-
Add hints for Arch Linux
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
diff --git a/build b/build
index 052ecff..5b6ca15 100755
--- a/build
+++ b/build
@@ -91,6 +91,29 @@ sub give_ubuntu_hints()
printf("You should run:\n\tsudo apt-get install $install\n");
}
+
+sub give_arch_linux_hints()
+{
+ my $install;
+
+ my %map = (
+ "lsdiff" => "community/patchutils",
+ "Digest::SHA1" => "extra/perl-digest-sha1",
+ "Proc::ProcessTable" => "aur/perl-proc-processtable",
+ );
+
+ foreach my $prog (@missing) {
+ print "ERROR: please install \"$prog\", otherwise, build won't work.\n";
+ if (defined($map{$prog})) {
+ $install .= " " . $map{$prog};
+ } else {
+ $install .= " " . $prog;
+ }
+ }
+
+ printf("You should install those package(s) (repository/package): $install\n");
+}
+
sub give_hints()
{
@@ -107,6 +130,10 @@ sub give_hints()
give_ubuntu_hints;
return;
}
+ if ($system_release =~ /Arch Linux/) {
+ give_arch_linux_hints;
+ return;
+ }
# Fall-back to generic hint code
foreach my $prog (@missing) {
prev parent reply other threads:[~2011-10-06 19:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-06 18:12 Arch Linux package names for media-build Michal Donat
2011-10-06 19:39 ` 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=4E8E03F2.5040103@redhat.com \
--to=mchehab@redhat.com \
--cc=linux-media@vger.kernel.org \
--cc=michal.donat@atlas.cz \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.