Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] cpan_build: Unify directory layout for native and target builds
@ 2012-09-25 21:33 Phil Blundell
  2012-10-18 19:51 ` Saul Wold
  0 siblings, 1 reply; 2+ messages in thread
From: Phil Blundell @ 2012-09-25 21:33 UTC (permalink / raw)
  To: oe-core

There seems to be no benefit in having them be different and this
appears to cause a certain amount of confusion about paths for
the native modules.

Signed-off-by: Phil Blundell <pb@pbcl.net>
---
previously posted as RFC, no comments so reposting as an actual patch

 meta/classes/cpan_build.bbclass |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/meta/classes/cpan_build.bbclass
b/meta/classes/cpan_build.bbclass
index 36ffc56..0809602 100644
--- a/meta/classes/cpan_build.bbclass
+++ b/meta/classes/cpan_build.bbclass
@@ -23,8 +23,9 @@ cpan_build_do_configure () {
 	if [ ${@is_target(d)} == "yes" ]; then
 		# build for target
 		. ${STAGING_LIBDIR}/perl/config.sh
+	fi
 
-			perl Build.PL --installdirs vendor \
+	perl Build.PL --installdirs vendor \
 				--destdir ${D} \
 				--install_path lib="${datadir}/perl" \
 				--install_path arch="${libdir}/perl" \
@@ -32,10 +33,6 @@ cpan_build_do_configure () {
 				--install_path bin=${bindir} \
 				--install_path bindoc=${mandir}/man1 \
 				--install_path libdoc=${mandir}/man3
-	else
-		# build for host
-		perl Build.PL --installdirs site --destdir ${D}
-	fi
 }
 
 cpan_build_do_compile () {
-- 
1.7.9






^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] cpan_build: Unify directory layout for native and target builds
  2012-09-25 21:33 [PATCH] cpan_build: Unify directory layout for native and target builds Phil Blundell
@ 2012-10-18 19:51 ` Saul Wold
  0 siblings, 0 replies; 2+ messages in thread
From: Saul Wold @ 2012-10-18 19:51 UTC (permalink / raw)
  To: Phil Blundell; +Cc: oe-core

On 09/25/2012 02:33 PM, Phil Blundell wrote:
> There seems to be no benefit in having them be different and this
> appears to cause a certain amount of confusion about paths for
> the native modules.
>
> Signed-off-by: Phil Blundell <pb@pbcl.net>
> ---
> previously posted as RFC, no comments so reposting as an actual patch
>
>   meta/classes/cpan_build.bbclass |    7 ++-----
>   1 files changed, 2 insertions(+), 5 deletions(-)
>
> diff --git a/meta/classes/cpan_build.bbclass
> b/meta/classes/cpan_build.bbclass
> index 36ffc56..0809602 100644
> --- a/meta/classes/cpan_build.bbclass
> +++ b/meta/classes/cpan_build.bbclass
> @@ -23,8 +23,9 @@ cpan_build_do_configure () {
>   	if [ ${@is_target(d)} == "yes" ]; then
>   		# build for target
>   		. ${STAGING_LIBDIR}/perl/config.sh
> +	fi
>
> -			perl Build.PL --installdirs vendor \
> +	perl Build.PL --installdirs vendor \
>   				--destdir ${D} \
>   				--install_path lib="${datadir}/perl" \
>   				--install_path arch="${libdir}/perl" \
> @@ -32,10 +33,6 @@ cpan_build_do_configure () {
>   				--install_path bin=${bindir} \
>   				--install_path bindoc=${mandir}/man1 \
>   				--install_path libdoc=${mandir}/man3
> -	else
> -		# build for host
> -		perl Build.PL --installdirs site --destdir ${D}
> -	fi
>   }
>
>   cpan_build_do_compile () {
>

Merged into OE-Core

Thanks
	Sau!




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-10-18 20:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-25 21:33 [PATCH] cpan_build: Unify directory layout for native and target builds Phil Blundell
2012-10-18 19:51 ` Saul Wold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox