mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Ladislav Michl <ladis@linux-mips.org>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH v2 1/3] jimtcl: new package
Date: Tue, 18 Sep 2018 09:04:40 +0200	[thread overview]
Message-ID: <20180918070439.GA25565@lenoch> (raw)
In-Reply-To: <20180917082129.zf2fkxte35ntbgre@pengutronix.de>

On Mon, Sep 17, 2018 at 10:21:29AM +0200, Michael Olbrich wrote:
> On Thu, Sep 13, 2018 at 12:38:47PM +0200, Ladislav Michl wrote:
> > On Thu, Sep 13, 2018 at 11:59:37AM +0200, Roland Hieber wrote:
> > > 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?
> > 
> > Yes. Those are related to commit log message :) As Tcl is in staging and
> > noone bothered I guess Tcl is not important to anyone and thus it does
> > not make sense to implement features noobody asks for. So jimtcl is here
> > only to make usb-nodeswitch happy which it does as it is.
> 
> It's not really autoconf, so you need to be careful which options are set,
> but there is stuff that is autodetected, so that needs explicit options.
> I think a lot of it is disabled by default, but at least lineedit and docs
> should imho be disabled.

("It's not really autoconf" is even stated in comment :)). I'll disable doc
and create option for lineedit and it is usefull when used as tcl
replacement.

> Also, this packages seems to use tclsh at configure and compile time. We
> need a host-system-tcl to make sure tclsh is installed. Check with
>
> type -P tclsh >/dev/null || ptxd_bailout "..."
> 
> I think.

Oh wait! I think we do not want to add more system dependencies.
We have host-jimtcl for that purpose, I just have to make sure that
bootstrapping works correctly as it first checks for system tcl
or compiles bootstrap one if not found. Or do you think it is better
to create host-system-tcl package?

> > > 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 did not enable it either. Which way does install fail in your case?
> 
> It fails if ccache is installed but does not work. Add 'CCACHE=none' to the
> CONF_ENV.
> 
> > > 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
> > 
> > I do not see this message, care to investigate more? Thank you.
> 
> Roland: did you manually remove ccache from the Makefile, when this
> happens? Maybe your ccache issue broke the header detection and
> HAVE_DIRENT_H is not defined.
> 
> Michael
> 
> > >  - 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
> 
> -- 
> Pengutronix e.K.                           |                             |
> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
> 
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2018-09-18  7:04 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 ` [ptxdist] [PATCH v2 1/3] jimtcl: new package Roland Hieber
2018-09-13 10:38   ` Ladislav Michl
2018-09-17  8:21     ` Michael Olbrich
2018-09-18  7:04       ` Ladislav Michl [this message]
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=20180918070439.GA25565@lenoch \
    --to=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