Bug#1012148: haskell-hslua-module-text_0.2.1-2.1_mips64el-buildd.changes REJECTED

Jonas Smedegaard dr at jones.dk
Tue May 31 08:42:47 BST 2022


An elegant way to fix this bug is to override CDBS' simple copying
raw changelog file, but instead generate plaintext and html formats from
markdown source, like this:

--- haskell-hslua-module-text-0.2.1.old/debian/control
+++ haskell-hslua-module-text-0.2.1/debian/control
@@ -7,6 +7,7 @@
 Build-Depends: debhelper (>= 10),
  haskell-devscripts (>= 0.8),
  cdbs,
+ cmark-gfm,
  ghc (>= 8.4.3),
  ghc-prof,
  libghc-hslua-dev (>= 1.1),
diff -ru haskell-hslua-module-text-0.2.1./debian/rules haskell-hslua-module-text-0.2.1/debian/rules
--- haskell-hslua-module-text-0.2.1.old/debian/rules
+++ haskell-hslua-module-text-0.2.1/debian/rules
@@ -4,7 +4,19 @@
 DEB_SETUP_BIN_NAME = debian/hlibrary.setup
 DEB_CABAL_PACKAGE = hslua-module-text
 DEB_DEFAULT_COMPILER = ghc
+DEB_INSTALL_CHANGELOGS_ALL = ChangeLog.html ChangeLog.txt
 LC_ALL=C.UTF-8

 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/hlibrary.mk
+
+%.html: %.md
+	cmark-gfm $< > $@
+
+%.txt: %.md
+	cmark-gfm --to plaintext $< > $@
+
+common-build-arch common-build-indep:: $(DEB_INSTALL_CHANGELOGS_ALL)
+
+clean::
+	rm -f $(DEB_INSTALL_CHANGELOGS_ALL)


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-haskell-maintainers/attachments/20220531/5ae314a9/attachment.sig>


More information about the Pkg-haskell-maintainers mailing list