Source: ircd-irc2
Severity: normal
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: username hostname
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

The configuration file /etc/ircd/ircd.m4 embeds the username and
hostname:

  
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/ircd-irc2.html

  define(HOSTNAME,ionos1-amd64)
  define(HOSTNAME,i-capture-the-hostname)

  define(USER,pbuilder1)
  define(USER,pbuilder2)


The attached patch fixes this by setting HOSTNAME to "HOSTNAME" And USER
to "USERNAME".


Thanks for maintaining ircd-irc2!


live well,
  vagrant
From 3aa4b00c030d4cf76fdf2cd0f1a3695fd17cba6e Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Thu, 17 Dec 2020 04:54:22 +0000
Subject: [PATCH 1/3] Use dummy values for HOSTNAME and USERNAME.

---
 ircd/buildm4 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ircd/buildm4 b/ircd/buildm4
index 9ef0554..d8cb857 100755
--- a/ircd/buildm4
+++ b/ircd/buildm4
@@ -34,9 +34,10 @@ if [ -n "$DEBUG" ] ; then
 else
 	echo "undefine(DEBUGMODE)" >>$M4
 fi
-HOST="`hostname | sed -e 's/\([a-zA-Z0-9\-]*\).*/\1/'`"
+HOST="HOSTNAME"
 echo "define(HOSTNAME,$HOST)" >> $M4
 
+USER="USERNAME"
 echo "define(USER,$USER)" >>$M4
 
 PORT=`egrep '^#define[ 	]*PORT[ 	]*[0-9]*' ../$INCLUDE/config.h | \
-- 
2.20.1

Attachment: signature.asc
Description: PGP signature

Reply via email to