Re: Questions about creating a development package
"Isak Savo" <[email protected]>
| Newsgroups | gmane.comp.autopackage.devel |
|---|---|
| Message-ID | <[email protected]> |
Sorry for the late reply, I've been on the road and haven't had access to a linux machine. 2007/10/16, Jan Niklas Hasse <[email protected]>: > I found a easy way: > > INTERFACE_VERSIONS=`pkg-config libpng --modversion` > > If there's an error pkg-config will write at stderr, otherwise it returns > the version number. You don't want this. You should not print any errors yourself - the autopackage framework will inform the user about missing packages. Either do 'pkg-config --exists libpng' first, or redirect stderr to /dev/null in your skeleton. > Still my package can't be installed as root. I attached the package, maybe > someone can try what's wrong. It took a fair amount of debugging, but I see the problem now: copyFile $src $dst requires $dst to be a filename. You have a directory name, which is why it fails. Change the second arg to be a filename (by adding jngl.hpp) or use copyFiles (notice plural form). Weird limitation of copyFile that I didn't even know of... -Isak --------------------------------------------------------------------- To unsubscribe, e-mail: autopackage-dev-unsubscribe-OfajU3CKLf1/[email protected] For additional commands, e-mail: autopackage-dev-help-OfajU3CKLf1/[email protected]