From: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] small patches (was: skeleton patch)
Date: Wed, 19 Nov 2008 13:27:40 +0100 [thread overview]
Message-ID: <20081119122740.GB4797@mx.loc> (raw)
In-Reply-To: <e4c675870811190421r6612519ek47ef41d9f7434890@mail.gmail.com>
On Wed, Nov 19, 2008 at 01:21:48PM +0100, Roberto A. Foglietta wrote:
>2008/11/18 Roberto A. Foglietta <roberto.foglietta@gmail.com>:
>> Hi
>>
>> a) mkdir -p does not hurt but probably it is optional
>> b) s,cp -a,cp -af, because overwriting is necessary
>>
>> --- package/freetype/freetype.mk (revision 24038)
>> +++ package/freetype/freetype.mk (working copy)
>> @@ -15,7 +15,8 @@
>> $(eval $(call AUTOTARGETS,package,freetype))
>>
>> $(FREETYPE_HOOK_POST_BUILD):
>> - -cp -a $(FREETYPE_DIR)/objs/.libs/libfreetype.so* $(TARGET_DIR)/usr/lib/
>> + mkdir -p $(TARGET_DIR)/usr/lib
>> + cp -af $(FREETYPE_DIR)/objs/.libs/libfreetype.so* $(TARGET_DIR)/usr/lib
>> $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libfreetype.so
>> $(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g"
>> $(FREETYPE_DIR)/builds/unix/freetype-config
>> $(SED) "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g"
>> $(FREETYPE_DIR)/builds/unix/freetype-config
>>
>
> Patch attached
>
>--
>/roberto
>Index: package/freetype/freetype.mk
>===================================================================
>--- package/freetype/freetype.mk (revision 24099)
>+++ package/freetype/freetype.mk (working copy)
>@@ -15,7 +15,8 @@
> $(eval $(call AUTOTARGETS,package,freetype))
>
> $(FREETYPE_HOOK_POST_BUILD):
>- -cp -a $(FREETYPE_DIR)/objs/.libs/libfreetype.so* $(TARGET_DIR)/usr/lib/
>+ mkdir -p $(TARGET_DIR)/usr/lib
>+ cp -af $(FREETYPE_DIR)/objs/.libs/libfreetype.so* $(TARGET_DIR)/usr/lib
This will not work properly for a number of host systems (see ML archives)
Either use "cp -dpRf" or the preferred $(INSTALL), like:
$(INSTALL) -d $(TARGET_DIR)/usr/lib
$(INSTALL) -m0644 $(FREETYPE_DIR)/objs/.libs/libfreetype.so* $(TARGET_DIR)/usr/lib/
> $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libfreetype.so
> $(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" $(FREETYPE_DIR)/builds/unix/freetype-config
> $(SED) "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" $(FREETYPE_DIR)/builds/unix/freetype-config
next prev parent reply other threads:[~2008-11-19 12:27 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-18 19:21 [Buildroot] [PATCH] small patches (was: skeleton patch) Roberto A. Foglietta
2008-11-18 19:46 ` Roberto A. Foglietta
2008-11-18 19:52 ` Roberto A. Foglietta
2008-11-19 10:20 ` [Buildroot] [PATCH] small patches Peter Korsgaard
2008-11-19 10:59 ` Roberto A. Foglietta
2008-11-19 11:07 ` Peter Korsgaard
2008-11-19 11:32 ` Roberto A. Foglietta
2008-11-18 21:34 ` [Buildroot] [PATCH] small patches (was: skeleton patch) Bernhard Reutner-Fischer
2008-11-18 23:00 ` Roberto A. Foglietta
2008-11-19 10:22 ` [Buildroot] [PATCH] small patches Peter Korsgaard
2008-11-18 23:19 ` [Buildroot] [PATCH] small patches (was: skeleton patch) Roberto A. Foglietta
2008-11-19 12:23 ` Roberto A. Foglietta
2008-11-19 12:21 ` Roberto A. Foglietta
2008-11-19 12:27 ` Bernhard Reutner-Fischer [this message]
2008-11-19 14:46 ` Roberto A. Foglietta
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=20081119122740.GB4797@mx.loc \
--to=rep.dot.nop@gmail.com \
--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