From: swedebugia <swedebugia@riseup.net>
To: guix-devel@gnu.org
Subject: Packaging async and underscore (Was: Re: NPM importer)
Date: Fri, 30 Nov 2018 15:17:55 +0100 [thread overview]
Message-ID: <8684f18c-af86-4b67-9b54-fe5d755cde14@riseup.net> (raw)
In-Reply-To: <62a1a976-ed2f-a68d-0aa8-d6fb6bd46c14@riseup.net>
[-- Attachment #1: Type: text/plain, Size: 811 bytes --]
On 2018-11-22 02:02, swedebugia wrote:
> Hi
>
> On 2018-11-22 00:22, swedebugia wrote:
> snip
>
snip
> While investigating the top libraries* packages with most depends in npm
> I found the following:
>
> Lib Dep DevDep RecdevDep Dependants license
> underscore 0 12 2400+ 18000+ mit
> async 1 37 2696 26069 mit
I succeded in packaging the latest underscore. I discovered a bug in the
build system and fixed it to be able to build it. (see the diff attached)
Debian packaged a 4 year old async 0.8.0 that has 0 dep and only
uglify-js as devdep (which we already have packaged). From 0.9.2 lodash
was made a devdep.
--
Cheers
Swedebugia
[-- Attachment #2: diff node-build-system --]
[-- Type: text/plain, Size: 4007 bytes --]
modified guix/build/node-build-system.scm
@@ -1,6 +1,7 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2015 David Thompson <davet@gnu.org>
;;; Copyright © 2016 Jelle Licht <jlicht@fsfe.org>
+;;; Copyright © 2018 swedebugia <swedebugia@riseup.net>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -108,9 +109,13 @@ is an npm global install."
(#f #f))))
(mkdir-p tgt-dir)
(copy-recursively "." (string-append tgt-dir "/node_modules/" modulename))
- ;; Remove references to dependencies
- (delete-file-recursively
- (string-append tgt-dir "/node_modules/" modulename "/node_modules"))
+ ;; Remove references to bundled dependencies
+ (let ((tgt-node-modules (string-append tgt-dir
+ "/node_modules/" modulename "/node_modules")))
+ ;; Check if tgt-node-modules exist and remove them if #t
+ (when (file-is-directory? tgt-node-modules)
+ (delete-file-recursively
+ tgt-node-modules)))
(when global?
(cond
((string? bin-conf)
next prev parent reply other threads:[~2018-11-30 14:11 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-11 10:41 NPM importer swedebugia
2018-11-11 15:37 ` Julien Lepiller
2018-11-19 23:29 ` swedebugia
2018-11-20 7:50 ` Julien Lepiller
2018-11-20 19:58 ` swedebugia
2018-11-20 21:12 ` swedebugia
2018-11-20 22:35 ` Julien Lepiller
2018-11-21 15:36 ` swedebugia
2018-11-21 1:41 ` Mike Gerwitz
2018-11-21 22:01 ` Brett Gilio
2018-11-21 23:22 ` swedebugia
2018-11-22 1:02 ` swedebugia
2018-11-22 5:43 ` Brett Gilio
2018-11-22 11:27 ` import libjs-*.deb from Debian? (was Re: NPM importer) Giovanni Biscuolo
2018-11-30 3:23 ` Ricardo Wurmus
2018-11-22 8:36 ` NPM importer Julien Lepiller
2018-11-24 13:47 ` swedebugia
2018-11-23 19:50 ` swedebugia
2018-11-30 3:17 ` Ricardo Wurmus
2018-11-30 14:17 ` swedebugia [this message]
2018-11-30 16:08 ` Packaging async and underscore Julien Lepiller
2018-11-30 16:44 ` swedebugia
2018-11-24 13:42 ` NPM importer swedebugia
2018-11-30 16:13 ` Improved NPM importer with blacklist (Was: Re: NPM importer) swedebugia
2018-11-30 16:24 ` Improved NPM importer with blacklist Julien Lepiller
2018-11-30 17:20 ` swedebugia
2018-11-30 23:27 ` Improved NPM importer with blacklist (Was: Re: NPM importer) swedebugia
2018-11-11 17:10 ` NPM importer Ludovic Courtès
2018-11-21 16:37 ` Giovanni Biscuolo
2018-11-21 17:15 ` Julien Lepiller
2018-11-22 9:29 ` Giovanni Biscuolo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8684f18c-af86-4b67-9b54-fe5d755cde14@riseup.net \
--to=swedebugia@riseup.net \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).