[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#972298: okteta: FTBFS with DEB_BUILD_OPTIONS=reproducible=+fixfilepath



Package: okteta
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: fixfilepath ftbfs
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

When the reproducible=+fixfilepath feature is enabled (either through
DEB_BUILD_OPTIONS, or using a dpkg that enables this by default),
okteta fails to build from source:

  http://qa-logs.debian.net/2020/09/26.fixfilepath/okteta_0.26.4-1_unstable_fixfilepath.log

While the "fixfilepath" feature is not currently enabled by
dpkg-buildflags by default, it may become the default at some point in
the future, and can by triggered manually by setting
DEB_BUILD_OPTIONS=reproducible=+fixfilepath in the build environment. It
is also used in the tests.reproducible-builds.org infrastructure when
testing unstable and experimental.

More information about this issue is available at:

  https://tests.reproducible-builds.org/debian/issues/unstable/ftbfs_due_to_f-file-prefix-map_issue.html

I have not identified the exact cause of this issue, but a common
trigger is test suites expecting __FILE__ to resolve to an absolute
path.

The attached patch works around this issue by disabling the fixfilepath
feature in debian/rules using DEB_BUILD_MAINT_OPTIONS=-fixfilepath.

Thanks for maintaining okteta!

live well,
  vagrant

From f31c64a3960214e4b35f0d7b08bdcb53d81de2b3 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Thu, 15 Oct 2020 23:35:14 +0000
Subject: [PATCH] debian/rules: Disable fixfilepath feature, as it triggers
 build failures when enabled.

https://tests.reproducible-builds.org/debian/issues/unstable/ftbfs_due_to_f-file-prefix-map_issue.html
---
 debian/rules | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/debian/rules b/debian/rules
index c948de6..a5d0afc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,6 +2,9 @@
 
 TESTS_HOME=$(CURDIR)/debian/tests.home
 
+# Disable fixfilepath, as it causes build failures.
+export DEB_BUILD_MAINT_OPTIONS = reproducible=-fixfilepath
+
 l10npkgs_firstversion_ok := 4:16.04.3-7~
 include /usr/share/pkg-kde-tools/qt-kde-team/2/l10n-packages.mk
 
-- 
2.28.0

Attachment: signature.asc
Description: PGP signature


Reply to: