openSUSE hints for media_build
Hello again,
sorry, attachment missing.
Kind regards,
Georg Jansing
Am 29.06.2012 18:26, schrieb Georg Jansing:
Quoted 6 lines
Hello everybody,
I was trying to install Linux TV Kernel Modules via your
media_buildgit repo/scripts. Since I am on openSUSE and there are no installation hints yet, and I needed to look up the correct packages anyways, here is a small patch that adds the corresponding infomation to your script.I hope, the formulation for adding the perl buildservice repository (something like Ubuntu's PPAs) is clear enough. Please also be warned, that I never did anything in perl yet, so I don't know if I chose the best/perl way to add the repo message.
Quoted 8 lines
Sadly, the
media_builddrivers did not work for me, but with the script I could at least compile them correctly (I think ;-)).Kind regards,
Georg Jansing
From
7c622ca8df674a5b39c3e6c60cc69000f021e395Mon Sep 17 00:00:00 2001
From: Georg Jansing <[email protected]>
Date: Fri, 29 Jun 2012 18:38:46 +0200
Subject: [PATCH] Add installation hints for openSUSE.
--- build | 37 +++++++++++++++++++++++++++++++++++++ 1 files changed, 37 insertions(+), 0 deletions(-)
build +36 -0
@@ -91,6 +91,38 @@ sub give_ubuntu_hints() printf("You should run:\n\tsudo apt-get install $install\n"); } +sub give_opensuse_hints() +{ + my $install; + + my %map = ( + "lsdiff" => "patchutils", + "Digest::SHA" => "perl-Digest-SHA1", + "Proc::ProcessTable" => "perl-Proc-ProcessTable", + ); + + my $need_perl_repo = 0; + + 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; + } + if ($prog eq "Proc::ProcessTable") { + $need_perl_repo = 1; + } + } + + printf("You should run:\n\tsudo zypper install $install\n"); + + if ($need_perl_repo) { + printf("\nThe Proc::ProcessTable perl module can be found in the perl buildservice repository. "); + printf("Add with the command (replacing 12.1 with your openSUSE release version):\n"); + printf("\tsudo zypper ar http://download.opensuse.org/repositories/devel:/languages:/perl/openSUSE_12.1/ perl\n"); + } +} sub give_arch_linux_hints() {
@@ -152,6 +185,10 @@ sub give_hints() give_ubuntu_hints; return; } + if ($system_release =~ /openSUSE/) { + give_opensuse_hints; + return; + } if ($system_release =~ /Arch Linux/) { give_arch_linux_hints; return;
Signature · 1 line
1.7.7
PATCH 1/1 openSUSE hints for media_build
Hello everybody,
I was trying to install Linux TV Kernel Modules via your media_build git repo/scripts. Since I am on openSUSE and there are no installation hints yet, and I needed to look up the correct packages anyways, here is a small patch that adds the corresponding infomation to your script.
I hope, the formulation for adding the perl buildservice repository (something like Ubuntu's PPAs) is clear enough. Please also be warned, that I never did anything in perl yet, so I don't know if I chose the best/perl way to add the repo message.
Sadly, the media_build drivers did not work for me, but with the script I could at least compile them correctly (I think ;-)).
Kind regards,
Georg Jansing