WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Why does vim.tcz have dependencies on Xorg and a bunch of libX.. tcz's?  (Read 3151 times)

Offline lindsay

  • Newbie
  • *
  • Posts: 11
I am building a pure CLI tc instance, primary use will be as an opensssl client.

Why does vim.tcz pull in a lot of Xorg and a bunch of libX..tcz's as a dependency?

/Lindsay

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: Why does vim.tcz have dependencies on Xorg and a bunch of libX.. tcz's?
« Reply #1 on: January 05, 2017, 10:30:06 AM »
Hi lindsay
Did you read the  .info  file for vim? It mentions:
Quote
      Adds backspace support, ruler, incseach, history, syntax highlighting,
      auto indent, number, nowrap). Use mouse for cut & paste between windows.
I'm guessing it's the cut and paste support that require those dependencies. According to the change log the last update was
in 2009 suggesting it was just copied over going back to at least TC4.x. The TC4.x repository has  vim-7.2-bin.tcz  which only
depends on ncurses. You might want to see if that will run for you.


Offline lindsay

  • Newbie
  • *
  • Posts: 11
Re: Why does vim.tcz have dependencies on Xorg and a bunch of libX.. tcz's?
« Reply #2 on: January 05, 2017, 11:02:32 AM »
Thanks Rich.

I'd read it, but did not get the implication on first reading.
I had found gpm.tcz  and the  'multivt' bootcode which prompted the idea for a minimal+ cli sandbox.

Regards,
/lindsay

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: Why does vim.tcz have dependencies on Xorg and a bunch of libX.. tcz's?
« Reply #3 on: January 05, 2017, 11:18:58 AM »
Hi lindsay
Like I said, grab a copy of  vim-7.2-bin.tcz  and its  .dep  file and see if it runs. If it does, report it and also mention which
version number of TC you are running and someone will copy it over to that repository.

Offline andyj

  • Hero Member
  • *****
  • Posts: 1020
Re: Why does vim.tcz have dependencies on Xorg and a bunch of libX.. tcz's?
« Reply #4 on: January 05, 2017, 11:27:15 AM »
When I built / submitted vim 8 for 64 bit TC vim and gvim are separate extensions, so the vim cli-only doesn't have any X or GTK dependencies. You could use the build script for the 64-bit extension to build it yourself on 32-bit for instant gratification, or wait a few days for me to build it and submit it. I don't usually work in the 32-bit environment so I don't keep things like that up to date there.

Offline lindsay

  • Newbie
  • *
  • Posts: 11
Re: Why does vim.tcz have dependencies on Xorg and a bunch of libX.. tcz's?
« Reply #5 on: January 05, 2017, 03:25:34 PM »
I don't mind building it from sources. Have a tc compile instance just for that.. :)
However, Is there a script to make the minimal tcz? If so, Where would I find that?
/Lindsay

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Why does vim.tcz have dependencies on Xorg and a bunch of libX.. tcz's?
« Reply #6 on: January 05, 2017, 03:38:44 PM »
Hi,
this seems to be for  vim  and  gvim :
http://tinycorelinux.net/7.x/x86_64/tcz/src/vim/
Download a copy and keep it handy: Core book ;)

Offline andyj

  • Hero Member
  • *****
  • Posts: 1020
Re: Why does vim.tcz have dependencies on Xorg and a bunch of libX.. tcz's?
« Reply #7 on: January 05, 2017, 05:49:36 PM »
I have the 32 bit version of vim 8.0.0142 built, I just need to submit it. My 32 bit environment was woefully out of date. Kinda felt like I was mirroring the repo with all the extensions I needed  :o

Offline lindsay

  • Newbie
  • *
  • Posts: 11
Re: Why does vim.tcz have dependencies on Xorg and a bunch of libX.. tcz's?
« Reply #8 on: January 05, 2017, 09:56:34 PM »
Thanks. It is very informative to see how the release tcz's are built.
Some good idioms to follow with my own efforts ,when necessary.
/Lindsay

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: Why does vim.tcz have dependencies on Xorg and a bunch of libX.. tcz's?
« Reply #9 on: January 06, 2017, 12:39:05 AM »
Just in case you missed it, the tinycore base has the busybox version of vim, "vi".

Offline lindsay

  • Newbie
  • *
  • Posts: 11
Re: Why does vim.tcz have dependencies on Xorg and a bunch of libX.. tcz's?
« Reply #10 on: January 06, 2017, 11:00:42 AM »
Thanks.
vim is a bit more functional for code dev.
I saw the simple vi in busybox and checked out the other provided functions there as well.
I ended up installing the coreutils.tcz.
/Lindsay

Offline lindsay

  • Newbie
  • *
  • Posts: 11
Re: Why does vim.tcz have dependencies on Xorg and a bunch of libX.. tcz's?
« Reply #11 on: January 06, 2017, 01:11:05 PM »
For the record I've now compiled vim 8 from latest source for cli no problem:

I created a tinycore virtualbox instance just to build stuff on... compiletc.tcz, git.tcz etc.

Code: (bash) [Select]
git clone https://github.com/vim/vim.git
cd vim/src
./configure prefix=/temp/vim
make install

The resulting bin runs like a champ on a minimal tc cli instance.

...now to squashfs it...I really like the idea of splitting out bin from the docs when building tcz's.

Regards
/Lindsay