LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   use unionfs to build packages? (http://www.linuxquestions.org/questions/slackware-14/use-unionfs-to-build-packages-464063/)

uselpa 07-14-2006 03:13 PM

use unionfs to build packages?
 
I've just read this thread and I am wondering if unionfs might be an interesting and painless way to build packages. It would go like this:
  1. chroot into a unionfs environment
  2. install the soft as root
  3. get back to the normal environment
  4. for each file in the COW folder
    1. modified config file -> create a diff file for patch or a .new file
    2. new or changed file -> add to package
This way we don't rely on DESTDIR working 100% correctly.
What do you think?

Daga 07-14-2006 03:27 PM

Quote:

Originally Posted by uselpa
This way we don't rely on DESTDIR working 100% correctly.
What do you think?

The only time I have seen DESTDIR not work is when there was a problem (assumption made) with the install script bundled into the .tgz package... and I rely on this method for mastering my live-cd.

Using unionfs would lengthen the install times a bit, and I do like the way that you can get a file listing from the package with tools bundled in every linux distro out there (ie: tar -tzf package.tgz). You can even manually install by untarring to the desired directory and running the install script in a chroot.

My :twocents:


All times are GMT -5. The time now is 01:13 AM.