WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: sce-update fails with self-created extension  (Read 2299 times)

Offline sm8ps

  • Sr. Member
  • ****
  • Posts: 338
sce-update fails with self-created extension
« 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?
« Last Edit: December 23, 2015, 04:39:56 PM by sm8ps »

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: sce-update fails with self-created extension
« Reply #1 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. 
dCore user

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: sce-update fails with self-created extension
« Reply #2 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. 

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: sce-update fails with self-created extension
« Reply #3 on: December 24, 2015, 02:56:11 AM »
Could you please explain the last sentence?
dCore user

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: sce-update fails with self-created extension
« Reply #4 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.

Offline sm8ps

  • Sr. Member
  • ****
  • Posts: 338
Re: sce-update fails with self-created extension
« Reply #5 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?

Offline sm8ps

  • Sr. Member
  • ****
  • Posts: 338
Re: sce-update fails with self-created extension
« Reply #6 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

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: sce-update fails with self-created extension
« Reply #7 on: December 25, 2015, 05:35:11 PM »
Yeah, meaning that the extension is broken if there is no re-export.