1 patch for repository http://darcs.net:
patch f1268fcebd00794d78c1bb4ea252d067b766bfe2
Author: Vekhir <vekhir@yahoo.com>
Date: Thu Mar 7 14:01:21 CET 2024
* Allow use of shared libraries in tests
During testing, several Haskell programs are compiled. To build them
correctly
on systems with shared libraries, they must link to them dynamically.
A new manual flag 'shared-libraries' adds '-dynamic' to every
invocation of
ghc if set, and otherwise does nothing.
New patches:
[Allow use of shared libraries in tests
Vekhir <vekhir@yahoo.com>**20240307130121
Ignore-this:
3860d1cf6fa5bf6d3c193969e7fb498d5cae7e87bc6bb0ed7eb42951a7acf8e90cde381165347c0e
During testing, several Haskell programs are compiled. To build them
correctly
on systems with shared libraries, they must link to them dynamically.
A new manual flag 'shared-libraries' adds '-dynamic' to every
invocation of
ghc if set, and otherwise does nothing.
] hunk ./darcs.cabal 116
+flag shared-libraries
+ description: Dynamically link to libraries during testing. Required
when dependencies are built as shared objects.
+ default: False
+ manual: True
+
hunk ./darcs.cabal 570
+ if flag(shared-libraries)
+ cpp-options: -DSHARED_LIBRARIES
+
hunk ./harness/Darcs/Test/Shell.hs 127
+#ifdef SHARED_LIBRARIES
+ , ("DYNAMIC" , EnvString "-dynamic")
+#else
+ , ("DYNAMIC" , EnvString "")
+#endif
hunk ./tests/issue1465_ortryrunning.sh 36
-ghc -o editor-good --make editor-good.hs
+ghc $DYNAMIC -o editor-good --make editor-good.hs
hunk ./tests/issue1465_ortryrunning.sh 42
-ghc -o editor-bad --make editor-bad.hs
+ghc $DYNAMIC -o editor-bad --make editor-bad.hs
hunk ./tests/issue1465_ortryrunning.sh 48
-ghc -o editor-gave-up --make editor-gave-up.hs
+ghc $DYNAMIC -o editor-gave-up --make editor-gave-up.hs
hunk ./tests/issue1465_ortryrunning.sh 55
-ghc -o vi --make vi.hs
+ghc $DYNAMIC -o vi --make vi.hs
hunk ./tests/issue189-external-merge-move.sh 46
-ghc --make external_merge.hs
+ghc $DYNAMIC --make external_merge.hs
hunk ./tests/issue2204-send-mail.sh 36
-ghc -o dummy-sendmail --make dummy-sendmail.hs
+ghc $DYNAMIC -o dummy-sendmail --make dummy-sendmail.hs
hunk ./tests/latin9-input.sh 135
-ghc --make -o editor editor.hs
+ghc $DYNAMIC --make -o editor editor.hs
hunk ./tests/network/external.sh 14
-ghc --make $fakessh.hs
+ghc $DYNAMIC --make $fakessh.hs
hunk ./tests/test-untestable.sh 41
-ghc --make -o runtest runtest.hs
+ghc $DYNAMIC --make -o runtest runtest.hs
hunk ./tests/trackdown-bisect.sh 16
-ghc -o trackdown-bisect-helper trackdown-bisect-helper.hs
+ghc $DYNAMIC -o trackdown-bisect-helper trackdown-bisect-helper.hs
Context:
[TAG 2.18.1
Ganesh Sittampalam <ganesh@earth.li>**20240225173219
Ignore-this:
dc3a92eafcab9d4fa9f53b1811d4c99d330615a8c202bff1b77f44d551d21684eee81e96c69be62b
]
Patch bundle hash:
5d25713c9afaa42e558fc3ccc644001b9d6b6315
|