dCore Import Debian Packages to Mountable SCE extensions > dCore X86

sce-import can't customize sce

<< < (2/4) > >>

Jason W:
Ok, I understand.  Aare you speaking of a custom Index or Packages file that has the md5 and other info of the local debs?  In that case a -p option combined with the non-dependency option would be what I think you are looking for.  It should only be a few lines of code for a non-dep option.  If that sounds like what you need I can put up a release candidate.  If not, let me know the specifics.

Thanks  :-)

Jason W:
http://git.tinycorelinux.net/index.cgi?url=dCore-scripts.git/tree/usr/bin

is where the scripts are.  Line 228 in deb2sce is where the code change would be.  Something like changing:


--- Code: ---if [ -s /tmp/.targetfile ]; then
echo "Gathering dependency info.."
for I in `echo "$TARGET" && cat /tmp/.targetfile`; do
debGetDeps "$I" > /dev/null 2>&1
done &
/usr/bin/rotdash $!
else
echo "Gathering dependency info.."
debGetDeps "$TARGET" > /dev/null 2>&1 &
/usr/bin/rotdash $!
fi

--- End code ---

to


--- Code: ---if [ ! -f /tmp/.nodeps ]; then
    if [ -s /tmp/.targetfile ]; then
    echo "Gathering dependency info.."
            for I in `echo "$TARGET" && cat /tmp/.targetfile`; do
debGetDeps "$I" > /dev/null 2>&1
    done &
    /usr/bin/rotdash $!
    else
    echo "Gathering dependency info.."
    debGetDeps "$TARGET" > /dev/null 2>&1 &
    /usr/bin/rotdash $!
    fi
fi

--- End code ---

/tmp/.nodeps would be created by the nodeps flag.

dicorer:
what you told, gave me a nice idea, a custom Index! :)
So I hacked the Index file: that ~12Mb file, I run a simple regex replace, and removed all lines starting with "Depends: ".
That way I got rid of _ALL_ dependencies rightaway.
Then I run sce-import with -l and -p, and that did the trick, it built the new sce only with the 50 debs I said... plus 2 debs.

I said "plus 2", because still a new issue came out (maybe a bug?), somehow 2 more packages called "coreutils" and "crda" were always added to the list.
For my needs, "coreutils" is useless because bb already does that job (in dCore), and "crda" is some stuffs not related to my applications.

Also, yes I confirm, if I unplug the net, sce-import -p still asks for inet connection, even if all debs and Index files are already there offline (adding some kind of "offline" capability to this tool could be nice)

Jason W:
Ok, I will look into an offline capability.

dicorer:
I'm checking the git you pointed me to, can I ask a question?
why sce-import can't be run as root?
Actually, I already mod my dCore box, to run all as root (I don't need any security)
It's pretty uncomfortable every time, login as tc just to run sce-import, and then exit to root again...
So, I would like to remove that "checknotroot"...

Also, I'm checking out the possibility to add another new option, such as "no-frills".
So that I can remove already at pack time, all those infesting directories I love so much /usr/share/doc, /usr/share/info, /usr/share/man, /usr/share/bug... do you know any more of such directories to remove?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version