* [gentoo-catalyst] DEPEND/RDEPEND vs. binary packages
@ 2005-06-22 1:35 Paul Smith
2005-06-22 13:34 ` Chris Gianelloni
0 siblings, 1 reply; 4+ messages in thread
From: Paul Smith @ 2005-06-22 1:35 UTC (permalink / raw
To: gentoo-catalyst
This may well have nothing at all to do with Catalyst, but perhaps some
of you have run into this:
Apparently, when you are installing a binary version of a package, the
DEPEND packages are not installed. But, some parts of the ebuild are
still run, such as pkg_setup(). Is this true? In Catalyst, as you
know, the package is only built from source the first time and
thereafter the binary package is installed; I've run into various
packages which are not handling this properly.
As two examples: one package does an "inherit webapp", and then in
livecd-stage1, the webapp.eclass webapp_pkg_setup() function tries to
source ${ETC_CONFIG}, which is /etc/vhosts/webapp-config. But, of
course, the webapp-config package is not installed when installing
binary packages, because webapp.eclass only adds it to the DEPEND list.
Another is the freeradius package which links with a shared library from
the libtool package (libltdl.so), but has no dependency on it and so
it's not installed during binary package setup. At runtime, the daemon
fails due to the missing shared library.
How do you deal with problems like this? Are these bugs in the ebuild
that should be filed against the package in question? Or...?
--
-------------------------------------------------------------------------------
Paul D. Smith <psmith@nortel.com> HASMAT: HA Software Mthds & Tools
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist
-------------------------------------------------------------------------------
These are my opinions---Nortel Networks takes no responsibility for them.
--
gentoo-catalyst@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-catalyst] DEPEND/RDEPEND vs. binary packages
2005-06-22 1:35 [gentoo-catalyst] DEPEND/RDEPEND vs. binary packages Paul Smith
@ 2005-06-22 13:34 ` Chris Gianelloni
2005-06-22 13:51 ` Paul Smith
0 siblings, 1 reply; 4+ messages in thread
From: Chris Gianelloni @ 2005-06-22 13:34 UTC (permalink / raw
To: gentoo-catalyst
[-- Attachment #1: Type: text/plain, Size: 1812 bytes --]
On Tue, 2005-06-21 at 21:35 -0400, Paul Smith wrote:
> Apparently, when you are installing a binary version of a package, the
> DEPEND packages are not installed. But, some parts of the ebuild are
> still run, such as pkg_setup(). Is this true? In Catalyst, as you
> know, the package is only built from source the first time and
> thereafter the binary package is installed; I've run into various
> packages which are not handling this properly.
This is correct. DEPEND is for build-time dependencies, and RDEPEND is
for run-time dependencies.
> As two examples: one package does an "inherit webapp", and then in
> livecd-stage1, the webapp.eclass webapp_pkg_setup() function tries to
> source ${ETC_CONFIG}, which is /etc/vhosts/webapp-config. But, of
> course, the webapp-config package is not installed when installing
> binary packages, because webapp.eclass only adds it to the DEPEND list.
This is a bug in the package. It requires webapp-config to be in *both*
DEPEND and RDEPEND.
> Another is the freeradius package which links with a shared library from
> the libtool package (libltdl.so), but has no dependency on it and so
> it's not installed during binary package setup. At runtime, the daemon
> fails due to the missing shared library.
File a bug.
> How do you deal with problems like this? Are these bugs in the ebuild
> that should be filed against the package in question? Or...?
Yes, they are bugs.
Welcome to QA. Building a CD via catalyst is probably the best QA
Gentoo has, simply because we do things that a lot of developers don't
consider. When you come across a bug such as these, definitely file a
bug against the package.
--
Chris Gianelloni
Release Engineering - Strategic Lead/QA Manager
Games - Developer
Gentoo Linux
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-catalyst] DEPEND/RDEPEND vs. binary packages
2005-06-22 13:34 ` Chris Gianelloni
@ 2005-06-22 13:51 ` Paul Smith
2005-06-22 14:09 ` Chris Gianelloni
0 siblings, 1 reply; 4+ messages in thread
From: Paul Smith @ 2005-06-22 13:51 UTC (permalink / raw
To: gentoo-catalyst
%% Chris Gianelloni <wolf31o2@gentoo.org> writes:
>> As two examples: one package does an "inherit webapp", and then in
>> livecd-stage1, the webapp.eclass webapp_pkg_setup() function tries to
>> source ${ETC_CONFIG}, which is /etc/vhosts/webapp-config. But, of
>> course, the webapp-config package is not installed when installing
>> binary packages, because webapp.eclass only adds it to the DEPEND list.
cg> This is a bug in the package. It requires webapp-config to be in *both*
cg> DEPEND and RDEPEND.
But, then, isn't this really a bug in the webapp.eclass? The DEPEND is
updated there so shouldn't the RDEPEND be updated there as well?
I don't know where to file eclass bugs, though...?
--
-------------------------------------------------------------------------------
Paul D. Smith <psmith@nortel.com> HASMAT--HA Software Mthds & Tools
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist
-------------------------------------------------------------------------------
These are my opinions---Nortel Networks takes no responsibility for them.
--
gentoo-catalyst@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-catalyst] DEPEND/RDEPEND vs. binary packages
2005-06-22 13:51 ` Paul Smith
@ 2005-06-22 14:09 ` Chris Gianelloni
0 siblings, 0 replies; 4+ messages in thread
From: Chris Gianelloni @ 2005-06-22 14:09 UTC (permalink / raw
To: gentoo-catalyst
[-- Attachment #1: Type: text/plain, Size: 1233 bytes --]
On Wed, 2005-06-22 at 09:51 -0400, Paul Smith wrote:
> %% Chris Gianelloni <wolf31o2@gentoo.org> writes:
>
> >> As two examples: one package does an "inherit webapp", and then in
> >> livecd-stage1, the webapp.eclass webapp_pkg_setup() function tries to
> >> source ${ETC_CONFIG}, which is /etc/vhosts/webapp-config. But, of
> >> course, the webapp-config package is not installed when installing
> >> binary packages, because webapp.eclass only adds it to the DEPEND list.
>
> cg> This is a bug in the package. It requires webapp-config to be in *both*
> cg> DEPEND and RDEPEND.
>
> But, then, isn't this really a bug in the webapp.eclass? The DEPEND is
> updated there so shouldn't the RDEPEND be updated there as well?
Probably. I didn't actually look at the eclass/package. I was just
making a general observation.
> I don't know where to file eclass bugs, though...?
Same place as ebuild bugs, http://bugs.gentoo.org
If you don't know where to assign it, don't worry about it and let
bug-wranglers take care of it. I can tell you that it'll be the webapp
herd, though.
--
Chris Gianelloni
Release Engineering - Strategic Lead/QA Manager
Games - Developer
Gentoo Linux
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-06-22 14:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-22 1:35 [gentoo-catalyst] DEPEND/RDEPEND vs. binary packages Paul Smith
2005-06-22 13:34 ` Chris Gianelloni
2005-06-22 13:51 ` Paul Smith
2005-06-22 14:09 ` Chris Gianelloni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox