mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: "Bernhard Seßler" <bernhard.sessler@corscience.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH] anthy: Add new package
Date: Fri, 18 Jan 2013 09:56:55 +0100	[thread overview]
Message-ID: <50F90E57.8020505@corscience.de> (raw)
In-Reply-To: <50EA76A4.2020102@corscience.de>

Hi everyone,

I've integrated most of Michael's suggestions, but I don't see a way not to
touch anthy's build system. Anthy's build system is generating some tools only
to create dictionaries and needed data and these are executed during the build
process (they don't serve any other purpose and are not even part of the install
target). So the only way is to build these tools with the system's host compiler
(so they can be executed on the host) - I don't see any way to build anthy on
the host, copy over the generated files into the target build and then building
it for the target without touching the build system. Apart from that I've also
submitted this patch to the anthy development mailing list, so maybe we'll see
it integrated into anthy's build system itself in the future. Any comments on
this are appreciated though, maybe I'm just not seeing everything and there
really _is_ a better way.

Best Regards,
Bernhard


On 07/01/13 08:17, Bernhard Seßler wrote:
> Hi,
>
> I was on vacation the last few days, but I'll look into it as soon as possible.
> Thanks for the reply.
>
> Regards, Bernhard
>
>
> -------- Original Message  --------
> Subject: Re: [ptxdist] [PATCH] anthy: Add new package
> From: Michael Olbrich <m.olbrich@pengutronix.de>
> To: ptxdist@pengutronix.de
> Date: 03.01.2013 15:12
>
>> On Thu, Dec 20, 2012 at 10:00:49AM +0100, Bernhard Sessler wrote:
>>> Anthy is a system providing a Japanese input method.
>>> It converts Hiragana text to Kana Kanji mixed text.
>>>
>>> Signed-off-by: Bernhard Sessler <bernhard.sessler@corscience.de>
>>> ---
>>>  ...uild-system-for-cross-compilation-support.patch | 395 +++++++++++++++++++++
>>>  patches/anthy-9100h/autogen.sh                     |   1 +
>>>  patches/anthy-9100h/series                         |   1 +
>>>  rules/anthy.in                                     |   8 +
>>>  rules/anthy.make                                   |  68 ++++
>>>  5 files changed, 473 insertions(+)
>>>  create mode 100644 patches/anthy-9100h/0001-Updated-build-system-for-cross-compilation-support.patch
>> No, don't rewrite the build system. Create a host-anthy that is built
>> first. Then, you might get away with just copying the generated files, or
>> maybe you need to remove some dependencies.
>>
>>>  create mode 120000 patches/anthy-9100h/autogen.sh
>>>  create mode 100644 patches/anthy-9100h/series
>>>  create mode 100644 rules/anthy.in
>>>  create mode 100644 rules/anthy.make
>>>
>>> diff --git a/patches/anthy-9100h/0001-Updated-build-system-for-cross-compilation-support.patch b/patches/anthy-9100h/0001-Updated-build-system-for-cross-compilation-support.patch
>> [...]
>>> diff --git a/rules/anthy.in b/rules/anthy.in
>>> new file mode 100644
>>> index 0000000..ed0fcda
>>> --- /dev/null
>>> +++ b/rules/anthy.in
>>> @@ -0,0 +1,8 @@
>>> +## SECTION=system_libraries
>>> +
>>> +config ANTHY
>>> +	tristate
>>> +	prompt "anthy"
>>> +	help
>>> +	  Anthy is a system for Japanese input method.
>>> +	  It converts Hiragana text to Kana Kanji mixed text.
>>> diff --git a/rules/anthy.make b/rules/anthy.make
>>> new file mode 100644
>>> index 0000000..ed3be10
>>> --- /dev/null
>>> +++ b/rules/anthy.make
>>> @@ -0,0 +1,68 @@
>>> +# -*-makefile-*-
>>> +#
>>> +# Copyright (C) 2012 by Bernhard Sessler <bernhard.sessler@corscience.de>
>>> +#                       Corscience GmbH & Co. KG <info@corscience.de>, Germany
>>> +#
>>> +# See CREDITS for details about who has contributed to this project.
>>> +#
>>> +# For further information about the PTXdist project and license conditions
>>> +# see the README file.
>>> +#
>>> +
>>> +#
>>> +# We provide this package
>>> +#
>>> +PACKAGES-$(PTXCONF_ANTHY) += anthy
>>> +
>>> +#
>>> +# Paths and names
>>> +#
>>> +ANTHY_BASE		:= anthy
>>> +ANTHY_VERSION	:= 9100h
>>> +ANTHY_MD5		:= 1f558ff7ed296787b55bb1c6cf131108
>>> +ANTHY			:= $(ANTHY_BASE)-$(ANTHY_VERSION)
>>> +ANTHY_SUFFIX	:= tar.gz
>>> +ANTHY_URL		:= http://osdn.dl.sourceforge.jp/$(ANTHY_BASE)/37536/$(ANTHY).$(ANTHY_SUFFIX)
>>> +ANTHY_SOURCE	:= $(SRCDIR)/$(ANTHY).$(ANTHY_SUFFIX)
>>> +ANTHY_DIR		:= $(BUILDDIR)/$(ANTHY)
>>> +ANTHY_LICENSE	:= LGPLv2.1
>>> +
>>> +# ----------------------------------------------------------------------------
>>> +# Prepare
>>> +# ----------------------------------------------------------------------------
>>> +
>>> +ANTHY_AUTOCONF := $(CROSS_AUTOCONF_USR)
>> remove this and add:
>>
>> ANTHY_CONF_TOOL := autoconf
>>
>>> +
>>> +# ----------------------------------------------------------------------------
>>> +# Target-Install
>>> +# ----------------------------------------------------------------------------
>>> +
>>> +$(STATEDIR)/anthy.targetinstall:
>>> +	@$(call targetinfo)
>>> +
>>> +	@$(call install_init, anthy)
>>> +	@$(call install_fixup, anthy,PRIORITY,optional)
>>> +	@$(call install_fixup, anthy,SECTION,base)
>>> +	@$(call install_fixup, anthy,AUTHOR,"Bernhard Sessler <bernhard.sessler@corscience.de>")
>>> +	@$(call install_fixup, anthy,DESCRIPTION,missing)
>>> +
>>> +	@$(call install_lib, anthy, 0, 0, 0644, libanthydic)
>>> +	@$(call install_lib, anthy, 0, 0, 0644, libanthyinput)
>>> +	@$(call install_lib, anthy, 0, 0, 0644, libanthy)
>>> +
>>> +	@$(call install_copy, anthy, 0, 0, 0755, -, /usr/bin/anthy-agent)
>>> +	@$(call install_copy, anthy, 0, 0, 0755, -, /usr/bin/anthy-dic-tool)
>>> +
>>> +	@$(call install_copy, anthy, 0, 0, 0755, -, \
>>> +		/usr/bin/anthy-morphological-analyzer)
>>> +
>>> +	@$(call install_alternative, anthy, 0, 0, 0644, /etc/anthy-conf)
>>> +
>>> +	@$(call install_tree, anthy, 0, 0, \
>>> +		$(ANTHY_PKGDIR)/usr/share/anthy, /usr/share/anthy)
>> 	@$(call install_tree, anthy, 0, 0, -, \
>> 		/usr/share/anthy)
>>
>> Michael
>>
>>> +
>>> +	@$(call install_finish, anthy)
>>> +
>>> +	@$(call touch)
>>> +
>>> +# vim: syntax=make
>>> -- 
>>> 1.8.0
>>>
>>>
>>> -- 
>>> ptxdist mailing list
>>> ptxdist@pengutronix.de
>>>


-- 
ptxdist mailing list
ptxdist@pengutronix.de

      reply	other threads:[~2013-01-18  8:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-20  9:00 Bernhard Sessler
2013-01-03 14:12 ` Michael Olbrich
2013-01-07  7:17   ` Bernhard Seßler
2013-01-18  8:56     ` Bernhard Seßler [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=50F90E57.8020505@corscience.de \
    --to=bernhard.sessler@corscience.de \
    --cc=ptxdist@pengutronix.de \
    /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