All of lore.kernel.org
 help / color / mirror / Atom feed
* trouble with cp command in autotools.bbclass
@ 2008-04-01  0:46 Robert Schuster
  2008-04-01  6:47 ` Koen Kooi
  0 siblings, 1 reply; 3+ messages in thread
From: Robert Schuster @ 2008-04-01  0:46 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 862 bytes --]

Hi,
lately the following copy operation has been added to autotools.bbclass:

# Otherwise libtool wasn't used, and lib/ can be copied
# directly.
echo "cp -fpPR ${STAGE_TEMP}/${libdir}/* ${STAGING_LIBDIR}"
cp -fpPR ${STAGE_TEMP}/${libdir}/* ${STAGING_LIBDIR}

I have trouble with this and a package that creates an empty ${libdir}.
Shell globbing (*) wont find a file and instead tries to copy a file
named "*" ... and fails and so does my built.

I would like to replace this with the following lines which uses find
and is more robust:

# (The find command handles an empty ${STAGE_TEMP/${libdir} correctly)
echo "find ${STAGE_TEMP}/${libdir} -mindepth 1 -maxdepth 1 -exec cp
-fpPR {} ${STAGING_LIBDIR}" \;

find ${STAGE_TEMP}/${libdir} -mindepth 1 -maxdepth 1 -exec cp -fpPR {}
${STAGING_LIBDIR} \;

Ok for commit?

Regards
Robert


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

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

* Re: trouble with cp command in autotools.bbclass
  2008-04-01  0:46 trouble with cp command in autotools.bbclass Robert Schuster
@ 2008-04-01  6:47 ` Koen Kooi
  2008-04-02 23:08   ` Robert Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Koen Kooi @ 2008-04-01  6:47 UTC (permalink / raw)
  To: openembedded-devel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Robert Schuster schreef:
| Hi,
| lately the following copy operation has been added to autotools.bbclass:
|
| # Otherwise libtool wasn't used, and lib/ can be copied
| # directly.
| echo "cp -fpPR ${STAGE_TEMP}/${libdir}/* ${STAGING_LIBDIR}"
| cp -fpPR ${STAGE_TEMP}/${libdir}/* ${STAGING_LIBDIR}
|
| I have trouble with this and a package that creates an empty ${libdir}.
| Shell globbing (*) wont find a file and instead tries to copy a file
| named "*" ... and fails and so does my built.
|
| I would like to replace this with the following lines which uses find
| and is more robust:
|
| # (The find command handles an empty ${STAGE_TEMP/${libdir} correctly)
| echo "find ${STAGE_TEMP}/${libdir} -mindepth 1 -maxdepth 1 -exec cp
| -fpPR {} ${STAGING_LIBDIR}" \;
|
| find ${STAGE_TEMP}/${libdir} -mindepth 1 -maxdepth 1 -exec cp -fpPR {}
| ${STAGING_LIBDIR} \;
|
| Ok for commit?

or use:

autotools_stage_dir ${STAGE_TEMP}/${libdir} ${STAGING_LIBDIR}

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFH8dqdMkyGM64RGpERAuRsAKCZscg8u3San7ui3qkZfjJPwOWvPACgp7oF
Qzjxe69KN+cq/BayJRi1/Ic=
=iHP3
-----END PGP SIGNATURE-----




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

* Re: trouble with cp command in autotools.bbclass
  2008-04-01  6:47 ` Koen Kooi
@ 2008-04-02 23:08   ` Robert Schuster
  0 siblings, 0 replies; 3+ messages in thread
From: Robert Schuster @ 2008-04-02 23:08 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 729 bytes --]

Hi.

Koen Kooi schrieb:
> Robert Schuster schreef:
> | # (The find command handles an empty ${STAGE_TEMP/${libdir} correctly)
> | echo "find ${STAGE_TEMP}/${libdir} -mindepth 1 -maxdepth 1 -exec cp
> | -fpPR {} ${STAGING_LIBDIR}" \;
> |
> | find ${STAGE_TEMP}/${libdir} -mindepth 1 -maxdepth 1 -exec cp -fpPR {}
> | ${STAGING_LIBDIR} \;
> |
> | Ok for commit?
> 
> or use:
> 
> autotools_stage_dir ${STAGE_TEMP}/${libdir} ${STAGING_LIBDIR}
Looks better, indeed.

I committed it this way.

Regards
Robert
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel




[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

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

end of thread, other threads:[~2008-04-02 23:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-01  0:46 trouble with cp command in autotools.bbclass Robert Schuster
2008-04-01  6:47 ` Koen Kooi
2008-04-02 23:08   ` Robert Schuster

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.