VectorLinux

Cooking up the Treats => Distro development => Topic started by: Dweeberkitty on October 13, 2007, 09:40:05 am

Title: Packaging question (VL59)
Post by: Dweeberkitty on October 13, 2007, 09:40:05 am
Okay, this is probably a stupid question. But... I'm having trouble packing things on VL59. Here's the deal:

The programs configure fine and compile fine. However, when I run checkinstall -L, I get an error like this (from ilmbase):
Quote
chmod 644 /usr/lib/libHalf.a
chmod: changing permissions of `/usr/lib/libHalf.a': No such file or directory
make[3]: *** [install-libLTLIBRARIES] Error 1
make[3]: Leaving directory `/home/dweeberkitty/CinelerraStuff/ilmbase-1.0.0/Half'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/home/dweeberkitty/CinelerraStuff/ilmbase-1.0.0/Half'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/home/dweeberkitty/CinelerraStuff/ilmbase-1.0.0/Half'
make: *** [install-recursive] Error 1

****  Installation failed. Aborting package creation.

Cleaning up...OK

Bye.

It has trouble chmodding a file but it says that the file doesn't exist. This happens on every single program that I try to compile. Here's another one, from libiec61883:
Quote
chmod 644 /usr/local/lib/libiec61883.a
chmod: changing permissions of `/usr/local/lib/libiec61883.a': No such file or directory
make[2]: *** [install-libLTLIBRARIES] Error 1
make[2]: Leaving directory `/home/dweeberkitty/CinelerraStuff/libiec61883-1.1.0/src'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/dweeberkitty/CinelerraStuff/libiec61883-1.1.0/src'
make: *** [install-recursive] Error 1

****  Installation failed. Aborting package creation.

Cleaning up...OK

Bye.

I'm sure there's a simple solution. But this is bugging me. I can't get anything packaged. What's going on here? Thanks in advance!
Title: Re: Packaging question (VL59)
Post by: exeterdad on October 13, 2007, 09:57:56 am
Perhaps it has something to do with this?
http://www.asic-linux.com.mx/~izto/checkinstall/
I don't use checkinstall hardly at all so I couldn't tell ya.
Title: Re: Packaging question (VL59)
Post by: Dweeberkitty on October 13, 2007, 10:22:43 am
Thanks for the link. But it didn't work. I get the same error. BTW what do you use?
Title: Re: Packaging question (VL59)
Post by: uelsk8s on October 13, 2007, 10:26:00 am
it was reported here: http://www.vectorlinux.com/forum2/index.php?topic=4428.0
you ran "checkinstall -L --fstrans=no" ?
it works for me.
Title: Re: Packaging question (VL59)
Post by: exeterdad on October 13, 2007, 10:26:50 am
I write slackbuilds using requiredbuilder and makepkg.
Title: Re: Packaging question (VL59)
Post by: exeterdad on October 13, 2007, 10:30:58 am
Quote
it was reported here: http://www.vectorlinux.com/forum2/index.php?topic=4428.0
And here: http://www.vectorlinux.com/forum2/index.php?topic=3868.0
Title: Re: Packaging question (VL59)
Post by: Dweeberkitty on October 13, 2007, 10:52:09 am
it was reported here: http://www.vectorlinux.com/forum2/index.php?topic=4428.0
you ran "checkinstall -L --fstrans=no" ?
it works for me.


Yes I ran exactly that but I still got the same error.
Title: Re: Packaging question (VL59)
Post by: uelsk8s on October 13, 2007, 11:06:00 am
some packages you have to do a make install before running checkinstall.
I usually search google for  PKGNAME.slackbuild for the packages i build then just modify the slackbuild and use it.

Title: Re: Packaging question (VL59)
Post by: exeterdad on October 13, 2007, 11:48:02 am
some packages you have to do a make install before running checkinstall.
I usually search google for  PKGNAME.slackbuild for the packages i build then just modify the slackbuild and use it.



Yep!  Or you can search for PKGNAME.spec or src.rpm, and decipher the specfile.  It's a good source for writing summaries and descriptions also.
Title: Re: Packaging question (VL59)
Post by: Dweeberkitty on October 13, 2007, 01:43:43 pm
some packages you have to do a make install before running checkinstall.
I usually search google for  PKGNAME.slackbuild for the packages i build then just modify the slackbuild and use it.



Okay, I'll give that a try. Thanks!

Edit: Worked like a charm! I don't understand why exactly. Could someone explain why make install needs to be run sometimes before checkinstall? Why didn't I have to do this on VL5.8?
Title: Re: Packaging question (VL59)
Post by: Joe1962 on October 15, 2007, 02:19:51 am
Could someone explain why make install needs to be run sometimes before checkinstall? Why didn't I have to do this on VL5.8?
Can't quite say why, but I've had to do it for certain packages since forever (forever=VL4.0, lol, and yes, that includes 5.8 and 5.9).
Title: Re: Packaging question (VL59)
Post by: The Headacher on October 15, 2007, 07:00:09 am
Quote
Could someone explain why make install needs to be run sometimes before checkinstall?
Sometimes "make install" tries to do something to a file or directory it has installed/created. But if you use checkinstall, it runs 'make install' but intercepts these files, the file is never installed there, but put somewhere in /tmp. So when make install tries to make a change to that file/directory (like change it's permissions as was the case here) it is not found and "make install" errors out.

Quote
Why didn't I have to do this on VL5.8?
Good question....