Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 699502 - net-dns/bind: dosym with path starting with ${ED}
Summary: net-dns/bind: dosym with path starting with ${ED}
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Christian Ruppert (idl0r)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-07 01:31 UTC by Arfrever Frehtes Taifersar Arahesis
Modified: 2020-02-24 06:57 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis 2019-11-07 01:31:13 UTC
net-dns/bind/bind-9.14.7.ebuild:        dosym "${ED}"/var/bind/pri /etc/bind/pri
net-dns/bind/bind-9.14.7.ebuild:        dosym "${ED}"/var/bind/sec /etc/bind/sec
net-dns/bind/bind-9.14.7.ebuild:        dosym "${ED}"/var/bind/dyn /etc/bind/dyn
net-dns/bind/bind-9.15.5.ebuild:        dosym "${ED}"/var/bind/pri /etc/bind/pri
net-dns/bind/bind-9.15.5.ebuild:        dosym "${ED}"/var/bind/sec /etc/bind/sec
net-dns/bind/bind-9.15.5.ebuild:        dosym "${ED}"/var/bind/dyn /etc/bind/dyn


Problems with above dosym commands:

1. Initial ${D} or ${ED} is unnecessary in first argument (target of symbolic link), and PMS-compliant package managers will issue QA notice.
   PMS (https://projects.gentoo.org/pms/7/pms.html#x1-14800013.4.1):
   """
   13.4.1 Rewriting

   Any absolute symlink whose link starts with D must be rewritten with
   the leading D removed. The package manager should issue a notice when doing this. 
   """

2. Target of symbolic link could be made relative, instead of absolute.


Solution:

dosym ../../var/bind/pri /etc/bind/pri
dosym ../../var/bind/sec /etc/bind/sec
dosym ../../var/bind/dyn /etc/bind/dyn
Comment 1 Arfrever Frehtes Taifersar Arahesis 2020-02-24 06:57:17 UTC
Fixes were committed in:

  net-dns/bind-9.14.8:
    https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de5a7ba5ced877b56bbea54517b16959eae56844

  net-dns/bind-9.15.6:
    https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c05c499dea8879b68f96aba3f20e21499869dee6