Both sides previous revisionPrevious revisionNext revision | Previous revision |
dcore:sce-import [2016/05/09 04:34] – [deb2sce] nitram | dcore:sce-import [2016/06/07 09:38] (current) – [sce-import and deb2sce Script Review] nitram |
---|
===== sce-import and deb2sce Script Review ===== | ===== dCore sce-import and deb2sce Script Review ===== |
These scripts are fairly complicated, forum member LichenSymbiont's guide to some of dCore's most important scripts, sce-import and deb2sce. | These scripts are fairly complicated, forum member LichenSymbiont's guide to some of dCore's most important scripts, sce-import and deb2sce. |
| |
**Suggested Reading:** | The sce-import script is a commandline package manager that calls deb2sce to retrieve .deb files and collect them into an SCE extension. It also calls the update function for the indices of Debian packages (debGetEnv). As you should expect, it must handle the regular Debian and Ubuntu package repository mirrors. Beyound that, it also downloads the dCore specific dependencies, and excluded packages, for the .deb packages (contained in /dCore/$build/import/deb2sce.tar.gz on the FTP). It also contains specific packages compiled for dCore (fltk library, flwm_topside and others). |
The scripts uses grep and awk extensively, so you should [[http://tldp.org/LDP/abs/html/part4.html|read more]] about [[http://coewww.rutgers.edu/linux/lessons/lesson9/shell_script_tutorial.html|using them]]. | |
It also uses some more complex awk programs, so you should learn a bit about the [[http://www.grymoire.com/Unix/Awk.html|Awk language]]. | |
And of course you need to know bash scripting, so here is a [[http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html|guide]]. | |
And understand some pitfalls in Bash (some applicable to Ash): [[http://mywiki.wooledge.org/BashPitfalls|Bash Pitfalls]]. | |
| |
=== Summary === | |
| |
sce-import is the command-line package manager (script), which calls deb2sce for getting the .deb files, and collecting them into the .sce package. | |
It also calls the update function for the indices of Debian packages (debGetEnv). | |
| |
As you should expect, it must handle the regular Debian and Ubuntu package repository mirrors. | |
Beyound that, it also downloads the dCore specific dependencies, and excluded packages, for the .deb packages (contained in /dCore/$build/import/deb2sce.tar.gz on the FTP). | |
It also contains specific packages compiled for dCore (fltk library, flwm_topside and others). | |
| |
The scripts are complicated, unless you have a desire to learn, a good general understanding, and/or at least study them consistently. | |
| |
=== SCE Extensions === | |
| |
An SCE extension is a [[http://squashfs.sourceforge.net/|SquashFS]] file, which can compress data using multiple compression algorithms. | An SCE extension is a [[http://squashfs.sourceforge.net/|SquashFS]] file, which can compress data using multiple compression algorithms. |
These SCE extensions are mounted as [[https://en.wikipedia.org/wiki/Loop_device|loop-devices]] through loadsce (which just uses "mount -t squashfs -o loop..."), and located in the file-system at /tmp/tcloop/. | These SCE extensions are mounted as [[https://en.wikipedia.org/wiki/Loop_device|loop-devices]] through loadsce (which just uses "mount -t squashfs -o loop..."), and located in the file-system at /tmp/tcloop/. |
loadsce also loads all the dependencies of a package. | loadsce also loads all the dependencies of a package. |
| |
| **Helpful Links:** |
| The scripts uses grep and awk extensively, so you should [[http://tldp.org/LDP/abs/html/part4.html|read more]] about [[http://coewww.rutgers.edu/linux/lessons/lesson9/shell_script_tutorial.html|using them]]. |
| It also uses some more complex awk programs, so you should learn a bit about the [[http://www.grymoire.com/Unix/Awk.html|Awk language]]. |
| And of course you need to know bash scripting, so here is a [[http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html|guide]]. |
| And understand some pitfalls in Bash (some applicable to Ash): [[http://mywiki.wooledge.org/BashPitfalls|Bash Pitfalls]]. |
| |
**[[http://wiki.tinycorelinux.net/dcore:welcome|> Return to the dCore Wiki Welcome page]]** | **[[http://wiki.tinycorelinux.net/dcore:welcome|> Return to the dCore Wiki Welcome page]]** |