Discussion:
[Sisuite-devel] dependency problem?
Bernard Li
2007-02-27 05:41:19 UTC
Permalink
Hi Andrew:

Regarding your post to sisuite-users:

http://www.mail-archive.com/sisuite-users%40lists.sourceforge.net/msg03783.html

The issue is that perl-XML-Simple requires either perl-XML-SAX or
perl-XML-Parser. With RPM, it is not possible to specify an "or"
dependency, therefore I guess the packager did not put in any
dependency for perl-XML-Simple and leave it as an exercise to the user
to figure this out.

However, for SystemImager packaging, we could potentially force the
user to use say perl-XML-Parser, and hardcode that dependency in the
RPM spec file.

We also use perl-XML-Parser to fulfill this dependency in the OSCAR project.

What do other developers think?

Cheers,

Bernard
Andrea Righi
2007-02-28 17:27:56 UTC
Permalink
Post by Bernard Li
http://www.mail-archive.com/sisuite-users%40lists.sourceforge.net/msg03783.html
The issue is that perl-XML-Simple requires either perl-XML-SAX or
perl-XML-Parser. With RPM, it is not possible to specify an "or"
dependency, therefore I guess the packager did not put in any
dependency for perl-XML-Simple and leave it as an exercise to the user
to figure this out.
However, for SystemImager packaging, we could potentially force the
user to use say perl-XML-Parser, and hardcode that dependency in the
RPM spec file.
We also use perl-XML-Parser to fulfill this dependency in the OSCAR project.
What do other developers think?
It seems to be fixed at least in 2.14-2:

# rpm -q perl-XML-Simple
perl-XML-Simple-2.14-2
# rpm -qR perl-XML-Simple
expat
perl-XML-Parser
perl = 5.8.7
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(VersionedDependencies) <= 3.0.3-1
rpmlib(PayloadIsBzip2) <= 3.0.5-1

Anyway I don't see any problem to force the option also for the
systemimager-server package (it should be enough).

Can you add this?

-Andrea
Bernard Li
2007-03-01 05:43:16 UTC
Permalink
Actually, perl-XML-Parser is a perl-XML-Simple dependency. I think an
alternative solution is simply to force users to use perl(XML::Simple)
= 2.14 -- this case the dependency is taken care of upstream.
I think most recent distributions have version 2.14 available to them.

What do you think?

Cheers,

Bernard
Post by Bernard Li
http://www.mail-archive.com/sisuite-users%40lists.sourceforge.net/msg03783.html
The issue is that perl-XML-Simple requires either perl-XML-SAX or
perl-XML-Parser. With RPM, it is not possible to specify an "or"
dependency, therefore I guess the packager did not put in any
dependency for perl-XML-Simple and leave it as an exercise to the user
to figure this out.
However, for SystemImager packaging, we could potentially force the
user to use say perl-XML-Parser, and hardcode that dependency in the
RPM spec file.
We also use perl-XML-Parser to fulfill this dependency in the OSCAR project.
What do other developers think?
# rpm -q perl-XML-Simple
perl-XML-Simple-2.14-2
# rpm -qR perl-XML-Simple
expat
perl-XML-Parser
perl = 5.8.7
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(VersionedDependencies) <= 3.0.3-1
rpmlib(PayloadIsBzip2) <= 3.0.5-1
Anyway I don't see any problem to force the option also for the
systemimager-server package (it should be enough).
Can you add this?
-Andrea
Andrea Righi
2007-03-01 09:39:31 UTC
Permalink
Post by Bernard Li
Actually, perl-XML-Parser is a perl-XML-Simple dependency. I think an
alternative solution is simply to force users to use perl(XML::Simple)
= 2.14 -- this case the dependency is taken care of upstream.
I think most recent distributions have version 2.14 available to them.
What do you think?
ok, sounds good.

-Andrea
Bernard Li
2007-03-01 09:51:41 UTC
Permalink
Done, checked into trunk.

I guess I should merge it to branch 3.8.x?

Cheers,

Bernard
Post by Andrea Righi
Post by Bernard Li
Actually, perl-XML-Parser is a perl-XML-Simple dependency. I think an
alternative solution is simply to force users to use perl(XML::Simple)
= 2.14 -- this case the dependency is taken care of upstream.
I think most recent distributions have version 2.14 available to them.
What do you think?
ok, sounds good.
-Andrea
Andrea Righi
2007-03-01 10:36:12 UTC
Permalink
Post by Bernard Li
Done, checked into trunk.
I guess I should merge it to branch 3.8.x?
Perfect! do it...

-Andrea
Bernard Li
2007-03-02 07:23:38 UTC
Permalink
Done...
Post by Andrea Righi
Post by Bernard Li
Done, checked into trunk.
I guess I should merge it to branch 3.8.x?
Perfect! do it...
-Andrea
Continue reading on narkive:
Loading...