[Pkg-electronics-devel] Bug#916475: Bug#916475: ghdl: various suggestions to simplify the packaging

Nicolas Boulenguez nicolas at debian.org
Wed Oct 11 21:58:22 BST 2023


Source: ghdl
Followup-For: Bug #916475

Hello.

> honestly the whole link script looks like a hack to me, I prefer the
> way it was before.

I agree that an executable debian/libghdl-dev.links is a last resort,
but a reader discovering the package does not need to

* guess that usr/lib/*/libghdl.so is a symbolic link from its name
  (this is only evident if you have already packaged a library)

* search where (debian/tmp/)?usr/lib/*/libghdl.so comes from (not
  evident at all, even assuming familiarity with the dh sequence).

The debian/libghdl-dev.links I am suggesting is complex, but handles a
single task (ln -s) and does not require the reader to remember each
detail of the far more complex debian/rules to understand what
happens.

Of course, the decision is yours eventually, and I may rebase the
other commits if you choose to keep the sequence as it is.

If so, I suggest to replace
     usr/lib/*/libghdl.so
in debian/libghdl-dev.install with
     usr/lib/${DEB_HOST_MULTIARCH}/libghdl.so
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Install-the-usr-bin-ghdl-wrapper-with-dh_install-dir.patch
Type: text/x-diff
Size: 1600 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-electronics-devel/attachments/20231011/0697474b/attachment-0014.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Install-sources-into-usr-lib-ghdl-with-dh_install-di.patch
Type: text/x-diff
Size: 3865 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-electronics-devel/attachments/20231011/0697474b/attachment-0015.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Install-development-symbolic-link-to-shared-library-.patch
Type: text/x-diff
Size: 3026 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-electronics-devel/attachments/20231011/0697474b/attachment-0016.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-Install-usr-lib-ghdl-backend-vhdl-src-with-dh_link-d.patch
Type: text/x-diff
Size: 4155 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-electronics-devel/attachments/20231011/0697474b/attachment-0017.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-Install-shared-and-static-libraries-with-dh_install-.patch
Type: text/x-diff
Size: 4021 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-electronics-devel/attachments/20231011/0697474b/attachment-0018.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-debian-rules-replace-shell-constructs-with-Make-equi.patch
Type: text/x-diff
Size: 3131 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-electronics-devel/attachments/20231011/0697474b/attachment-0019.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-Delegate-computation-of-Built-Using-to-dh-builtusing.patch
Type: text/x-diff
Size: 2490 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-electronics-devel/attachments/20231011/0697474b/attachment-0020.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0008-Drop-obsolete-gcc-10-patch.patch
Type: text/x-diff
Size: 3342 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-electronics-devel/attachments/20231011/0697474b/attachment-0021.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0009-Store-stamp-files-in-the-current-directory.patch
Type: text/x-diff
Size: 6812 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-electronics-devel/attachments/20231011/0697474b/attachment-0022.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0010-Slightly-simplify-the-backend-selection-with-build-p.patch
Type: text/x-diff
Size: 1684 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-electronics-devel/attachments/20231011/0697474b/attachment-0023.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0011-Merge-recipes-for-llvm-and-mcode-inhibit-llvm-tests-.patch
Type: text/x-diff
Size: 5754 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-electronics-devel/attachments/20231011/0697474b/attachment-0024.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0012-Various-minor-improvements-in-the-test-driver.patch
Type: text/x-diff
Size: 1891 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-electronics-devel/attachments/20231011/0697474b/attachment-0025.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0013-Share-the-debian-rules-snippet-announcing-the-curren.patch
Type: text/x-diff
Size: 4892 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-electronics-devel/attachments/20231011/0697474b/attachment-0026.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0014-debian-control-remove-unused-shlibs-Depends-substitu.patch
Type: text/x-diff
Size: 738 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-electronics-devel/attachments/20231011/0697474b/attachment-0027.patch>


More information about the Pkg-electronics-devel mailing list