mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Roland Hieber <r.hieber@pengutronix.de>
To: Ladislav Michl <ladis@linux-mips.org>
Cc: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH v2 1/3] jimtcl: new package
Date: Thu, 13 Sep 2018 11:59:37 +0200	[thread overview]
Message-ID: <20180913095937.cxaaaupazdwqhzmh@pengutronix.de> (raw)
In-Reply-To: <20180913083226.GA24773@lenoch>

On Thu, Sep 13, 2018 at 10:32:26AM +0200, Ladislav Michl wrote:
[...]
> diff --git a/rules/jimtcl.make b/rules/jimtcl.make
> new file mode 100644
> index 000000000..16a5e2ae3
> --- /dev/null
> +++ b/rules/jimtcl.make
> @@ -0,0 +1,77 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2018 by Ladislav Michl <ladis@linux-mips.org>
> +#
> +# 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_JIMTCL) += jimtcl
> +
> +#
> +# Paths and names
> +#
> +JIMTCL_VERSION	:= 0.78
> +JIMTCL_MD5	:= bde9021d78a77fe28e1bbc423142ab23
> +JIMTCL		:= jimtcl-$(JIMTCL_VERSION)
> +JIMTCL_SUFFIX	:= tar.xz
> +JIMTCL_URL	:= http://repo.or.cz/jimtcl.git;tag=$(JIMTCL_VERSION)
> +JIMTCL_SOURCE	:= $(SRCDIR)/$(JIMTCL).$(JIMTCL_SUFFIX)
> +JIMTCL_DIR	:= $(BUILDDIR)/$(JIMTCL)
> +JIMTCL_LICENSE	:= BSD-2-Clause 
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +#
> +# Package is not using autoconf but autosetup which is enough compatible...
> +#
> +JIMTCL_CONF_ENV		:= $(CROSS_ENV)
> +JIMTCL_CONF_TOOL	:= autoconf
> +JIMTCL_CONF_OPT		:= \
> +	$(CROSS_AUTOCONF_USR) \
> +	--shared

configure_helper.py shows a lot of options which are not present here.
Did you take a look at them?

Also I noticed that Makefile.in sets

  CC = @CCACHE@ @CC@
  CXX = @CCACHE@ @CXX@

which, in my case, becomes

  CC = ccache arm-v7a-linux-gnueabihf-gcc
  CXX = ccache arm-v7a-linux-gnueabihf-g++

which is probably the reason why jimtcl.install fails because my ccache
is not set up correctly (I did not enable it in ptxdist setup).

I'm not sure how using ccache can be avoided without patching the build
system.

There is another error happening here in jimtcl.install, but i'm not
sure if it is related to the faulty ccache usage:

  jim-readdir.c: In function 'Jim_ReaddirCmd':
  jim-readdir.c:72:5: error: unknown type name 'DIR'
       DIR *dirPtr;
       ^~~
  make[1]: *** [jim-readdir.o] Error 1
  Makefile:65: recipe for target 'jim-readdir.o' failed


 - Roland

> +
> +# ----------------------------------------------------------------------------
> +# Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/jimtcl.install:
> +	@$(call targetinfo)
> +	@$(call world/install, JIMTCL)
> +	@ln -sf libjim.so.$(JIMTCL_VERSION) $(JIMTCL_PKGDIR)/usr/lib/libjim.so
> +	@$(call touch)
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/jimtcl.targetinstall:
> +	@$(call targetinfo)
> +
> +	@$(call install_init, jimtcl)
> +	@$(call install_fixup, jimtcl, PRIORITY, optional)
> +	@$(call install_fixup, jimtcl, SECTION, base)
> +	@$(call install_fixup, jimtcl, AUTHOR, "Ladislav Michl <ladis@linux-mips.org>")
> +	@$(call install_fixup, jimtcl, DESCRIPTION, \
> +		"A small footprint implementation of the Tcl programming language")
> +
> +ifdef PTXCONF_JIMTCL_SHELL
> +	@$(call install_copy, jimtcl, 0, 0, 0755, -, /usr/bin/jimsh)
> +ifdef PTXCONF_JIMTCL_SYMLINK
> +	@$(call install_link, jimtcl, jimsh, /usr/bin/tclsh)
> +endif
> +endif
> +	@$(call install_lib, jimtcl, 0, 0, 0644, libjim)
> +
> +	@$(call install_finish, jimtcl)
> +
> +	@$(call touch)
> +
> +# vim: syntax=make
> -- 
> 2.19.0
> 
> 
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de

-- 
Roland Hieber                     | r.hieber@pengutronix.de     |
Pengutronix e.K.                  | https://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim | Phone: +49-5121-206917-5086 |
Amtsgericht Hildesheim, HRA 2686  | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

  parent reply	other threads:[~2018-09-13  9:59 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-13  8:32 Ladislav Michl
2018-09-13  8:34 ` [ptxdist] [PATCH v3 2/3] usb_modeswitch: version bump 2.5.1 -> 2.5.2 Ladislav Michl
2018-09-13  8:35 ` [ptxdist] [PATCH v3 3/3] usb_modeswitch: link dispatcher against JimTcl Ladislav Michl
2018-09-13  9:59 ` Roland Hieber [this message]
2018-09-13 10:38   ` [ptxdist] [PATCH v2 1/3] jimtcl: new package Ladislav Michl
2018-09-17  8:21     ` Michael Olbrich
2018-09-18  7:04       ` Ladislav Michl
2018-09-18  9:07         ` Michael Olbrich

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=20180913095937.cxaaaupazdwqhzmh@pengutronix.de \
    --to=r.hieber@pengutronix.de \
    --cc=ladis@linux-mips.org \
    --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