Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2] ca-certificates: new package
Date: Sun, 12 Jan 2014 00:07:10 +0100	[thread overview]
Message-ID: <20140111230710.GC3391@free.fr> (raw)
In-Reply-To: <52D00282.8040607@barkynet.com>

Martin, All,

On 2014-01-10 14:24 +0000, Martin Bark spake thusly:
> On 09/01/14 23:59, Yann E. MORIN wrote:
[--SNIP--]
> >>+    #generate symlinks to certificates under /etc/ssl/certs
> >>+    ( \
> >>+      cd $(TARGET_DIR) ;\
> >>+      for i in `find usr/share/ca-certificates -name "*.crt"` ; do \
> >>+            ln -sf ../../../$$i etc/ssl/certs/`basename $${i%.crt}.pem` ;\
> >>+      done ;\
> >>+    )
> >
> >As stated by Thomas, this is not very nice.
> >
> >However, you do not need to enclose the command in-between a ()-pair,
> >since make will spawn a shell for each 'command', and thus the cd is in
> >effect only in that shell. That is, the following line:
> >
> >>+    $(HOST_DIR)/usr/bin/c_rehash $(TARGET_DIR)/etc/ssl/certs
> >
> >Will be executed in another shell.
> >
> >Also, your use of basename is weird. I'd use this instead:
> >     `basename $${i} .crt`.pem
> 
> I was using the bash ${var%Pattern} substitution but your solution is
> neater.  I'll make those changes now.

Yes, I know about this, and I even use it a lot. But I think it is not
obvious enough in this context.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

      reply	other threads:[~2014-01-11 23:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-08 17:15 [Buildroot] [PATCH v2] ca-certificates: new package Martin Bark
2014-01-09 23:45 ` Thomas Petazzoni
2014-01-10 14:23   ` Martin Bark
2014-01-10 23:43     ` Thomas Petazzoni
2014-01-09 23:59 ` Yann E. MORIN
2014-01-10 14:24   ` Martin Bark
2014-01-11 23:07     ` Yann E. MORIN [this message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140111230710.GC3391@free.fr \
    --to=yann.morin.1998@free.fr \
    --cc=buildroot@busybox.net \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox