Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Braun <rbraun@sceen.net>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/2] package/tzdata: new package
Date: Tue, 26 Feb 2013 08:43:32 +0100	[thread overview]
Message-ID: <20130226074332.GA22882@mail.sceen.net> (raw)
In-Reply-To: <CANxTyt5ROnfpwLwwoTkN+jJBmjWdubXKy9Pc4TCiiz1nMJnaaQ@mail.gmail.com>

On Mon, Feb 25, 2013 at 09:02:50PM -0500, Danomi Manchego wrote:
> +define TZDATA_INSTALL_TARGET_CMDS
> +       mkdir -p $(TARGET_DIR)/usr/share/zoneinfo
> +       cp -a $(@D)/_output/* $(TARGET_DIR)/usr/share/zoneinfo
> +       cd $(TARGET_DIR)/usr/share/zoneinfo;    \
> +       for zone in posix/*; do                 \
> +           ln -s "$${zone}" "$${zone##*/}";    \
> +       done
> +endef
> 
> Yann,
> 
> Today, a co-worker applied these patches, and ran into a small problem
> during the install phase.  He had made a mistake while applying the
> companion zic patch, which caused the tzdata package to stop.  Then,
> after he fixed his mistake, the tzdata failed to install, because the
> 'ln -s' failed to overwrite symlinks that already exist.  So I think
> that it might be good to add an 'rm -f "$${zone##*/}";' before the 'ln
> -s'.  (Or at least make it an 'ln -sf', though I personally am
> distrustful of 'ln -sf' due to sometimes unexpected behavior when the
> target of the symlink is a directory.)

This is best fixed with ln -sfn. Sorry for not doing it in the first
place.

-- 
Richard Braun

  reply	other threads:[~2013-02-26  7:43 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-04 22:49 [Buildroot] [pull request] Pull request for branch yem-misc Yann E. MORIN
2013-02-04 22:49 ` [Buildroot] [PATCH 1/2] package/zic: new host package Yann E. MORIN
2013-02-04 22:49 ` [Buildroot] [PATCH 2/2] package/tzdata: new package Yann E. MORIN
2013-02-26  2:02   ` Danomi Manchego
2013-02-26  7:43     ` Richard Braun [this message]
2013-02-26 20:52     ` Yann E. MORIN
2013-02-17 23:34 ` [Buildroot] [pull request] Pull request for branch yem-misc Yann E. MORIN
  -- strict thread matches above, loose matches on Subject: below --
2013-03-07 21:53 [Buildroot] [pull request v2] " Yann E. MORIN
2013-03-07 21:53 ` [Buildroot] [PATCH 2/2] package/tzdata: new package Yann E. MORIN
2013-01-04 12:41 [Buildroot] [PATCH] packages: add tzdata Thomas Petazzoni
2013-01-04 13:06 ` [Buildroot] [PATCH 2/2] package/tzdata: new package Richard Braun
2013-01-04 13:41   ` Thomas Petazzoni
2013-01-04 13:45     ` Richard Braun
2013-01-04 13:48       ` Thomas Petazzoni
2013-01-04 13:57         ` Richard Braun

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=20130226074332.GA22882@mail.sceen.net \
    --to=rbraun@sceen.net \
    --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