From: Saul Wold <sgw@linux.intel.com>
To: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Cc: Jonathan Santos <jrsantos@jonathanrsantos.com>
Subject: Re: [PATCH] openjade-native: Fix use of obsolete getopts.pl in msggen.pl
Date: Wed, 27 Jun 2012 10:07:11 -0700 [thread overview]
Message-ID: <4FEB3DBF.9030304@linux.intel.com> (raw)
In-Reply-To: <1340811339-6223-1-git-send-email-jrsantos@jonathanrsantos.com>
On 06/27/2012 08:35 AM, Jonathan Santos wrote:
> getopts.pl was deprecated in perl 5.14, and removed in 5.16.
>
> Signed-off-by: Jonathan Santos<jrsantos@jonathanrsantos.com>
> ---
> .../openjade/openjade-1.3.2/getopts.patch | 20 ++++++++++++++++++++
> .../openjade/openjade-native_1.3.2.bb | 3 ++-
> 2 files changed, 22 insertions(+), 1 deletion(-)
> create mode 100644 meta/recipes-devtools/openjade/openjade-1.3.2/getopts.patch
>
> diff --git a/meta/recipes-devtools/openjade/openjade-1.3.2/getopts.patch b/meta/recipes-devtools/openjade/openjade-1.3.2/getopts.patch
> new file mode 100644
> index 0000000..b89861d
> --- /dev/null
> +++ b/meta/recipes-devtools/openjade/openjade-1.3.2/getopts.patch
This need a patch header, with comment (why is patch needed) along with
Upstream-Status and Signed-off-by
Please see the Commit and Patch Wiki:
http://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
Thanks
Sau!
> @@ -0,0 +1,20 @@
> +--- ./msggen.pl.orig 2012-06-11 11:35:22.000000000 +0000
> ++++ ./msggen.pl 2012-06-11 11:37:06.000000000 +0000
> +@@ -4,6 +4,7 @@
> + # See the file COPYING for copying permission.
> +
> + use POSIX;
> ++use Getopt::Std;
> +
> + # Package and version.
> + $package = 'openjade';
> +@@ -18,8 +19,7 @@ $gen_c = 0;
> + undef $opt_l;
> + undef $opt_p;
> + undef $opt_t;
> +-do 'getopts.pl';
> +-&Getopts('l:p:t:');
> ++getopts('l:p:t:');
> + $module = $opt_l;
> + $pot_file = $opt_p;
> +
> diff --git a/meta/recipes-devtools/openjade/openjade-native_1.3.2.bb b/meta/recipes-devtools/openjade/openjade-native_1.3.2.bb
> index 5b29c1f..a69c697 100644
> --- a/meta/recipes-devtools/openjade/openjade-native_1.3.2.bb
> +++ b/meta/recipes-devtools/openjade/openjade-native_1.3.2.bb
> @@ -15,7 +15,8 @@ RDEPENDS_${PN} = "sgml-common-native"
> SRC_URI = "${SOURCEFORGE_MIRROR}/openjade/openjade-${PV}.tar.gz \
> file://makefile.patch \
> file://reautoconf.patch \
> - file://user-declared-default-constructor.patch"
> + file://user-declared-default-constructor.patch \
> + file://getopts.patch"
>
> SRC_URI[md5sum] = "7df692e3186109cc00db6825b777201e"
> SRC_URI[sha256sum] = "1d2d7996cc94f9b87d0c51cf0e028070ac177c4123ecbfd7ac1cb8d0b7d322d1"
prev parent reply other threads:[~2012-06-27 17:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-27 15:35 [PATCH] openjade-native: Fix use of obsolete getopts.pl in msggen.pl Jonathan Santos
2012-06-27 17:07 ` Saul Wold [this message]
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=4FEB3DBF.9030304@linux.intel.com \
--to=sgw@linux.intel.com \
--cc=jrsantos@jonathanrsantos.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox