From: Mark Hatle <mark.hatle@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH] bzip2-native: fix problems when bzip2-native is installed in parallel
Date: Tue, 24 Jul 2012 11:52:37 -0500 [thread overview]
Message-ID: <500ED2D5.7030101@windriver.com> (raw)
In-Reply-To: <500ECFBA.6000802@windriver.com>
On 7/24/12 11:39 AM, Yao Zhao wrote:
> On 12-07-24 11:47 AM, Phil Blundell wrote:
>> On Tue, 2012-07-24 at 11:45 -0400, Yao Zhao wrote:
>>> In the Makefile, libbz2.so.0 is installed before bzip2, but the
>>> installation is "make -j xxx install". Then this could happen.
>> Well, yes, but you could fix that by adding an appropriate dependency.
>> Right?
> I relooked at the Makefile again:
> install-binPROGRAMS: $(bin_PROGRAMS)
> @$(NORMAL_INSTALL)
> @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
> if test -n "$$list"; then \
> echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
> $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
> fi; \
> for p in $$list; do echo "$$p $$p"; done | \
> sed 's/$(EXEEXT)$$//' | \
> while read p p1; do if test -f $$p || test -f $$p1; \
> then echo "$$p"; echo "$$p"; else :; fi; \
> done | \
> sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
> -e
> 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
> sed 'N;N;N;s,\n, ,g' | \
> $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
> { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
> if ($$2 == $$4) files[d] = files[d] " " $$1; \
> else { print "f", $$3 "/" $$4, $$1; } } \
> END { for (d in files) print "f", d, files[d] }' | \
> while read type dir files; do \
> if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
> test -z "$$files" || { \
> .....
>
> install-binPROGRAMS: install-libLTLIBRARIES
>
> install-exec-am: install-binPROGRAMS install-binSCRIPTS \
> install-libLTLIBRARIES
> @$(NORMAL_INSTALL)
> $(MAKE) $(AM_MAKEFLAGS) install-exec-hook
>
> My first thought is that install-libLTLIBRARIES is a dependency of
> install-binPROGRAMS, but there are 2 install-binPROGRAMS targets, how it
> works?
In the second one, as long as there are no white space below the line, it's just
a \n. Then it adds the item to the dependency list.. So effectively
install-binPROGRAMS: $(bin_PROGRAMS) install-libLTLIBRARIES
(if there is a tab or other white space it should generate a warning or error
about multiple definitions of install-binPROGRAMS, and in that case, the last
definition wins.)
--Mark
> thanks,
> yao
>> p.
>>
>>
>>
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
next prev parent reply other threads:[~2012-07-24 17:04 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-24 13:49 [PATCH] bzip2-native: fix problems when bzip2-native is installed in parallel Yao Zhao
2012-07-24 13:57 ` Burton, Ross
2012-07-24 14:01 ` Yao Zhao
2012-07-24 15:34 ` Richard Purdie
2012-07-24 16:00 ` Yao Zhao
2012-07-24 18:32 ` Yao Zhao
2012-07-24 19:08 ` Richard Purdie
2012-07-24 18:39 ` Mark Hatle
2012-07-24 19:07 ` Richard Purdie
2012-07-24 19:25 ` Yao Zhao
2012-07-24 19:32 ` Richard Purdie
2012-07-25 20:07 ` Yao Zhao
2012-07-24 15:39 ` Phil Blundell
2012-07-24 15:45 ` Yao Zhao
2012-07-24 15:47 ` Phil Blundell
2012-07-24 16:39 ` Yao Zhao
2012-07-24 16:52 ` Mark Hatle [this message]
2012-07-24 17:03 ` Yao Zhao
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=500ED2D5.7030101@windriver.com \
--to=mark.hatle@windriver.com \
--cc=openembedded-core@lists.openembedded.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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.