Re: Questions about creating a development package

"Jan Niklas Hasse" <[email protected]>
Newsgroups gmane.comp.autopackage.devel
Message-ID <[email protected]>
>
>
> 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.


Okay, i did 2> /dev/null and attached the new versions.

> 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...


Thanks, that works!

Is it possible to force the User to install as root? Because my package must
be installed as root, otherwise pkg-config doesn't find the .pc file.

Jan-Nik

---------------------------------------------------------------------
To unsubscribe, e-mail: autopackage-dev-unsubscribe-OfajU3CKLf1/[email protected]
For additional commands, e-mail: autopackage-dev-help-OfajU3CKLf1/[email protected]
skeleton.1 (application/octet-stream, 296 B) - not displayed
skeleton.1 (application/octet-stream, 247 B) - not displayed
skeleton.1 (application/octet-stream, 259 B) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.