From de8574b5b027be044fdb58d31fe07eda15436d40 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 16 Jun 2019 18:49:47 -0400 Subject: ob-gencontrol: Sort source package Binary field value This ensures determinism. --- diff --git a/src/ob-gencontrol.sh b/src/ob-gencontrol.sh index 175e275..2e14e6a 100644 --- a/src/ob-gencontrol.sh +++ b/src/ob-gencontrol.sh @@ -78,7 +78,8 @@ gen_control_src() # setup_build(). cat >"${binary}.control/control" <<-EOF Package: ${OPK_SOURCE} - Binary:$(printf ' %s' ${OPK_PACKAGES}) + Binary:$(printf '%s\n' ${OPK_PACKAGES} | LC_ALL='C' sort | \ + xargs printf ' %s') Version: ${OPK_SOURCE_VERSION} Architecture: src Platform: all -- cgit v0.9.1