Tiny Core Linux

dCore Import Debian Packages to Mountable SCE extensions => dCore X86 => Topic started by: sm8ps on December 23, 2015, 04:38:24 PM

Title: sce-update fails with self-created extension
Post by: sm8ps on December 23, 2015, 04:38:24 PM
I want to run sce-update on a package that depends on a self-created extension (locale_en-de, cf. http://wiki.tinycorelinux.net/dcore:locale_in_ub-dcore?&#creating_an_extension_for_the_locales). However, the process stops with the following error message: "locale_en-de does not have the needed md5sum file, please re-import it."

I created an appropriate file '/tce/sce/locale_en-de.sce.md5.txt' by applying ''md5sum'' to the sce-file but to no avail. Any more ideas?
Title: Re: sce-update fails with self-created extension
Post by: jls on December 23, 2015, 06:18:11 PM
Hi. I think the error is because the update scripts look for the md5 which are inside the sces. I don't see the sense of making your locale a dep of other extensions, since it doesn't save package redundancy. My locale is simply in the boot list. 
Title: Re: sce-update fails with self-created extension
Post by: Jason W on December 23, 2015, 08:04:15 PM
Yeah, JLS is right, it is an internal md5sum file that has md5s of the packages that SCE contains.  A self made SCE should not be part of a dep file, rather just added to sceboot.lst.  In fact dep and .lst files should never be made or edited by hand. 
Title: Re: sce-update fails with self-created extension
Post by: jls on December 24, 2015, 02:56:11 AM
Could you please explain the last sentence?
Title: Re: sce-update fails with self-created extension
Post by: Jason W on December 24, 2015, 10:19:29 AM
SCE.dep and SCE.lst files should not be altered or created by the user.  Once an entry is changed, the SCE is then broken.  Sce-import is where to create those files.
Title: Re: sce-update fails with self-created extension
Post by: sm8ps on December 25, 2015, 03:45:28 PM
You are right, JLS. I had defined that dependency in the very early days of my ventures into the miraculous world of dCore. :)

@Jason: when I try to re-import the extension without the dependency, sce-import checks for existing '.sce.lst'- and '.sce.dep'-files. If I want to re-define dependencies then I assume it is save to alter the respective file. That saves me the re-writing of the list-file.
I presume your warning was concerned with the altering of the files without re-importing the extension, right?
Title: Re: sce-update fails with self-created extension
Post by: sm8ps on December 25, 2015, 04:50:16 PM
PS: added not about usage of extension lists and dependencies to the wiki:
http://wiki.tinycorelinux.net/dcore:extension_strategies
Title: Re: sce-update fails with self-created extension
Post by: Jason W on December 25, 2015, 05:35:11 PM
Yeah, meaning that the extension is broken if there is no re-export.