Re: RPM dependency generator ignoring %{_libdir}/pkg/plugin.so

2016-11-10 Thread Tom Hughes

On 10/11/16 16:41, Richard W.M. Jones wrote:


I'm packaging up a program that puts plugins into

  %{_libdir}/pkg/plugin.so

Unfortunately rpmbuild doesn't seem to generate automatic dependencies
for these files (they are regular ELF files and I have checked that
they contain DT_NEEDED fields).

Any ideas on that?  There's a lot of documentation about how to
exclude files from automatic dep generation, but I want to include
these.


My guess would be that they're not marked as executable. Shared 
libraries don't really need to be executable but they always have been 
in Fedora and the dependency generator ignores ones which aren't.


Tom

--
Tom Hughes (t...@compton.nu)
http://compton.nu/
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org


Re: RPM dependency generator ignoring %{_libdir}/pkg/plugin.so

2016-11-10 Thread Stephen Gallagher
On 11/10/2016 11:44 AM, Tom Hughes wrote:
> On 10/11/16 16:41, Richard W.M. Jones wrote:
> 
>> I'm packaging up a program that puts plugins into
>>
>>   %{_libdir}/pkg/plugin.so
>>
>> Unfortunately rpmbuild doesn't seem to generate automatic dependencies
>> for these files (they are regular ELF files and I have checked that
>> they contain DT_NEEDED fields).
>>
>> Any ideas on that?  There's a lot of documentation about how to
>> exclude files from automatic dep generation, but I want to include
>> these.
> 
> My guess would be that they're not marked as executable. Shared libraries 
> don't
> really need to be executable but they always have been in Fedora and the
> dependency generator ignores ones which aren't.
> 

It's not just that. Packages that are outside the strict %{_libdir} path aren't
supposed to be automaticatlly generated, since they're assumed to be
package-internal and not exposed to the world.




signature.asc
Description: OpenPGP digital signature
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org


Re: RPM dependency generator ignoring %{_libdir}/pkg/plugin.so

2016-11-10 Thread Richard W.M. Jones
On Thu, Nov 10, 2016 at 04:44:53PM +, Tom Hughes wrote:
> On 10/11/16 16:41, Richard W.M. Jones wrote:
> 
> >I'm packaging up a program that puts plugins into
> >
> >  %{_libdir}/pkg/plugin.so
> >
> >Unfortunately rpmbuild doesn't seem to generate automatic dependencies
> >for these files (they are regular ELF files and I have checked that
> >they contain DT_NEEDED fields).
> >
> >Any ideas on that?  There's a lot of documentation about how to
> >exclude files from automatic dep generation, but I want to include
> >these.
> 
> My guess would be that they're not marked as executable. Shared
> libraries don't really need to be executable but they always have
> been in Fedora and the dependency generator ignores ones which
> aren't.

Very good catch!  Indeed they were not executable.  I'll see if
setting proper mode fixes things.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org


Re: RPM dependency generator ignoring %{_libdir}/pkg/plugin.so

2016-11-10 Thread Tom Hughes

On 10/11/16 16:47, Stephen Gallagher wrote:

On 11/10/2016 11:44 AM, Tom Hughes wrote:

On 10/11/16 16:41, Richard W.M. Jones wrote:


I'm packaging up a program that puts plugins into

  %{_libdir}/pkg/plugin.so

Unfortunately rpmbuild doesn't seem to generate automatic dependencies
for these files (they are regular ELF files and I have checked that
they contain DT_NEEDED fields).

Any ideas on that?  There's a lot of documentation about how to
exclude files from automatic dep generation, but I want to include
these.


My guess would be that they're not marked as executable. Shared libraries don't
really need to be executable but they always have been in Fedora and the
dependency generator ignores ones which aren't.


It's not just that. Packages that are outside the strict %{_libdir} path aren't
supposed to be automaticatlly generated, since they're assumed to be
package-internal and not exposed to the world.


I think this was requires generation, not provides, which should happen 
everywhere.


Tom

--
Tom Hughes (t...@compton.nu)
http://compton.nu/
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org


Re: RPM dependency generator ignoring %{_libdir}/pkg/plugin.so

2016-11-10 Thread Richard W.M. Jones
On Thu, Nov 10, 2016 at 04:48:59PM +, Richard W.M. Jones wrote:
> On Thu, Nov 10, 2016 at 04:44:53PM +, Tom Hughes wrote:
> > On 10/11/16 16:41, Richard W.M. Jones wrote:
> > 
> > >I'm packaging up a program that puts plugins into
> > >
> > >  %{_libdir}/pkg/plugin.so
> > >
> > >Unfortunately rpmbuild doesn't seem to generate automatic dependencies
> > >for these files (they are regular ELF files and I have checked that
> > >they contain DT_NEEDED fields).
> > >
> > >Any ideas on that?  There's a lot of documentation about how to
> > >exclude files from automatic dep generation, but I want to include
> > >these.
> > 
> > My guess would be that they're not marked as executable. Shared
> > libraries don't really need to be executable but they always have
> > been in Fedora and the dependency generator ignores ones which
> > aren't.
> 
> Very good catch!  Indeed they were not executable.  I'll see if
> setting proper mode fixes things.

Yes that's fixed it, thanks again.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org