media-build patch: distro-specific hint

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

 



On Debian I did:

  $ git clone git://linuxtv.org/media_build.git
  $ ./media_build/build
  Checking if the needed tools are present
  ...
  I don't know distro . So, I can't provide you a hint with the package names.


Debian uses /etc/issue to store the distro name, patch below:


$ diff -Naur media_build/build.orig media_build/build
--- media_build/build.orig      2012-04-09 12:48:39.000000000 +0100
+++ media_build/build   2012-04-09 14:01:02.000000000 +0100
@@ -307,6 +307,7 @@
 $system_release = catcheck("/etc/redhat-release") if !$system_release;
 $system_release = catcheck("/etc/lsb-release") if !$system_release;
 $system_release = catcheck("/etc/gentoo-release") if !$system_release;
+$system_release = catcheck("/etc/issue") if !$system_release;
 $system_release =~ s/\s+$//;
 
 check_needs;

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