WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: sce-import doesn't ask for deps even I have DEPS=TRUE in sceconfig  (Read 1881 times)

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Hi
Code: [Select]
jls@box:~$ cat /etc/sysconfig/sceconfig
# Use KEEPDOC=TRUE to keep /usr/share/doc and /usr/share/man
# directories in sce's. Useful for the man command form the
# man-db package.
KEEPDOC=FALSE

# Use RAM=TRUE to use RAM to unpack the contents of packages used
# when making an SCE.  Particularly useful for flash devices.
RAM=TRUE

# Use DEPS=TRUE to make use of chosen existing SCEs as dependencies
# of the imported one.
DEPS=TRUE

# Use SIZE=TRUE for the displaying of the sizes of needed RAM, HD
# space and download when importing.
SIZE=FALSE

# Use UPDATE=TRUE to get updated Packages files from main and extra repos
# on each invocation of importsce.  Default and overrides the PRESERVEDEBINXMODE
 option.
UPDATE=TRUE

# Keep .lst and .dep files of SCEs removed by removesce.  Useful for
# future re-importing.
KEEPLIST=FALSE

# Below is for the non-interactive use of importsce.  If package name exists,
# then no further action is needed by the user for a complete import.
NONINTERACTIVE=TRUE

# For not re-syncing new Packages files of the main or other repos.
# For better performance.
PRESERVEDEBINXMODE=FALSE

VIEWPKGS=FALSE
jls@box:~$ sce-import -p advancecomp
Using the -d option.
Using the -r option.
Using the -n option.
Using the -p option.


Importing advancecomp.


Using Package Index: /etc/sysconfig/tcedir/import/debinx/ubuntu_trusty_main_i386_Packages

Using Package Index: /etc/sysconfig/tcedir/import/debinx/ubuntu_trusty_security_i386_Packages

Using ubuntu Mirror: http://giano.com.dist.unige.it/ubuntu

Using ubuntu Security Mirror: http://giano.com.dist.unige.it/ubuntu

advancecomp is a standard ubuntu trusty package.
Gathering dependency info..

Merging zlib1g
Merging Tiny Core custom start script for gcc-4.8-base: gcc-4.8-base.deb2sce
Merging gcc-4.8-base
Merging libstdc++6
Merging gcc-4.9-base
Merging libgcc1
Merging libc6
Merging advancecomp
Parallel mksquashfs: Using 2 processors
Creating 4.0 filesystem on /etc/sysconfig/tcedir/sce/advancecomp.sce, block size 4096.
[=============================================================\] 2866/2866 100%
Exportable Squashfs 4.0 filesystem, gzip compressed, data block size 4096
compressed data, compressed metadata, compressed fragments, no xattrs
duplicates are removed
Filesystem size 5444.88 Kbytes (5.32 Mbytes)
50.86% of uncompressed filesystem size (10705.76 Kbytes)
Inode table size 9260 bytes (9.04 Kbytes)
40.32% of uncompressed inode table size (22964 bytes)
Directory table size 3441 bytes (3.36 Kbytes)
48.43% of uncompressed directory table size (7105 bytes)
Number of duplicate files found 1
Number of inodes 355
Number of files 302
Number of fragments 2
Number of symbolic links  25
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 28
Number of ids (unique uids + gids) 2
Number of uids 1
root (0)
Number of gids 2
root (0)
staff (50)
Done.
jls@box:~$

same with -pd
« Last Edit: December 13, 2015, 01:44:35 PM by jls_legalize »
dCore user

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: sce-import doesn't ask for deps even I have DEPS=TRUE in sceconfig
« Reply #1 on: December 13, 2015, 02:54:41 PM »
Ok, I will look into it.

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: sce-import doesn't ask for deps even I have DEPS=TRUE in sceconfig
« Reply #2 on: December 16, 2015, 06:21:54 PM »
With DEPS=TRUE at the beginning of /etc/sysconfig/sceconfig and issuing "sce-import advancecomp" I don't see this issue, a menu of SCE deps to choose from appears.  There is no advancecomp.sce* in my SCE dir.

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: sce-import doesn't ask for deps even I have DEPS=TRUE in sceconfig
« Reply #3 on: December 17, 2015, 12:59:01 AM »
Is it maybe the non interactive mode?
dCore user

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: sce-import doesn't ask for deps even I have DEPS=TRUE in sceconfig
« Reply #4 on: December 17, 2015, 09:51:33 AM »
You're right.   But with non-interactive mode I remember had by design only let it use an existing .dep file if it was found.

If DEPS=TRUE, then if no .dep is found we can then have the select menu pop up.  But then it is not really non-interactive, but if there is not enough space and the -s option is used it bypasses non-interactive also.  One of the switches has to be put in lesser priority then.    Since if the -d or DEPS=TRUE option is used, one expects to use deps regardless of other switches selected.

I will make the menu pop up in non-interactive mode if no existing .dep file is found.

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: sce-import doesn't ask for deps even I have DEPS=TRUE in sceconfig
« Reply #5 on: December 17, 2015, 01:21:02 PM »
Fixed in the latest release candidate.

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: sce-import doesn't ask for deps even I have DEPS=TRUE in sceconfig
« Reply #6 on: December 18, 2015, 08:15:46 PM »
Here are my thoughts on the DEP option.  No one wants to have every SCE they import depend on something, so no real need to have it in sceconfig.  Having it as we do now makes "sce-update -an" not work as expected and stop at a menu to select deps for every SCE that has no dep file.  Which is against expected behavior.  I can either impose the -z option of ignoring sceconfig and select a set of options I feel should be default for sce-update -an, or I can remove the DEP field from sceconfig.  And there will be folks who wish to use sceconfig during sce-import when called by sce-update with their own optoins to complete without needing interaction - size, ram, etc..
 
To me, there is no need for DEP in sceconfig as it will be used on occasion by the command line when wanting to change or add a .dep file of an SCE.  This would be the best and least intrusive solution.

I will wait for feedback before making this reverting to the previous state and removing the DEP option from sceconfig. 
« Last Edit: December 18, 2015, 09:19:06 PM by Jason W »

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: sce-import doesn't ask for deps even I have DEPS=TRUE in sceconfig
« Reply #7 on: December 19, 2015, 09:24:53 AM »
Reverted in latest RC as there was no objection.