rebuild-detector: Hook bug?

With the release 4.1.0 I have a message when hook is running:

(3/5) Checking which packages need to be rebuilt
stat: cannot stat '/proc/95805/mounts': No such file or directory
foreign	android-studio
extra	brltty
...

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 17 (9 by maintainers)

Most upvoted comments

What I’m looking for is not only message foreign vdeplug4-git, but with -v also something like

/usr/lib/python3.7/ is owned by vdeplug4-git

yeah

 ./checkrebuild -v
foreign	android-studio
foreign	vdeplug4-git
foreign	webkitgtk-bin
/usr/lib/python3.7/ è contenuto in vdeplug4-git r44.7ebdc73-2

I think I know what’s going on: vdeplug4-git is flagged because it was built against an older python version, so this package has some files in /usr/lib/python3x (where x is not 8).

Bingo

$ pacman -Qlq vdeplug4-git | grep site-packages
/usr/lib/python3.7/site-packages/
/usr/lib/python3.7/site-packages/VdePlug.py
/usr/lib/python3.7/site-packages/vdeplug_python.so

I have to update this package, then rebuild-detector is doing it’s job…

I think I know what’s going on: vdeplug4-git is flagged because it was built against an older python version, so this package has some files in /usr/lib/python3x (where x is not 8).

The hook only uses packages passed on stdin for ldd detection (because it is slow), but checks for python/ruby/perl/haskell are performed differently, they are fast, and so they don’t read stuff from stdin.

In other words, it’s not the intention to make checkrebuild use stdin to filter out all unrelated packages, it’s only used to speed things up where it makes sense.

But I think we could be a little more verbose for non-ldd packages with -v flag, to at least tell a very generic reason why you get this output, to help you understand where to start investigations - I’ll think what I can do about it 👍

Cool I installed emacs and confirm that I can repro, thanks 😃