Bug 24029

Summary: yarn - A fast, reliable, and secure dependency management for nodejs/npm
Product: Mageia Reporter: Kristoffer Grundström <lovaren>
Component: New RPM package requestAssignee: All Packagers <pkg-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: Normal CC: chb0, lovaren, marja11
Version: CauldronKeywords: PATCH
Target Milestone: ---   
Hardware: All   
OS: Linux   
URL: https://yarnpkg.com
Whiteboard:
Source RPM: yarn CVE:
Status comment:
Attachments: Proposal spec file
New proposal spec file
New working proposal spec file
New proposal spec file for the latest version

Description Kristoffer Grundström 2018-12-18 01:48:38 CET
Description of problem: I was just about to compile and build wire-desktop from source and the guide said that I need yarn to be installed which Mageia normally don't get installed when you install nodejs and/or npm. I therefor took the liberty of packaging yarn for Cauldron. yarn could also be easily installed by executing npm install --global yarn as root, but this package would be installed along with nodejs and/or npm for future reference. 

Version-Release number of selected component (if applicable): 1.12.3
Comment 1 Kristoffer Grundström 2018-12-18 01:50:01 CET
Created attachment 10579 [details]
Proposal spec file

CC: (none) => hamnisdude

Comment 2 Marja Van Waes 2018-12-22 12:23:27 CET
Assigning this package request to all packagers collectively. On a voluntary basis, one of them might, if there are no license or other legal issues, want to integrate it to the distribution and maintain it for bug and security fixes.

Keywords: (none) => PATCH
Summary: Yarn - A fast, reliable, and secure dependency management for nodejs/npm => yarn - A fast, reliable, and secure dependency management for nodejs/npm
Severity: normal => enhancement
CC: (none) => marja11
URL: (none) => https://yarnpkg.com
Assignee: bugsquad => pkg-bugs

Comment 3 Kristoffer Grundström 2019-07-18 00:06:32 CEST
Created attachment 11197 [details]
New proposal spec file

Attachment 10579 is obsolete: 0 => 1

Comment 4 Lewis Smith 2020-04-06 10:50:49 CEST
See also bug 26441.
Comment 5 Kristoffer Grundström 2020-09-13 19:31:38 CEST
Created attachment 11883 [details]
New working proposal spec file

I have now managed to build yarn from this spec file.

Anyone able to push it to Cauldron before Mageia 8 is released?

Attachment 11197 is obsolete: 0 => 1

Comment 6 Kristoffer Grundström 2020-09-13 19:33:40 CEST
However, when building with rpmbuild -ba I got this:

pcregrep: line 53397 of file $USER/rpmbuild/BUILDROOT/yarn-1.22.5-1.mga7.x86_64/usr/share/yarn/lib/cli.js is too long for the internal buffer
pcregrep: check the --buffer-size option
pcregrep: line 53397 of file $USER/rpmbuild/BUILDROOT/yarn-1.22.5-1.mga7.x86_64/usr/share/yarn/lib/cli.js is too long for the internal buffer
pcregrep: check the --buffer-size option
Comment 7 Kristoffer Grundström 2021-05-08 01:48:57 CEST
Created attachment 12706 [details]
New proposal spec file for the latest version

I just built the latest official version of Yarn and here's my spec file.
If you need the src.rpm I'd be happy to add it to.

Attachment 11883 is obsolete: 0 => 1

Comment 8 Kristoffer Grundström 2022-02-25 16:03:07 CET
I don't know if it's an issue specific for Mageia, but yarn update fails due to not having the proper permissions.
A patch to fix this would be nice as well.
Comment 9 christian barranco 2023-08-16 11:12:35 CEST
Hi. I just discovered this report.
I have imported a yarnpkg package into MGA9, some time ago.

Status: NEW => RESOLVED
CC: (none) => chb0
Resolution: (none) => FIXED