WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: SCM Basics  (Read 143759 times)

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: SCM Basics
« Reply #30 on: January 31, 2012, 10:41:01 PM »
Memory efficiency?  But look at the scm vs tcz findings above.  There really is not much a difference, if not an advantage of self contained as provided thus far, given the above findings on the existing scm apps.  Sure, some things need to exist in the system as a low level shared app or daemon.  But for gtk2 and other apps as provided thus far, there really is not so much a disadvantage.

Each has their own benefits, but if upon findings of real memory disadvantages, then that can be addressed by changes in approach of the self contained method.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: SCM Basics
« Reply #31 on: January 31, 2012, 10:46:19 PM »
Window managers would require symlinks outside of the /apps directory.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: SCM Basics
« Reply #32 on: January 31, 2012, 11:57:36 PM »
As Gerald mentioned, WM's require base functions outside of /apps that make them best suited to remain tcz's, and they tend to be fairly small anyway.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11041
Re: SCM Basics
« Reply #33 on: February 01, 2012, 07:42:24 AM »
I don't think compiletc would work as a scm, it would require a ton of symlinks still.
The only barriers that can stop you are the ones you create yourself.

Offline floppy

  • Hero Member
  • *****
  • Posts: 577
Re: SCM Basics
« Reply #34 on: February 01, 2012, 10:56:08 AM »
I did not catch the main target of it and the use target.
run a session with only 256MB RAM, no swap, for installing a system with it..?
What is the main reason?.
AMD K6-IIIATZ 550MHz MB DFI K6xv3/+66
P4 HP DC7100 3GB 3GHz
Samsung NC10 boot from SD card port (via USB reader)
.. all TinyCore proofed

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: SCM Basics
« Reply #35 on: February 01, 2012, 11:50:42 AM »
Floppy, please start at post #1 and read the whole thread.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: SCM Basics
« Reply #36 on: February 01, 2012, 09:42:13 PM »
For now, to save download and disk space I have taken the development files out of the gtk2 and gtk3 scm's, leaving only the runtime.  The full packages with both runtime and dev stuff is available in the scm repo as gtk2-dev.tar.xz and gtk3-dev.tar.xz.  To use them, just unload the gtk2.scm, then untar the gtk2-dev.tar.xz file into /apps.  It will untar in a gtk2 directory, the same name as the .oaded scm's directory.  Then you can build against it.  Delete that directory when through compiling and reload the gtk2.scm.  It saves a bit of space this way and I think it is worth the extra steps of using the tar.xz.  Regular users won't need to be concerned with using the tar.xz.  And there are and will be only a few large tookit extensions that will need to be done this way, so these simple manual steps should not add undue complexity.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: SCM Basics
« Reply #37 on: February 03, 2012, 10:40:18 PM »
As mentioned in the CDE thread, I have made some progress on making a self contained and portable app out of stuff existing tcz extensions.  Audacious available as audacious-portable.tar.ga in the scm source area ,self contained, runs for me when untarred into any directory and booted with the "base norestore" option using only base Xlibs and a WM, also installing OSS.tcz, available for testing here:



This is not the original method used configuring with --prefix=/apps/audacious, but is much more portable and flexible, and allows making packages on TC to use anywhere, and to make packages elsewhere to use on TC.  Making self contained portable packages elsewhere for TC or on TC for elsewhere is not the priority, but may exist as a benefit.
« Last Edit: February 05, 2012, 08:57:00 AM by Jason W »

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: SCM Basics
« Reply #38 on: February 03, 2012, 11:57:18 PM »
I tested the package, it works but if I try to open the preferences, it crashes.
I understand but I also tried cde, I noted that captures the libraries as the program requires it.
Open preferences while running cde perhaps avoid the crash.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: SCM Basics
« Reply #39 on: February 04, 2012, 12:00:28 AM »
Ok, I will test it some more and see.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: SCM Basics
« Reply #40 on: February 04, 2012, 12:08:14 AM »
Ok, it is not seeing the Skins directory, will see what I can do.  This may not be feasible, but we will see.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: SCM Basics
« Reply #41 on: February 04, 2012, 06:21:39 PM »
I won't spend much time on trying to make a portable app out of existing packages, since they result in much larger size due to including everything.  And that means larger download/disk requirements and larger runtime memory, both of which are primary concerns in the scm model.  Much better to be custom built and lean, and the portability thing is being done by some other projects if one wants to grab a few portable apps.  But the current scm's are pretty portable as they are, since they normally just need some X libs, I run them on slackware and debian.

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: SCM Basics
« Reply #42 on: February 04, 2012, 10:01:29 PM »
I understand, honestly suspected that it was not possible (although I was hoping otherwise), however jason thank you for trying  :D

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: SCM Basics
« Reply #43 on: February 04, 2012, 10:40:44 PM »
Possible is one thing, feasible and in keeping with the overall scm concept is another. 

I say never say never, but for now compiling specifically for /apps and scm is the way.

Offline V.Krishn

  • Newbie
  • *
  • Posts: 33
Re: SCM Basics
« Reply #44 on: February 05, 2012, 02:56:24 AM »
What are the inherent problems for scm-build scripts to exist? What I am trying to say is for example, if gtk2.scm did contain the current dependencies for tczs by just rolling into one file.

Can someone point me to url or write the simple steps that takes place in installing a tcz package once it is downloaded in optional dir, ie. mounting+symlinking..etc?