Tiny Core Linux
General TC => General TC Talk => Topic started by: GNUser on April 02, 2026, 09:48:09 AM
-
Would one of the developers be able to please share the script that generates the .tree files on the official repo? While I could reimplement it myself, I'm trying to some save time and energy.
P.S. When submitting new extensions for the official repo, I sometimes also have to create and submit build dependencies. Being able to generate the .tree files of all of these new extensions on my local mirror--before submitting anything--would be useful to me. For example, tce-size, which depends on the .tree files, gives valuable information that can help me decide if an extension is too bloated to be worth using/submitting.
-
I found the script in one of my own posts ::)
https://forum.tinycorelinux.net/index.php/topic,26040.msg168124.html#msg168124
When I use the deptree script with the -d flag, the output exactly matches the .tree format.
Sorry for the noise.
-
We use a C program now, most of the recent changes has been in circular dependency monitoring, so it doesn’t fill up the disk space. But otherwise it doesn’t do much more that the shell script.
-
Hi Paul_123. May I please have a copy of the C program? I'd prefer it over the shell script.
-
sure,... I'll get it for you. next time I can login to the repo server.
-
Thank you :)
-
Sorry, its cpp. here you go. I also included the script that calls treegen.
-
Hi GNUser
I modified the attached gen_tcz_trees_17.x file so the path
on the server would not be exposed.
You'll need to modify this to match your system if you want to run it:
cd $REPO || exit 1
There are also lines that call out the kernel version for TC17.
-
Thank you very much, Paul_123. I'm in your debt.
Got it, Rich. Thanks.
-
I did a little test. Not surprisingly, the cpp version is over 500x faster than the shell script!
$ time sh -c "for i in labwc-config labwc-dev labwc-menu-generator labwc sfwbar foot appindicator-broker dino; do treegen $i $(uname -r) >$i.tcz.tree; done"
real 0m 0.03s
user 0m 0.01s
sys 0m 0.00s
$ time sh -c "for i in labwc-config labwc-dev labwc-menu-generator labwc sfwbar foot appindicator-broker dino; do deptree -d $i >$i.tcz.tree; done"
real 0m 16.11s
user 0m 11.03s
sys 0m 4.37s