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

Re: golang-github-hhatto-gorst: autopkgtest failure



Control: tags -1 patch

On Thu, Jul 13, 2023 at 03:10:40PM +0530, Pirate Praveen wrote:
> On Fri, 10 Feb 2023 00:07:51 +0200 Adrian Bunk <bunk@debian.org> wrote:
> > The Ubuntu diff contains a patch that looks like a workaround (untested).
> 
> This patch says data directory is reserved for golang autopkgtest in Ubuntu.
> Is this the same on debian too? If yes, that looks like a bad idea to me.

AFAIK, it uses the standard AUTOPKGTEST_TMP directory which is the
standard across debian. I got the same impression on skimming through
dh-golang code.

As far as fix for your package is concerned, it is as simple as avoiding
to remove entire data directory (which is just 28K in size). I'm able to get
autopkgtests passing locally. Patch pasted
inline.

From 7aa6fc7ccf9bb7b938d290bc1e2eab2b324fb7ff Mon Sep 17 00:00:00 2001
From: Nilesh Patra <nilesh@debian.org>
Date: Thu, 13 Jul 2023 21:22:59 +0530
Subject: [PATCH] Avoid removing entire data dir during dh_install step

---
 debian/rules | 1 -
 1 file changed, 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index c858f56..28c01cd 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,5 +7,4 @@ export DH_GOLANG_INSTALL_EXTRA := data

 override_dh_install:
 	dh_install -O--builddirectory=_build -O--buildsystem=golang -O--with=golang
-	rm -rf debian/golang-github-hhatto-gorst-dev/usr/share/gocode/src/github.com/hhatto/gorst/data
 	rm -rf debian/golang-github-hhatto-gorst-dev/usr/share/gocode/src/github.com/hhatto/gorst/*.html
--
2.39.2

Attachment: signature.asc
Description: PGP signature


Reply to: