[jbosstools-issues] [JBoss JIRA] (JBDS-4257) rh-eclipse46-devstudio provides packages that are dependencies of rh-eclipse46

Lukáš Valach (JIRA) issues at jboss.org
Fri Jul 21 06:23:00 EDT 2017


    [ https://issues.jboss.org/browse/JBDS-4257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13438642#comment-13438642 ] 

Lukáš Valach commented on JBDS-4257:
------------------------------------

According to the documentation \[1\], when a package is built by RPM the list of provided packages is generated automatically by default. This behaviour can be disabled using tag "autoprov".

So I have added this line to devstudio.spec.template
{code}
# Disable automatic provision generation 
AutoProv: no
{code}

Then I build RPM and check what the RPM provides
{code}
rpm -qp --provides ./rh-eclipse47-devstudio-11.0-0.20170721.0905.el7.x86_64.rpm 
rh-eclipse47-devstudio = 11.0-0.20170721.0905.el7
rh-eclipse47-devstudio(x86-64) = 11.0-0.20170721.0905.el7
{code}

I tried to install rh-eclipse47 and I see that problem is resolved. Then I installed rh-eclipse47-devstudio and I don't see any problems.

Possible PR: https://github.com/jbdevstudio/jbdevstudio-product/pull/466

\[1\] http://ftp.rpm.org/max-rpm/s1-rpm-depend-auto-depend.html

> rh-eclipse46-devstudio provides packages that are dependencies of rh-eclipse46
> ------------------------------------------------------------------------------
>
>                 Key: JBDS-4257
>                 URL: https://issues.jboss.org/browse/JBDS-4257
>             Project: Red Hat JBoss Developer Studio (devstudio)
>          Issue Type: Bug
>          Components: build, rpm
>    Affects Versions: 10.3.0.AM2
>         Environment: RHEL7
>            Reporter: Lukáš Valach
>            Assignee: Nick Boldt
>             Fix For: 11.0.0.GA
>
>         Attachments: rh-eclipse46-devstudio_provides.txt, rh-eclipse46_provides.txt, yum_install_rh-eclipse46.png
>
>
> I noticed rh-eclipse46-devstudio is installed as dependenci when installing rh-eclipse46.  
> !yum_install_rh-eclipse46.png|thumbnail!
> [~vkadlcik] said that it is because rh-eclipse46-devstudio offers some package which rh-eclipse46 needs, so yum decides to use devstudio as library.
> He said that the best practice for end-user application like rh-eclipse46-devstudio is to have less amount of stuff in "rpm -q --provides". Rh-eclipse46 provides 4 packages, devstudio provides 539 packages.
> [^rh-eclipse46_provides.txt]
> [^rh-eclipse46-devstudio_provides.txt] 



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)



More information about the jbosstools-issues mailing list