forked from NixOS/nixpkgs
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cantata: add perl for dynamic playlists
Cantata wants to check if perl is available at runtime, but we already patch the script shebangs, making it unnecessary to be available at runtime -- thus, patch out this check.
- Loading branch information
Showing
2 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
pkgs/applications/audio/cantata/dont-check-for-perl-in-PATH.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
diff --git a/playlists/dynamicplaylists.cpp b/playlists/dynamicplaylists.cpp | ||
index 07b6dce3..6a3f97c9 100644 | ||
--- a/playlists/dynamicplaylists.cpp | ||
+++ b/playlists/dynamicplaylists.cpp | ||
@@ -211,11 +211,6 @@ void DynamicPlaylists::start(const QString &name) | ||
return; | ||
} | ||
|
||
- if (Utils::findExe("perl").isEmpty()) { | ||
- emit error(tr("You need to install \"perl\" on your system in order for Cantata's dynamic mode to function.")); | ||
- return; | ||
- } | ||
- | ||
QString fName(Utils::dataDir(rulesDir, false)+name+constExtension); | ||
|
||
if (!QFile::exists(fName)) { | ||
|