unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: 宋文武 <iyzsong@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] gnu: Add nss.
Date: Sun, 11 Jan 2015 11:52:04 +0100	[thread overview]
Message-ID: <87wq4td1yj.fsf@gnu.org> (raw)
In-Reply-To: <87r3v26okn.fsf@gmail.com> ("宋文武"'s message of "Sun, 11 Jan 2015 10:25:28 +0800")

宋文武 <iyzsong@gmail.com> skribis:

> Ludovic Courtès <ludo@gnu.org> writes:
>
>> 宋文武 <iyzsong@gmail.com> skribis:
>>
>>> Mark H Weaver <mhw@netris.org> writes:
>>>
>>>> 宋文武 <iyzsong@gmail.com> writes:
>>>>
>>>>> * gnu/packages/patches/nss.patch: New file.
>>>>> * gnu-system.scm (dist_patch_DATA): Add it.
>>>>> * gnu/packages/polkit.scm (nss): New variable.
>>>>
>>>> polkit.scm seems like the wrong place for 'nss', although admittedly
>>>> it's not obvious where it should go.
>>> Maybe move it and nspr gnuzilla.scm? Since they are both from mozilla.
>>
>> Yes please, sounds better.
>>
>>> NSS contains many static libraries which I think will not mostly used
>>> by other. How about split them to a 'static-lib' (or a better name).
>>
>> Or just build it with --disable-static until someone asks for them?
> Um, I leave it untouched. (It add about 7MB to Qt5.)

You were talking about the static libraries of NSS, not the static
libraries of Qt, right?

[...]

>>> +         (alist-replace
>>> +          'install
>>> +          (lambda* (#:key outputs #:allow-other-keys)
>>> +            (let* ((out (assoc-ref outputs "out"))
>>> +                   (bin (string-append (assoc-ref outputs "bin") "/bin"))
>>> +                   (inc (string-append out "/include/nss"))
>>> +                   (lib (string-append out "/lib/nss"))
>>> +                   (obj (match (scandir "dist" (cut string-suffix? "OBJ" <>))
>>> +                          ((obj) (string-append "dist/" obj)))))
>>> +              ;; Install nss-config to $out/bin.
>>> +              (mkdir-p (string-append out "/bin"))
>>> +              (copy-file (string-append obj "/bin/nss-config")
>>> +                         (string-append out "/bin/nss-config"))
>>> +              (delete-file (string-append obj "/bin/nss-config"))
>>> +              ;; Install nss.pc to $out/lib/pkgconfig.
>>
>> So does this do the same thing that the big patch is supposed to do?
>> I’m confused.
> Actually, the patch do 'create', here do 'install'.

Oh the patch adds code to create the files, and here it installs them.

Thanks,
Ludo’.

  reply	other threads:[~2015-01-11 10:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-07 11:29 [PATCH] gnu: Add nss 宋文武
2015-01-07 16:50 ` Mark H Weaver
2015-01-08 13:00   ` 宋文武
2015-01-10 21:06     ` Ludovic Courtès
2015-01-11  2:25       ` 宋文武
2015-01-11 10:52         ` Ludovic Courtès [this message]
2015-01-11  7:30       ` John Darrington
2015-01-11  7:51         ` 宋文武
2015-01-11  8:28           ` John Darrington
2015-01-11 11:03             ` wip-libreoffice status? Ludovic Courtès
2015-01-11 12:12               ` John Darrington

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=87wq4td1yj.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=iyzsong@gmail.com \
    /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).