WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Is Xorg-7.7-lib.tcz just an empty extension?  (Read 2229 times)

Offline rhermsen

  • Wiki Author
  • Full Member
  • *****
  • Posts: 109
Is Xorg-7.7-lib.tcz just an empty extension?
« on: September 22, 2022, 08:41:42 AM »
While looking for a reason 'Xorg-7.7-lib.tcz.list' is not available, discovered that this extension is just empty with only one directory.
Is this just a 'placeholder' extension to load dependencies?

Code: [Select]
$ sudo unsquashfs Xorg-7.7-lib.tcz
Parallel unsquashfs: Using 1 processor
0 inodes (0 blocks) to write

created 0 files
created 2 directories
created 0 symlinks
created 0 devices
created 0 fifos

Code: [Select]
$ cd squashfs-root/
$ tree
.
`-- usr

1 directory, 0 files

The list of dependencies is a bit long...
Code: [Select]
cat Xorg-7.7-lib.tcz.dep
libFS.tcz
libXaw.tcz
libXcomposite.tcz
libXcursor.tcz
libXdamage.tcz
libXfont2.tcz
libXft.tcz
libXinerama.tcz
libXrandr.tcz
libXres.tcz
libXss.tcz
libXtst.tcz
libXvmc.tcz
libXxf86dga.tcz
libXxf86vm.tcz
libxkbfile.tcz


Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11634
Re: Is Xorg-7.7-lib.tcz just an empty extension?
« Reply #1 on: September 22, 2022, 09:26:34 AM »
Hi rhermsen
It's called a  "Meta"  extension whose only purpose is to pull in other extensions.
If you look at  Xorg-7.7-lib.tcz.info  the  Description  line reads:
Code: [Select]
Description:    Meta-extension collecting the usual X libs
Xorg-7.7.tcz  is another meta extension as is  compiletc.tcz.
« Last Edit: September 22, 2022, 09:28:22 AM by Rich »

Offline rhermsen

  • Wiki Author
  • Full Member
  • *****
  • Posts: 109
Re: Is Xorg-7.7-lib.tcz just an empty extension?
« Reply #2 on: September 25, 2022, 10:47:14 AM »
Hi Rich,
Thanks for explaining. I was not aware of the term 'meta' extension.
I will also look at the other two you mentioned, I use them both.

Offline rhermsen

  • Wiki Author
  • Full Member
  • *****
  • Posts: 109
Re: Is Xorg-7.7-lib.tcz just an empty extension?
« Reply #3 on: October 15, 2022, 06:22:09 PM »
Hi Rich,

While looking into missing updates in the Wiki I came across the following page https://wiki.tinycorelinux.net/doku.php?id=wiki:creating_meta-extensions.

It does also mention
Quote
As a reminder, a submitted extension requires other than those '.tcz' and '.dep' files, the files '.list', '.md5.txt' and '.info' as well
Get from this that a .list file should also be available. Is that requirement changed?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11634
Re: Is Xorg-7.7-lib.tcz just an empty extension?
« Reply #4 on: October 15, 2022, 08:33:40 PM »
Hi rhermsen
... Get from this that a .list file should also be available. Is that requirement changed?
From the Wiki you linked to:
Quote
#- Create the '.tcz' file

{VERSIONS(nav⇒y,title⇒y,default⇒latest)}

    –(latest)—

Use an existing meta-extension such as compiletc.tcz. Or create an empty squashfs archive.


    –(before 3.3)—
    create an empty directory structure

    mkdir -p myext/usr/local/share/myext

    populate it (by creating/adding useful files):
    *readme file
    *

    echo "This is a meta extension" > myext/usr/local/share/myext/readme
List files were only required prior to TC3.3.

The  "latest"  versions of TC can work with an empty  .tcz  file. You can create
it by copying  compiletc.tcz:
Code: [Select]
cp compiletc.tcz ExtensionName.tcz

Offline rhermsen

  • Wiki Author
  • Full Member
  • *****
  • Posts: 109
Re: Is Xorg-7.7-lib.tcz just an empty extension?
« Reply #5 on: October 15, 2022, 09:07:06 PM »
Thanks.

I will have a look if I can come up with a usecase for a private repo.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11634
Re: Is Xorg-7.7-lib.tcz just an empty extension?
« Reply #6 on: October 15, 2022, 09:10:55 PM »
Hi rhermsen
... The  "latest"  versions of TC can work with an empty  .tcz  file. ...
Correction, the file should have a directory entry in it. An empty  /usr  will suffice.
That is what compiletc contains. Without that, attempting to run  submitqc  will
cause it to terminate with an error.