Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 704134 - sys-apps/yarn should install a /usr/bin/yarnpkg symlink
Summary: sys-apps/yarn should install a /usr/bin/yarnpkg symlink
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Rodrigo Saboya
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-29 00:13 UTC by Max Magorsch (RETIRED)
Modified: 2019-12-30 00:24 UTC (History)
3 users (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 Max Magorsch (RETIRED) Gentoo Infrastructure gentoo-dev 2019-12-29 00:13:09 UTC
All yarn binaries are installed into /usr/$(get_libdir)/node_modules/yarn/bin However, only a symlink for yarn is created. A symlink for yarnpkg is missing. This applies to all ebuild versions and is important, as, for example, rails applications use yarnpkg instaed of yarn by default. 
  

Furthermore, it can be easily fixed by adding: 
dosym "../$(get_libdir)/node_modules/yarn/bin/yarnpkg" "/usr/bin/yarnpkg"


Reproducible: Always
Comment 2 Larry the Git Cow gentoo-dev 2019-12-30 00:19:18 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d337711b50715ac7a12eb922b6ce68468853bf1

commit 6d337711b50715ac7a12eb922b6ce68468853bf1
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2019-12-30 00:12:12 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2019-12-30 00:19:07 +0000

    sys-apps/yarn: Bump to version 1.21.1
    
    Includes yarnpkg symlink for Debian compatibility.
    
    Reported-by: Max Magorsch <max@magorsch.de>
    Closes: https://bugs.gentoo.org/704134
    Package-Manager: Portage-2.3.84, Repoman-2.3.20
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 sys-apps/yarn/Manifest           |  1 +
 sys-apps/yarn/yarn-1.21.1.ebuild | 40 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 41 insertions(+)
Comment 3 Zac Medico gentoo-dev 2019-12-30 00:22:27 UTC
Thanks!
Comment 4 Max Magorsch (RETIRED) Gentoo Infrastructure gentoo-dev 2019-12-30 00:24:21 UTC
Thank you for the quick fix!