Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
DHG_packages
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
Debian Haskell Group
DHG_packages
Commits
344413fc
Commit
344413fc
authored
Nov 19, 2019
by
Samuel Henrique
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ShellCheck: Remove cruft folder debian/patches
parent
f8a93a91
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
159 deletions
+0
-159
p/shellcheck/debian/patches/make_testsuite_optional.patch
p/shellcheck/debian/patches/make_testsuite_optional.patch
+0
-159
p/shellcheck/debian/patches/series
p/shellcheck/debian/patches/series
+0
-0
No files found.
p/shellcheck/debian/patches/make_testsuite_optional.patch
deleted
100644 → 0
View file @
f8a93a91
From: Helmut Grohne <helmut@subdivi.de>
Subject: make TemplateHaskell usage optional
Last-Update: 2016-08-13
The only use of TemplateHaskell in ShellCheck is for collecting QuickCheck
properties. Unfortunately this means that the main ShellCheck modules do not
build on non-TH architectures. This patch removes the runTests symbol defined
using TemplateHaskell on non-TH architectures by branching on the
Debian-specific DEBIAN_NO_GHCI CPP macro (Thanks to Joachim Breitner).
--- a/ShellCheck/Analytics.hs
+++ b/ShellCheck/Analytics.hs
@@ -17,8 +17,16 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-}
-{-# LANGUAGE TemplateHaskell, FlexibleContexts #-}
-module ShellCheck.Analytics (runAnalytics, ShellCheck.Analytics.runTests) where
+{-# LANGUAGE CPP #-}
+{-# LANGUAGE FlexibleContexts #-}
+#ifndef DEBIAN_NO_GHCI
+{-# LANGUAGE TemplateHaskell #-}
+#endif
+module ShellCheck.Analytics (runAnalytics
+#ifndef DEBIAN_NO_GHCI
+ , ShellCheck.Analytics.runTests
+#endif
+ ) where
import ShellCheck.AST
import ShellCheck.ASTLib
@@ -42,7 +50,9 @@
import Data.Ord
import Debug.Trace
import qualified Data.Map.Strict as Map
+#ifndef DEBIAN_NO_GHCI
import Test.QuickCheck.All (forAllProperties)
+#endif
import Test.QuickCheck.Test (quickCheckWithResult, stdArgs, maxSuccess)
-- Checks that are run on the AST root
@@ -2891,5 +2901,7 @@
then [x]
else concatMap recursiveSequences list
+#ifndef DEBIAN_NO_GHCI
return []
runTests = $( [| $(forAllProperties) (quickCheckWithResult (stdArgs { maxSuccess = 1 }) ) |])
+#endif
--- a/ShellCheck/Parser.hs
+++ b/ShellCheck/Parser.hs
@@ -17,8 +17,15 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-}
-{-# LANGUAGE NoMonomorphismRestriction, TemplateHaskell, FlexibleContexts #-}
-module ShellCheck.Parser (parseScript, runTests) where
+{-# LANGUAGE CPP, NoMonomorphismRestriction, FlexibleContexts #-}
+#ifndef DEBIAN_NO_GHCI
+{-# LANGUAGE TemplateHaskell #-}
+#endif
+module ShellCheck.Parser (parseScript
+#ifndef DEBIAN_NO_GHCI
+ , runTests
+#endif
+ ) where
import ShellCheck.AST
import ShellCheck.ASTLib
@@ -45,7 +52,9 @@
import qualified Control.Monad.State as Ms
import qualified Data.Map as Map
+#ifndef DEBIAN_NO_GHCI
import Test.QuickCheck.All (quickCheckAll)
+#endif
type SCBase m = Mr.ReaderT (Environment m) (Ms.StateT SystemState m)
type SCParser m v = ParsecT String UserState (SCBase m) v
@@ -2987,6 +2996,8 @@
}
+#ifndef DEBIAN_NO_GHCI
return []
runTests = $quickCheckAll
+#endif
--- a/ShellCheck/AnalyzerLib.hs
+++ b/ShellCheck/AnalyzerLib.hs
@@ -17,7 +17,10 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-}
+{-# LANGUAGE CPP #-}
+#ifndef DEBIAN_NO_GHCI
{-# LANGUAGE TemplateHaskell #-}
+#endif
{-# LANGUAGE FlexibleContexts #-}
module ShellCheck.AnalyzerLib where
import ShellCheck.AST
--- a/ShellCheck/Checker.hs
+++ b/ShellCheck/Checker.hs
@@ -17,8 +17,15 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-}
+{-# LANGUAGE CPP #-}
+#ifndef DEBIAN_NO_GHCI
{-# LANGUAGE TemplateHaskell #-}
-module ShellCheck.Checker (checkScript, ShellCheck.Checker.runTests) where
+#endif
+module ShellCheck.Checker (checkScript
+#ifndef DEBIAN_NO_GHCI
+ , ShellCheck.Checker.runTests
+#endif
+ ) where
import ShellCheck.Interface
import ShellCheck.Parser
@@ -35,7 +42,9 @@
import Prelude hiding (readFile)
import Control.Monad
+#ifndef DEBIAN_NO_GHCI
import Test.QuickCheck.All
+#endif
tokenToPosition map (TokenComment id c) = fromMaybe fail $ do
position <- Map.lookup id map
@@ -194,5 +203,7 @@
prop_filewideAnnotation8 = null $
check "# Disable $? warning\n#shellcheck disable=SC2181\n# Disable quoting warning\n#shellcheck disable=2086\ntrue\n[ $? == 0 ] && echo $1"
+#ifndef DEBIAN_NO_GHCI
return []
runTests = $quickCheckAll
+#endif
--- a/ShellCheck/Checks/Commands.hs
+++ b/ShellCheck/Checks/Commands.hs
@@ -17,7 +17,10 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-}
+{-# LANGUAGE CPP #-}
+#ifndef DEBIAN_NO_GHCI
{-# LANGUAGE TemplateHaskell #-}
+#endif
{-# LANGUAGE FlexibleContexts #-}
-- This module contains checks that examine specific commands by name.
@@ -850,5 +853,7 @@
f t = whenShell [Bash,Ksh] $ do
style (getId t) 2219 $ "Instead of 'let expr', prefer (( expr )) ."
+#ifndef DEBIAN_NO_GHCI
return []
runTests = $( [| $(forAllProperties) (quickCheckWithResult (stdArgs { maxSuccess = 1 }) ) |])
+#endif
p/shellcheck/debian/patches/series
deleted
100644 → 0
View file @
f8a93a91
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment