Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extra provides statements are ineffective, swallowed into %description content #5

Closed
hartzell opened this issue May 25, 2015 · 0 comments

Comments

@hartzell
Copy link
Contributor

etc/perl.spec includes these three lines after the %description paragraph.

Provides: iov-%{sname}
Provides: %{sname}%{plv}(:WITH_ITHREADS)
Provides: %{sname}%{plv}(:WITH_PERLIO)

I tried to use one of these symbols in a Requires statement in another RPM I'm building and it didn't work. Some digging showed that they weren't getting included in rpm file, e.g the output of:

rpm -qp --provides repo/perl518-5.18.4-4.1432570286.el6.x86_64.rpm

did not include them.

However, they are included as the last three lines of the rpm's description, e.g. in the output of running:

rpm -qp --info repo/perl518-5.18.4-4.1432570286.el6.x86_64.rpm

It appears that the %description block swallows everything up until the next rpm section (e.g. %prep), or something like that.

I've placed them up after the Requires(postun): line and now they no longer appear in the %description section (phew) and have an effect.

Unfortunately, now I'm seeing a hard to reproduce bug in which rpath in incorrectly defined, resulting a failure to find libperl.so at runtime. I'll file another issue describing what I've narrowed down about that problem.

The command line that I'm running is

sudo env PERL5LIB=`pwd`/local.system/lib/perl5 PATH=`pwd`/local.system/bin:$PATH ./bin/rpmcpan --version 5.18.4 --prefix=/opt/perl518 -v -v -v --packager=username@mycompany.com
theory added a commit that referenced this issue May 26, 2015
So that %description doesn't swallow them up. Cloes #5.
@theory theory closed this as completed in 453fb6f May 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant