[Reproducible-builds] Fwd: [patch] Make.rules: sort capabilities with LANG=C

Holger Levsen holger at layer-acht.org
Tue Aug 25 17:24:51 UTC 2015


Hi,

FYI :)


cheers,
	Holger

----------  Forwarded Message  ----------

Subject: [patch] Make.rules: sort capabilities with LANG=C
Date: Dienstag, 25. August 2015
From: Christian Boltz <apparmor at cboltz.de>
To: apparmor at lists.ubuntu.com

Hello,

this patch changes Make.rules to sort capabilities using LANG=C.

This is needed to make building apparmor.vim reproducable - otherwise
the sorting depends on the locale.

Found by the Debian reproducible project,
https://reproducible.debian.net/rb-pkg/unstable/amd64/apparmor.html


[ make-rules-sort-capabilities.diff ]

=== modified file 'common/Make.rules'
--- common/Make.rules   2015-01-30 21:15:53 +0000
+++ common/Make.rules   2015-08-25 17:00:00 +0000
@@ -82,7 +82,7 @@
 # =====================
 
 # emits defined capabilities in a simple list, e.g. "CAP_NAME CAP_NAME2"
-CAPABILITIES=$(shell echo "\#include <linux/capability.h>" | cpp -dM | 
LC_ALL=C sed -n -e '/CAP_EMPTY_SET/d' -e 's/^\#define[ \t]\+CAP_\([A-
Z0-9_]\+\)[ \t]\+\([0-9xa-f]\+\)\(.*\)$$/CAP_\1/p' | sort)
+CAPABILITIES=$(shell echo "\#include <linux/capability.h>" | cpp -dM | 
LC_ALL=C sed -n -e '/CAP_EMPTY_SET/d' -e 's/^\#define[ \t]\+CAP_\([A-
Z0-9_]\+\)[ \t]\+\([0-9xa-f]\+\)\(.*\)$$/CAP_\1/p' | LANG=C sort)
 
 .PHONY: list_capabilities
 list_capabilities: /usr/include/linux/capability.h


Regards,

Christian Boltz
-- 
> Ansonsten: Ich sage nur "Diwasserstoffmonoxid".
Ja, ein äußerst schädliches Zeugs, vor allem wenn es in
guten Malt gerät.         [A. Schreiber und R. Döblitz]


-------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20150825/dff087fb/attachment.sig>


More information about the Reproducible-builds mailing list