Bug 1750152 - dnf-4.2.8-1.fc30.noarch ignores dependencies
Summary: dnf-4.2.8-1.fc30.noarch ignores dependencies
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 30
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Marek Blaha
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-09-08 18:16 UTC by Harald Reindl
Modified: 2019-10-11 06:10 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-10-11 06:10:51 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Harald Reindl 2019-09-08 18:16:22 UTC Comment hidden (abuse)
Comment 1 Marek Blaha 2019-09-09 12:27:36 UTC
Hello,
from the bugreport it's not clear to me what exactly the problem is. I will probably need some additional information:
- could you specify more precisely how to reproduce the issue?
- can you post here the spec file of the meta package which doesn't work for you so I could try to reproduce the behaviour?
- what are the versions of Fedora, dnf and libdnf used?

Comment 2 Harald Reindl 2019-09-09 12:36:23 UTC
i maintain the metapackge below for years, there are for more Requires lines but that don't matter

* yesterday i added the line "Requires: php-xmlreader"
* updated the package
* moved it to my own https repo
* createrepo_c

well, on the destination machine "dnf" said "Nothing to do" 

ciopied the metapackge manually and tried to install with "rpm -Uvh" which complaiend as excepted that "php-xmlreader" is required but missing, after "dnf install xml-reader" dnf later decied with a simple "dnf upgrade" that there is a new version of the metapackage and pulled it

the job if dnf had been pull xml-reader when find the new metaüpakcage with the added dependency without manually fiddling around

--------------------------------------------------------

[root@testserver:~]$ cat /rpmbuild/SPECS/rhsoft-workstation.spec 
Summary:   meta-package for rhsoft workstation-packages
Name:      lounge-rhsoft-workstation
Version:   30.0
Release:   2%{?dist}
BuildArch: noarch
URL:       https://www.rhsoft.net/
License:   GPLv2

Obsoletes: at
Obsoletes: ed
Obsoletes: lsb
Obsoletes: redhat-lsb
Obsoletes: redhat-lsb-core
Obsoletes: redhat-lsb-cxx
Obsoletes: redhat-lsb-desktop
Obsoletes: redhat-lsb-languages
Obsoletes: redhat-lsb-printing
Obsoletes: redhat-lsb-submod-multimedia
Obsoletes: redhat-lsb-submod-security

Provides:  at
Provides:  ed
Provides:  lsb
Provides:  redhat-lsb
Provides:  redhat-lsb-core
Provides:  redhat-lsb-cxx
Provides:  redhat-lsb-desktop
Provides:  redhat-lsb-languages
Provides:  redhat-lsb-printing
Provides:  redhat-lsb-submod-multimedia
Provides:  redhat-lsb-submod-security

Requires:  php-imap
Requires:  php-pcntl
Requires:  php-pecl-geoip
Requires:  php-pecl-imagick
Requires:  php-pecl-mailparse
Requires:  php-pecl-vld
Requires:  php-pecl-xdebug
Requires:  php-phar
Requires:  php-posix
Requires:  php-readline
Requires:  php-tokenizer
Requires:  php-xmlreader
Requires:  php-xmlwriter
Requires:  sddm

%description
meta-package for rhsoft workstation-packages

%prep

%build

%install
mkdir -p %{buildroot}%{_bindir}
echo "#!/usr/bin/bash" > %{buildroot}%{_bindir}/lsb_release
chmod 755 %{buildroot}%{_bindir}/lsb_release

%files
/usr/bin/lsb_release

%changelog
* Wed Oct 18 2017 Reindl Harald <harry>
- add '/usr/bin/lsb_release' so that fucking google chrome installs

* Sun Apr 29 2012 Reindl Harald <harry>
- initial build

Comment 3 Marek Blaha 2019-09-10 08:25:04 UTC
Isn't it possible, that you simply forgot to increment version/release of the metapackage after adding a new requirement? The other possibility is, that dnf used cached repository metadata. If this is the case, you can either run # dnf makecache to force refreshing the cache, or add --refresh option to the dnf upgrade command.

See also https://dnf.readthedocs.io/en/latest/conf_ref.html#metadata-expire-label for setting the time interval, after which the repository metadata are considered expired.

Comment 4 Harald Reindl 2019-09-10 09:20:19 UTC Comment hidden (abuse)
Comment 5 Marek Blaha 2019-09-10 11:37:43 UTC
Well, you don't need to be rude. I just tried my best to understand and then reproduce your problem and even your last comment did not help much. If you are still able to reproduce the issue, can you please post here step by step instructions how to do it with all relevant data?

Comment 6 Harald Reindl 2019-09-10 12:06:51 UTC Comment hidden (abuse)
Comment 7 Harald Reindl 2019-09-10 13:52:39 UTC Comment hidden (abuse)
Comment 8 Marek Blaha 2019-09-19 07:07:38 UTC
What you are doing with the meta package (add a requirement, release a new version) is quite common task and generally DNF does not have any problem with it. Of course there might be a bug in the DNF which emerged in some specific circumstances. To find and resolve this bug I need more information, a reliable reproducer at the best.

Comment 9 Harald Reindl 2019-09-19 07:30:27 UTC
you have basically the spec file in comment 2

look at the abosoletes / provides to avoid "at" and "qt3" and again: if dnf would have useful outputs as yum did i likely would have been able to write a qualified bugreport


when it don't say anything but I know for sure it had to find a update for a package I built recently that's unhelpful for me and for you and that all to satisfy a user base which don't use a terminal application at all

Comment 10 Marek Blaha 2019-10-11 06:10:51 UTC
I tried to reproduce this but without any success and we cannot do much without the reproducer. For now I'm closing the bug as insufficient data. Please feel free to re-open the bug if there is any new information or the problem gets reproducible.


Note You need to log in before you can comment on or make changes to this bug.