All of lore.kernel.org
 help / color / mirror / Atom feed
* Arch Linux package names for media-build
@ 2011-10-06 18:12 Michal Donat
  2011-10-06 19:39 ` Mauro Carvalho Chehab
  0 siblings, 1 reply; 2+ messages in thread
From: Michal Donat @ 2011-10-06 18:12 UTC (permalink / raw)
  To: linux-media

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

-- 
Using Opera's revolutionary email client: http://www.opera.com/mail/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Arch Linux package names for media-build
  2011-10-06 18:12 Arch Linux package names for media-build Michal Donat
@ 2011-10-06 19:39 ` Mauro Carvalho Chehab
  0 siblings, 0 replies; 2+ messages in thread
From: Mauro Carvalho Chehab @ 2011-10-06 19:39 UTC (permalink / raw)
  To: Michal Donat; +Cc: linux-media

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) {

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-10-06 19:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-06 18:12 Arch Linux package names for media-build Michal Donat
2011-10-06 19:39 ` Mauro Carvalho Chehab

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.