#872807 dh-make-golang: Please find dependencies based on Homepage, too

Package:
dh-make-golang
Source:
dh-make-golang
Description:
tool that converts Go packages into Debian package source
Submitter:
Balint Reczey
Date:
2024-03-21 16:09:03 UTC
Severity:
wishlist
#872807#5
Date:
2017-08-21 13:08:25 UTC
From:
To:
Dead Maintainer,

When looking for packaged build-dependencies the vendor's path
(github.com/onsi/ginkgo) is converted using the default go library
naming scheme
(to golang-github-onsi-ginkgo-dev) which package may not exist in
Debian but may exist under a different name
(golang-github-ginkgo-dev).

In case the build-dependency does not exist in Debian as a package following the
standard go naming scheme dh-make-golang could look for it under a
different name using the Homepage field of the packages:

$ grep-dctrl -FHomepage github.com/onsi/ginkgo -sPackage \
 /var/lib/apt/lists/*Packages | sort | uniq
Package: golang-ginkgo-dev

Cheers,
Balint

#872807#10
Date:
2017-08-21 13:17:39 UTC
From:
To:
Why not use the import path I so lovingly put in the generated control file
for times like these?

#872807#15
Date:
2017-08-21 15:49:45 UTC
From:
To:
Hi Paul,
$ grep-dctrl -X -FGo-Import-Path github.com/onsi/ginkgo -sBinary
/var/lib/apt/lists/*Sources | sort | uniq
Binary: golang-ginkgo-dev

I just found Homepage first as a good candidate for guessing.

Cheers,
Balint

#872807#20
Date:
2017-08-21 21:11:54 UTC
From:
To:
That's still missing from heaps of packages, isn't it? I know someone who
likes writing scripts to fix lots of golang packages at once...

Cheers,
mwh

#872807#25
Date:
2017-08-21 21:33:29 UTC
From:
To:
On 21 August 2017 at 14:11, Michael Hudson-Doyle <michael.hudson@canonical.com> wrote:

Also, some packages include multiple import paths, usually via a
symlink.  These are often the result of a rename, or of two imports
for the same project (ala, "github.com/foo/bar" and
"gopkg.in/foo/bar.vN"), so it might be worth considering making that a
list instead of simply a single package path.


♥,
- Tianon
  4096R / B42F 6819 007F 00F8 8E36  4FD4 036A 9C25 BF35 7DD4

#872807#30
Date:
2024-03-21 15:40:00 UTC
From:
To:
We believe that the bug you reported was fixed in a previous upload of
dh-make-golang back in October 2017.  It was fixed in the upstream code
by Shengjing Zhu and merged by Michael Stapelberg in August 2017,
and uploaded to Debian by Dr. Tobias Quathamer.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to @bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Anthony Fok <foka@debian.org>
Format: 1.8
Date: Sat, 07 Oct 2017 16:34:52 +0200
Source: dh-make-golang
Binary: dh-make-golang
Architecture: source
Version: 0.0~git20170925.0.fd02c4a-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Go Packaging Team <pkg-go-maintainers@lists.alioth.debian.org>
Changed-By: Dr. Tobias Quathamer <toddy@debian.org>
Description:
 dh-make-golang - tool that converts Go packages into Debian package source
Changes:
 dh-make-golang (0.0~git20170925.0.fd02c4a-1) unstable; urgency=medium
 .
   * Team upload.
   * New upstream version 0.0~git20170925.0.fd02c4a
   * Use Priority: optional
   * Update d/copyright
   * Update Standards-Version to 4.1.1
Checksums-Sha1:
 591c45d44d9888bcdd399ec57fc72f5d083025de 2374 dh-make-golang_0.0~git20170925.0.fd02c4a-1.dsc
 69f86872bc9d01fabe0b54cb6af23d82f6183eba 13596 dh-make-golang_0.0~git20170925.0.fd02c4a.orig.tar.xz
 ecb29e11bdf590327dc8a273d429dadb5ffcd9aa 3112 dh-make-golang_0.0~git20170925.0.fd02c4a-1.debian.tar.xz
 fca742b61747c98826e4904be9e4733abf1c754d 7078 dh-make-golang_0.0~git20170925.0.fd02c4a-1_amd64.buildinfo
Checksums-Sha256:
 2576a5ecf3539bea5e1cb6ced9e42d5e25f23db16ab1d482d7ead35854a17e33 2374 dh-make-golang_0.0~git20170925.0.fd02c4a-1.dsc
 0dc5f9aa948f898406e161b37d5fc26ffa8e5b93d71aedd639ae8ab16ef43da9 13596 dh-make-golang_0.0~git20170925.0.fd02c4a.orig.tar.xz
 f7d0b5a8d180c5d2b75b35d4a2de9b9c4aefdcc213738d79615f680fe0542737 3112 dh-make-golang_0.0~git20170925.0.fd02c4a-1.debian.tar.xz
 29c9cc66addd959714003b50d9b9beddc66f87abc6f4690af5f46ee62837e20f 7078 dh-make-golang_0.0~git20170925.0.fd02c4a-1_amd64.buildinfo
Files:
 f4ff7c85579635d275ba421781e02308 2374 devel optional dh-make-golang_0.0~git20170925.0.fd02c4a-1.dsc
 d2325c7bc2cffd4cc56ffa50f6c4d07e 13596 devel optional dh-make-golang_0.0~git20170925.0.fd02c4a.orig.tar.xz
 204051ba61ed1b51318f2a760604a921 3112 devel optional dh-make-golang_0.0~git20170925.0.fd02c4a-1.debian.tar.xz
 262bf1031dc77a2fc211f9ad928a4d66 7078 devel optional dh-make-golang_0.0~git20170925.0.fd02c4a-1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEE0cuPObxd7STF0seMEwLx8Dbr6xkFAlnY5rYACgkQEwLx8Dbr
6xnu2Q//WxoLC2DVEqtNUi9j/iO7ONKEqGHovp0H2YBRTt+qbLnPVeeXntMxylNb
jbwRKVwribiqJzbCth6LF7YO86rhyEnym+YFkNK/5Exc6B9nQ29pnWMQ+En/wiU1
pbplP8tJv/PsGixkZRYHx0ybDOU2Sq045bMtCSZ6g/J9NcY+PGJnPUaupFD4nceP
eeuhIrJGA8H77dpA258m/QhaeAoEQU4GcjKPaW+BfV903KshRtUjsdGLbA6N+oJS
7oiqylmOV2Nffbvr0AOkT7jW2LIDByhbbkSuZF6qJnaqQB9991Dx0RDklODtM4FU
qKV9dOcL2yQKjOhkR2DZOdfzf8YvCmQOrimq+HEstCJ1IMpz2Eum5B9sKh2aYJZI
tR3C6qbpnwqUQ8dq4poE/ME5MN8zYai6P7ELa+edSngLUBLzsvMub1o3XhbDLxgu
yhHDITiIJtGul2VAGkIOhl0N/g08OIkdb1HXtGVFoqXx/xqHlJBMsi6TUv1KiUN6
wwFkmV8wKVSH2CQbe7XsMwrCYxysqy+1g/Ni0et9UgMUBC8E/ZPe/cnWHuHHzs4O
FDDxhN7515NrTxj6IA64UqG0kuBrUyiH+a2JSSv9eYlsZnb4s945/6YNhoQ3NQHJ
wXvfbYzNP6+HeY2wyHdNinStEEp/I59TdUFs3eUJPJthkUcAH40=
=nf7o
-----END PGP SIGNATURE-----

#872807#39
Date:
2024-03-21 16:04:48 UTC
From:
To:
I am sorry, I copied the wrong bug number and inadvertently closed
this bug by mistake.
My apologies!
It has now been reopened.

Thanks,
Anthony