On Sat, Sep 22, 2018 at 01:28:07PM +0100, Edd Barrett wrote:
> On Thu, Sep 20, 2018 at 01:49:00PM +0200, Sebastien Marie wrote:
> > During my package upgrade process, I saw
> > "texlive_texmf-full-2017p1 has too many dependencies: 
> > texlive_mktexlsr-2017p0" 
> 
> I see this too, but I'm unsure why.
> 

I tried to duplicate my /var/db/pkg, running pkg_check with PKG_DBDIR,
and comparing the directories to see what pkg_check did as correction.

in the output:
- pkg.orig/ is the source pkgdb (post upgrade)
- pkg.1/ is the corrected pkgdb

$ diff -ru pkg.orig pkg.1
diff -ru pkg.orig/texlive_mktexlsr-2017p0/+REQUIRED_BY 
pkg.1/texlive_mktexlsr-2017p0/+REQUIRED_BY
--- pkg.orig/texlive_mktexlsr-2017p0/+REQUIRED_BY       Sat Sep 22 14:50:15 2018
+++ pkg.1/texlive_mktexlsr-2017p0/+REQUIRED_BY  Sat Sep 22 14:54:12 2018
@@ -1,3 +1,2 @@
 texlive_texmf-buildset-2017p1
-texlive_texmf-full-2017p1
 texlive_base-2017p2
diff -ru pkg.orig/texlive_texmf-full-2017p1/+REQUIRING 
pkg.1/texlive_texmf-full-2017p1/+REQUIRING
--- pkg.orig/texlive_texmf-full-2017p1/+REQUIRING       Sat Sep 22 14:50:35 2018
+++ pkg.1/texlive_texmf-full-2017p1/+REQUIRING  Sat Sep 22 14:54:11 2018
@@ -1,3 +1,2 @@
-texlive_texmf-minimal-2017p1
 python-2.7.15p0
-texlive_mktexlsr-2017p0
+texlive_texmf-minimal-2017p1


It means:
- texlive_texmf-full-2017p1: remove texlive_mktexlsr-2017p0 from depends
- texlive_mktexlsr-2017p0: remove texlive_texmf-full-2017p1 from reverse-depends

It makes texlive_texmf-full-2017p1 to have correct dependencies
according to its +CONTENTS (only lang/python/2.7,-main and
print/texlive/texmf,-main as @depend). So a problem was really present
and pkg_check corrects it.

But it doesn't say why the problem was here.


Next, going back in time with backups, I extracted my /var/db/pkg
directory as it was before the upgrade. It is pkg.pre-orig/ in the
output.


Considering only texlive_texmf-full-2017p1 and texlive_mktexlsr-2017p0:

diff -ru pkg.pre-orig/texlive_texmf-full-2017p1/+REQUIRING 
pkg.orig/texlive_texmf-full-2017p1/+REQUIRING
--- pkg.pre-orig/texlive_texmf-full-2017p1/+REQUIRING   Sun Aug 19 07:22:43 2018
+++ pkg.orig/texlive_texmf-full-2017p1/+REQUIRING       Sat Sep 22 14:50:35 2018
@@ -1,2 +1,3 @@
 texlive_texmf-minimal-2017p1
-python-2.7.15
+python-2.7.15p0
+texlive_mktexlsr-2017p0

diff -ru pkg.pre-orig/texlive_mktexlsr-2017p0/+REQUIRED_BY 
pkg.orig/texlive_mktexlsr-2017p0/+REQUIRED_BY
--- pkg.pre-orig/texlive_mktexlsr-2017p0/+REQUIRED_BY   Fri Sep 14 15:34:02 2018
+++ pkg.orig/texlive_mktexlsr-2017p0/+REQUIRED_BY       Sat Sep 22 14:50:15 2018
@@ -1,2 +1,3 @@
 texlive_texmf-buildset-2017p1
+texlive_texmf-full-2017p1
 texlive_base-2017p2


So, before the update, the dependencies was right. And after running
`pkg_add -u' something occured, and pkg_add added an unexpected
dependency.

-- 
Sebastien Marie

Reply via email to