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

2022-05-31 Thread Jonas Smedegaard
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

signature.asc
Description: signature


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

2022-05-30 Thread Aurelien Jarno
Source: haskell-hslua-module-text
Severity: serious
Version: 0.2.1-2.1

On 2022-05-30 15:34, Debian FTP Masters wrote:
> libghc-hslua-module-text-dev_0.2.1-2.1_mips64el.deb: has 1 file(s) with a 
> timestamp too far in the past:
>   usr/share/doc/libghc-hslua-module-text-dev/changelog.gz (Thu Jan  1 
> 00:00:00 1970)
> 
> 
> 
> ===
> 
> Please feel free to respond to this email if you don't understand why
> your files were rejected, or if you upload new files which address our
> concerns.
> 
> 
>