[DSE-Dev] Bug#899083: secilc: can't build it twice

Russell Coker russell at coker.com.au
Sat May 19 01:48:15 BST 2018


Source: secilc
Version: 2.7-1
Severity: normal

dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building secilc using existing ./secilc_2.7.orig.tar.gz
dpkg-source: error: cannot represent change to docs/pdf/CIL_Reference_Guide.pdf: binary file contents changed
dpkg-source: error: add docs/pdf/CIL_Reference_Guide.pdf in debian/source/include-binaries if you want to store the modified binary in the debian tarball
dpkg-source: error: unrepresentable changes to source
dpkg-buildpackage: error: dpkg-source -b secilc-2.7 subprocess returned exit status 2

I get the above when trying to build this package twice in a row.  The below
patch fixes this.

Index: secilc-2.7/Makefile
===================================================================
--- secilc-2.7.orig/Makefile
+++ secilc-2.7/Makefile
@@ -60,6 +60,7 @@ clean:
 	rm -f file_contexts
 	rm -f $(SECILC_MANPAGE)
 	rm -f $(SECIL2CONF_MANPAGE)
+	make -C docs clean
 
 relabel:
 

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.16.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_AU:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: SELinux: enabled - Mode: Enforcing - Policy name: default



More information about the SELinux-devel mailing list