Re: Questions about creating a development package

"Isak Savo" <[email protected]>
Newsgroups gmane.comp.autopackage.devel
Message-ID <[email protected]>
2007/11/4, Jan Niklas Hasse <[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.

Cool, will review and commit to svn. Thanks

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

Yes, by specifying RootInstallOnly=true in your apspec [Meta] section.
 I'm curious though, why doesn't pkg-config find it? Autopackage
should update PKG_CONFIG_PATH accordingly, but it might require an
'exec bash' in terminal or restart of the terminal program.

-Isak

-Isak

---------------------------------------------------------------------
To unsubscribe, e-mail: autopackage-dev-unsubscribe-OfajU3CKLf1/[email protected]
For additional commands, e-mail: autopackage-dev-help-OfajU3CKLf1/[email protected]
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.