WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Mixing tcz's and scm's  (Read 1873 times)

Offline caminati

  • Full Member
  • ***
  • Posts: 184
    • Homepage
Mixing tcz's and scm's
« on: April 22, 2013, 07:17:34 AM »
a tcz extension emulates what in slax is done via aufs by symlinking.
This embeds it in the fhs, allowing it to be a dependency of other tczs.
A scm skips the symlinking step, because less importance is paid to the dependency mechanism.

Ok, it sounds reasonable that two different types of extensions have been conceived, given this rationale.
However, I am in the situation of needing a interdependency mechanism between tcz and scm.

In concrete: I have created a minimal texlive 2012 extension, which I need to be a tcz because of integration with the fhs and because I sometime need to tce-load -ci to do modifications.
I modularized the additional stuff from texlive into scms.
That is because such stuff is made from a myriad of small files, and even just symlinking all of them wastes space (checked that using du /usr/local/texlive).
(by the way, this illustrates another advantage of scm over tcz)

Hence: is it possible to have a tcz as a dependency of a scm?

Currently, it seems it's not...

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Mixing tcz's and scm's
« Reply #1 on: April 22, 2013, 02:15:02 PM »
a tcz extension emulates what in slax is done via aufs by symlinking.

Not really.
symlinking is a much simpler mechanism than overlay filesystems and preceded those by a long time.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline caminati

  • Full Member
  • ***
  • Posts: 184
    • Homepage
Re: Mixing tcz's and scm's
« Reply #2 on: April 22, 2013, 02:39:29 PM »
a tcz extension emulates what in slax is done via aufs by symlinking.

Not really.
symlinking is a much simpler mechanism than overlay filesystems and preceded those by a long time.

I agree with your last period and I don't see how it contrasts what I said before, hence I don't understand your first period.
With `emulates' I meant that an effect similar to that of overlay filesystems is obtained, without involving the extra complexity needed by aufs.

However, the core of this thread is asking about tcz as a dependency of a scm.
This would probably be too difficult to do, due to recursive deps.
The only possible solution would be to merge tce-load and scm-load scripts into one script based on filename extensions, so that recursion comes for free.