This is an automated email from the ASF dual-hosted git repository.
nickva pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb-pkg.git
The following commit(s) were added to refs/heads/main by this push:
new b72aa98 Remove determinstic flags for deb packages
b72aa98 is described below
commit b72aa98d80807d0b1607f14c50399f0f0487fdc2
Author: Nick Vatamaniuc <[email protected]>
AuthorDate: Sat May 16 10:49:34 2026 -0400
Remove determinstic flags for deb packages
Due to a a bug in rebar2 the `-fdebug-prefix-map` which has a
~resolute suffix would be passed to Erlang's io:format/2 and ~r would
throw an error as an invalid control character.
---
debian/rules | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/debian/rules b/debian/rules
index 7775818..8aece3a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,6 +11,16 @@
# License for the specific language governing permissions and limitations under
# the License.
+
+# Drop -fdebug-prefix-map. Its value embeds the dpkg version as
+# 3.5.2-$sha~resolute. However that then gets passed to rebar's
+# io:format() as is and ~r is interpreted as an invalid format control
+# sequence
+#
+export DEB_CFLAGS_STRIP = $(shell dpkg-buildflags --get CFLAGS | tr ' '
'\n' | grep '^-fdebug-prefix-map=')
+export DEB_CXXFLAGS_STRIP = $(shell dpkg-buildflags --get CXXFLAGS | tr ' '
'\n' | grep '^-fdebug-prefix-map=')
+
+
include debian/sm_ver.mk
%: