Summary: | ignores strict disttag deps when asked by APT | ||
---|---|---|---|
Product: | Sisyphus | Reporter: | Ivan Zakharyaschev <imz> |
Component: | rpm | Assignee: | placeholder <placeholder> |
Status: | CLOSED FIXED | QA Contact: | qa-sisyphus |
Severity: | normal | ||
Priority: | P3 | CC: | at, glebfm, imz, iv, ldv, placeholder, vseleznv, vt |
Version: | unstable | ||
Hardware: | all | ||
OS: | Linux |
Description
Ivan Zakharyaschev
2019-02-08 09:48:01 MSK
Here the initially installed example package (rpm) came from Sisyphus and had a disttag (as you can guess from the showpkg output). Then I replaced it with another one, also with disttag. And then I ran the last successful test. Let's test another situation: the initially installed example package (rpm) had no disttag. (Build it without --define 'disttag ....' in hasher.) [root@ovicaa ~]# apt-cache showpkg librpmbuild7 Package: librpmbuild7 Versions: 4.13.0.1-alt5(/var/lib/rpm/Packages) 4.13.0.1-alt5(/var/lib/apt/lists/_home_imz_hasher_repo_x86%5f64_base_pkglist.hasher) 4.13.0.1-alt5(/var/lib/apt/lists/_ALT_Sisyphus_x86%5f64_base_pkglist.classic) Reverse Depends: python-module-rpm,librpmbuild7 4.13.0.1-alt5 librpm-devel,librpmbuild7 4.13.0.1-alt5 rpmspec,librpmbuild7 4.13.0.1-alt5 rpmspec,librpmbuild7 4.13.0.1-alt5:uuu+22.33 python3-module-rpm,librpmbuild7 4.13.0.1-alt5:uuu+22.33 python-module-rpm,librpmbuild7 4.13.0.1-alt5:uuu+22.33 librpmbuild7-debuginfo,librpmbuild7 4.13.0.1-alt5:uuu+22.33 librpm-devel,librpmbuild7 4.13.0.1-alt5:uuu+22.33 i586-librpmbuild7.32bit,librpmbuild7 4.13.0.1-alt5:sisyphus+219346.60.4.1 rpmspec,librpmbuild7 4.13.0.1-alt5:sisyphus+219346.60.4.1 python3-module-rpm,librpmbuild7 4.13.0.1-alt5:sisyphus+219346.60.4.1 python-module-rpm,librpmbuild7 4.13.0.1-alt5:sisyphus+219346.60.4.1 librpm-devel,librpmbuild7 4.13.0.1-alt5:sisyphus+219346.60.4.1 Dependencies: 4.13.0.1-alt5 - libc.so.6(GLIBC_2.15)(64bit) (0 (null)) libcap.so.2()(64bit) (2 set:igZaxnO5jf) libmagic.so.1()(64bit) (2 set:jg7D3mxom31mc01) libpopt.so.0()(64bit) (2 set:jftck0pY4jRJWvaCunRMZrjSd) librpm7 (5 4.13.0.1-alt5) 4.13.0.1-alt5 - libc.so.6(GLIBC_2.15)(64bit) (0 (null)) libcap.so.2()(64bit) (2 set:igZaxnO5jf) libmagic.so.1()(64bit) (2 set:jg7D3mxom31mc01) libpopt.so.0()(64bit) (2 set:jftck0pY4jRJWvaCunRMZrjSd) librpm7 (5 4.13.0.1-alt5:uuu+22.33) 4.13.0.1-alt5 - libc.so.6(GLIBC_2.15)(64bit) (0 (null)) libcap.so.2()(64bit) (2 set:igZaxnO5jf) libmagic.so.1()(64bit) (2 set:jg7D3mxom31mc01) libpopt.so.0()(64bit) (2 set:jftck0pY4jRJWvaCunRMZrjSd) librpm7 (5 4.13.0.1-alt5:sisyphus+219346.60.4.1) Provides: 4.13.0.1-alt5 - librpmbuild7 librpmbuild.so.7()(64bit) 4.13.0.1-alt5 - librpmbuild7 librpmbuild.so.7()(64bit) 4.13.0.1-alt5 - librpmbuild7 librpmbuild.so.7()(64bit) Reverse Provides: librpmbuild7 4.13.0.1-alt5 librpmbuild7 4.13.0.1-alt5 librpmbuild7 4.13.0.1-alt5 We shall test the "apt-get install" command in this case, too. (In reply to comment #1) > Here the initially installed example package (rpm) came from Sisyphus and had a > disttag (as you can guess from the showpkg output). Then I replaced it with > another one, also with disttag. And then I ran the last successful test. > > Let's test another situation: the initially installed example package (rpm) had > no disttag. (Build it without --define 'disttag ....' in hasher.) > > [root@ovicaa ~]# apt-cache showpkg librpmbuild7 > Package: librpmbuild7 > Versions: > 4.13.0.1-alt5(/var/lib/rpm/Packages) > 4.13.0.1-alt5(/var/lib/apt/lists/_home_imz_hasher_repo_x86%5f64_base_pkglist.hasher) > 4.13.0.1-alt5(/var/lib/apt/lists/_ALT_Sisyphus_x86%5f64_base_pkglist.classic) > > Reverse Depends: > python-module-rpm,librpmbuild7 4.13.0.1-alt5 > librpm-devel,librpmbuild7 4.13.0.1-alt5 > rpmspec,librpmbuild7 4.13.0.1-alt5 > rpmspec,librpmbuild7 4.13.0.1-alt5:uuu+22.33 > python3-module-rpm,librpmbuild7 4.13.0.1-alt5:uuu+22.33 > python-module-rpm,librpmbuild7 4.13.0.1-alt5:uuu+22.33 > librpmbuild7-debuginfo,librpmbuild7 4.13.0.1-alt5:uuu+22.33 > librpm-devel,librpmbuild7 4.13.0.1-alt5:uuu+22.33 > i586-librpmbuild7.32bit,librpmbuild7 4.13.0.1-alt5:sisyphus+219346.60.4.1 > rpmspec,librpmbuild7 4.13.0.1-alt5:sisyphus+219346.60.4.1 > python3-module-rpm,librpmbuild7 4.13.0.1-alt5:sisyphus+219346.60.4.1 > python-module-rpm,librpmbuild7 4.13.0.1-alt5:sisyphus+219346.60.4.1 > librpm-devel,librpmbuild7 4.13.0.1-alt5:sisyphus+219346.60.4.1 > Dependencies: > 4.13.0.1-alt5 - libc.so.6(GLIBC_2.15)(64bit) (0 (null)) libcap.so.2()(64bit) (2 > set:igZaxnO5jf) libmagic.so.1()(64bit) (2 set:jg7D3mxom31mc01) > libpopt.so.0()(64bit) (2 set:jftck0pY4jRJWvaCunRMZrjSd) librpm7 (5 > 4.13.0.1-alt5) > 4.13.0.1-alt5 - libc.so.6(GLIBC_2.15)(64bit) (0 (null)) libcap.so.2()(64bit) (2 > set:igZaxnO5jf) libmagic.so.1()(64bit) (2 set:jg7D3mxom31mc01) > libpopt.so.0()(64bit) (2 set:jftck0pY4jRJWvaCunRMZrjSd) librpm7 (5 > 4.13.0.1-alt5:uuu+22.33) > 4.13.0.1-alt5 - libc.so.6(GLIBC_2.15)(64bit) (0 (null)) libcap.so.2()(64bit) (2 > set:igZaxnO5jf) libmagic.so.1()(64bit) (2 set:jg7D3mxom31mc01) > libpopt.so.0()(64bit) (2 set:jftck0pY4jRJWvaCunRMZrjSd) librpm7 (5 > 4.13.0.1-alt5:sisyphus+219346.60.4.1) > Provides: > 4.13.0.1-alt5 - librpmbuild7 librpmbuild.so.7()(64bit) > 4.13.0.1-alt5 - librpmbuild7 librpmbuild.so.7()(64bit) > 4.13.0.1-alt5 - librpmbuild7 librpmbuild.so.7()(64bit) > Reverse Provides: > librpmbuild7 4.13.0.1-alt5 > librpmbuild7 4.13.0.1-alt5 > librpmbuild7 4.13.0.1-alt5 > > We shall test the "apt-get install" command in this case, too. In this case, the result is a bit different (but it's OK, the best we can get, because the inter-subpackage deps of the initially installed package are not strict enough). At least, the transaction made up by APT doesn't fail when it is processed by RPM: [root@ovicaa ~]# apt-get install librpmbuild7 Reading Package Lists... Done Building Dependency Tree... Done The following extra packages will be installed: librpm7 The following packages will be upgraded librpm7 librpmbuild7 2 upgraded, 0 newly installed, 0 removed and 2168 not upgraded. Need to get 0B/492kB of archives. After unpacking 0B of additional disk space will be used. Do you want to continue? [Y/n] === apt-printchanges === ==librpm7 librpmbuild7== * Tue Jan 15 2019 Vladimir D. Seleznev <vseleznv@altlinux.org> 4.13.0.1-alt5 - implemented DistTag support when comparing package versions; - fixed handling of ancient packages (closes: #33710); - rpmquery: disabled glob by default (thx Dmitry V. Levin; closes: #35828); - fixed manifest comments handling (thx Dmitry V. Levin; closes: #35125); - dirty hacked to make upgrade packages between branches possible; - rpmpopt: made query info command display DistTag; - spec: removed excess %EVR in intersubpackages dependencies. Committing changes... Preparing... #################################################################################################### [100%] Updating / installing... 1: librpm7-4.13.0.1-alt5 #################################################################################################### [ 25%] 2: librpmbuild7-4.13.0.1-alt5 #################################################################################################### [ 50%] Cleaning up / removing... 3: librpmbuild7-4.13.0.1-alt5 #################################################################################################### [ 75%] 4: librpm7-4.13.0.1-alt5 #################################################################################################### [100%] Done. [root@ovicaa ~]# I suppose it was fixed in 4.13.0.1-alt6. |