Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: sanji on October 26, 2015, 08:55:45 AM

Title: extension building
Post by: sanji on October 26, 2015, 08:55:45 AM
Hi,
Just playin' with TC, building personal extensions.
So far so good. but today I'm trying to build Fs-Uae from sources.
Everything went smooth, but at the end of building, a fs-uae.dat file was generated.
When I built the extension, this .dat file was not included in the generated tcz file..
Should I create another extension only for this file (maybe a script)? Or are there
other ways to accomplish this?

thank you

Sanji
 
Title: Re: extension building
Post by: Juanito on October 26, 2015, 09:37:56 AM
You don't say how you built the tcz, but assuming you used the destdir method, maybe this did not copy fs-uae.dat and you need to do it manually?
Title: Re: extension building
Post by: sanji on October 26, 2015, 09:48:08 AM
Hi Juanito.
Sorry..I posted in the wrong subforum :-[
I used the Destdir method, following corebook.
..and as you wrote, I need to do it manually...

Sanji
Title: Re: extension building
Post by: Juanito on October 26, 2015, 10:25:54 AM
That's one of the "gotchas" of the destdir method, you also won't necessarily know about the potential need to rebuild an icon/imodule/pixbuf cache, recompile schemas, add mime types, etc.
Title: Re: extension building
Post by: sanji on October 27, 2015, 08:46:40 AM
So...I assume there are other (better) ways to create an extension other than DESTDIR method...which ones?
Title: Re: extension building
Post by: Juanito on October 27, 2015, 08:59:36 AM
I wouldn't say they're better, just different  :)

You can also do this:
Code: [Select]
$ touch mymarker
$ sudo make install
$ sudo find / -not -type 'd' -cnewer mymarker | grep -v "\/proc\/" | grep -v "^\/sys\/" | tee files
[edit files]
$ sudo tar -T files --numeric-owner -zcvf extension.tar.gz

Then copy the tarball somewhere conveniant, un-tar it, edit and make your tcz