Subject: [PATCH] Make chromium.png icon reproducible

From: Jochen Sprickerhof <[email-masked]>
Date: Sun, 19 Apr 2026 20:25:48 +0200

Currently there are multiple sources for the chromium.png. From the
build log:

./debian/scripts/icons
copied: chrome/app/theme/default_100_percent/chromium/product_logo_32.png to debian/chromium/usr/share/icons/hicolor/32x32/apps/chromium.png
copied: chrome/app/theme/default_100_percent/chromium/product_logo_16.png to debian/chromium/usr/share/icons/hicolor/16x16/apps/chromium.png
copied: chrome/app/theme/default_100_percent/chromium/linux/product_logo_32.png to debian/chromium/usr/share/icons/hicolor/32x32/apps/chromium.png
copied: chrome/app/theme/default_100_percent/chromium/linux/product_logo_16.png to debian/chromium/usr/share/icons/hicolor/16x16/apps/chromium.png
copied: chrome/app/theme/chromium/product_logo_64.png to debian/chromium/usr/share/icons/hicolor/64x64/apps/chromium.png
copied: chrome/app/theme/chromium/product_logo_48.png to debian/chromium/usr/share/icons/hicolor/48x48/apps/chromium.png
copied: chrome/app/theme/chromium/product_logo_256.png to debian/chromium/usr/share/icons/hicolor/256x256/apps/chromium.png
copied: chrome/app/theme/chromium/product_logo_24.png to debian/chromium/usr/share/icons/hicolor/24x24/apps/chromium.png
copied: chrome/app/theme/chromium/product_logo_16.png to debian/chromium/usr/share/icons/hicolor/16x16/apps/chromium.png
copied: chrome/app/theme/chromium/product_logo_128.png to debian/chromium/usr/share/icons/hicolor/128x128/apps/chromium.png
copied: chrome/app/theme/chromium/linux/product_logo_64.png to debian/chromium/usr/share/icons/hicolor/64x64/apps/chromium.png
copied: chrome/app/theme/chromium/linux/product_logo_48.png to debian/chromium/usr/share/icons/hicolor/48x48/apps/chromium.png
copied: chrome/app/theme/chromium/linux/product_logo_256.png to debian/chromium/usr/share/icons/hicolor/256x256/apps/chromium.png
copied: chrome/app/theme/chromium/linux/product_logo_24.png to debian/chromium/usr/share/icons/hicolor/24x24/apps/chromium.png
copied: chrome/app/theme/chromium/linux/product_logo_128.png to debian/chromium/usr/share/icons/hicolor/128x128/apps/chromium.png

The output of find is not sorted so this results in randomness in the
picked logo and makes the package not reproducible.

Adding a sort to always get the same icon.
---
 debian/scripts/icons | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/scripts/icons b/debian/scripts/icons
index b0d3ba43..32b22427 100755
--- a/debian/scripts/icons
+++ b/debian/scripts/icons
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-for file in $(find chrome/app/theme -name product_logo_[0-9]*.png -a ! -name *mono* | grep -v 200); do
+for file in $(find chrome/app/theme -name product_logo_[0-9]*.png -a ! -name *mono* | grep -v 200 | sort); do
      size=$(basename $file | cut -d_ -f3 | sed s/\.png//)
      dest=debian/chromium/usr/share/icons/hicolor/$size\x$size/apps
      mkdir -p $dest
-- 
2.53.0