Bug 209826 - ports-mgmt/synth: raised PORTSCAN.SEEK_FAILURE
Summary: ports-mgmt/synth: raised PORTSCAN.SEEK_FAILURE
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: John Marino
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-29 07:32 UTC by vladimir.chukharev
Modified: 2016-05-29 15:09 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (marino)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vladimir.chukharev 2016-05-29 07:32:24 UTC
On a usual update of the installed ports, I got a few skipped ports:

 $ sudo nice time synth upgrade-system
Password:
Querying system about current package installations.
Stand by, comparing installed packages against the ports tree.
Scanning existing packages.
qt4-assistant-4.8.7.txz failed dependency check.
qt4-designer-4.8.7.txz failed dependency check.
qscintilla2-2.9.1,1.txz failed dependency check.
py27-qt4-core-4.11.4,1.txz failed dependency check.
qt5-widgets-5.5.1_1.txz failed dependency check.
py27-qt4-gui-4.11.4,1.txz failed dependency check.
py27-qt4-network-4.11.4,1.txz failed dependency check.
qt5-printsupport-5.5.1_1.txz failed dependency check.
py27-qt4-webkit-4.11.4.txz failed dependency check.
py27-qt4-svg-4.11.4,1.txz failed dependency check.
qt5-opengl-5.5.1.txz failed dependency check.
py27-qt4-help-4.11.4.txz failed dependency check.
py27-qt4-qscintilla2-2.9.1,1.txz failed dependency check.
qt5-quick-5.5.1.txz failed dependency check.
py27-qt4-sql-4.11.4,1.txz failed dependency check.
qt5-webkit-5.5.1_1.txz failed dependency check.
poppler-qt5-0.40.0.txz failed dependency check.
qt5-imageformats-5.5.1_1.txz failed dependency check.
qt5-svg-5.5.1.txz failed dependency check.
eric6-6.1.5.txz failed dependency check.
qscintilla2-qt5-2.9.1.txz failed dependency check.
qcad-3.12.5.0.txz failed dependency check.



The task is complete.  Final tally:
Initial queue size: 23
    packages built: 10
           ignored: 1
           skipped: 12
            failed: 0

Duration: 01:52:56
The build logs can be found at: /var/log/synth
Stand by, prescanning existing packages.
Removed: qt5-gui-5.5.1.txz     
Stand by, recursively scanning 1093 ports serially.
Scanning existing packages.
qt4-assistant-4.8.7.txz failed dependency check.
qt4-designer-4.8.7.txz failed dependency check.
qscintilla2-2.9.1,1.txz failed dependency check.
py27-qt4-core-4.11.4,1.txz failed dependency check.
py27-qt4-gui-4.11.4,1.txz failed dependency check.
py27-qt4-network-4.11.4,1.txz failed dependency check.
py27-qt4-webkit-4.11.4.txz failed dependency check.
py27-qt4-svg-4.11.4,1.txz failed dependency check.
py27-qt4-help-4.11.4.txz failed dependency check.
py27-qt4-qscintilla2-2.9.1,1.txz failed dependency check.
py27-qt4-sql-4.11.4,1.txz failed dependency check.
eric6-6.1.5.txz failed dependency check.
qcad-3.12.5.0.txz failed dependency check.
Packages validated, rebuilding local repository.
Local repository successfully rebuilt
Updating Synth repository catalogue...
Fetching meta.txz: 100%    260 B   0.3kB/s    00:01    
Fetching packagesite.txz: 100%  244 KiB 250.1kB/s    00:01    
Processing entries: 100%
Synth repository update completed. 1080 packages processed.
Checking for upgrades (485 candidates): 100%
Processing candidates (485 candidates): 100%
Checking integrity... done (0 conflicting)
The following 2 package(s) will be affected (of 0 checked):

Installed packages to be UPGRADED:
	qt5-gui: 5.5.1 -> 5.5.1_1 [Synth]

Installed packages to be REINSTALLED:
	xcb-util-renderutil-0.3.9_1 [Synth]
[1/2] Reinstalling xcb-util-renderutil-0.3.9_1...
[1/2] Extracting xcb-util-renderutil-0.3.9_1: 100%
[2/2] Upgrading qt5-gui from 5.5.1 to 5.5.1_1...
[2/2] Extracting qt5-gui-5.5.1_1: 100%
     7066,17 real     15694,57 user      2157,45 sys


Firstly, I repeated the same, but in vain:

 $ sudo nice time synth upgrade-system
Password:
Sorry, try again.
Password:
Querying system about current package installations.
Stand by, comparing installed packages against the ports tree.
Scanning existing packages.
After inspection, it has been determined that there are no packages that
require rebuilding; the task is therefore complete.
Stand by, prescanning existing packages.
Stand by, recursively scanning 1093 ports serially.
Scanning existing packages.
Packages validated, rebuilding local repository.
Local repository successfully rebuilt
Updating Synth repository catalogue...
Fetching meta.txz: 100%    264 B   0.3kB/s    00:01    
Fetching packagesite.txz: 100%  244 KiB 250.2kB/s    00:01    
Processing entries: 100%
Synth repository update completed. 1080 packages processed.
Checking for upgrades (483 candidates): 100%
Processing candidates (483 candidates): 100%
Checking integrity... done (0 conflicting)
Your packages are up to date.
      329,08 real       199,40 user        96,82 sys

Then, I selected two skipped ports and tried to force their update, and received the error:

 $ sudo nice time synth force www/py-qt4-webkit cad/qcad
Scanning existing packages.
After inspection, it has been determined that there are no packages that
require rebuilding; the task is therefore complete.
Would you like to rebuild the local repository (Y/N)? y
Stand by, prescanning existing packages.
Stand by, recursively scanning 1082 ports serially.
Scanning existing packages.
 progress: 97.33%              

raised PORTSCAN.SEEK_FAILURE : devel/qscintilla2 was expected to be blocked by devel/ccache
      502,90 real       121,65 user        66,44 sys


I do not understand the message. Is it important? Can I help to debug?
I'll wait without my regular updates for few days, just to be able to reproduce the error...
Comment 1 John Marino freebsd_committer freebsd_triage 2016-05-29 07:40:36 UTC
You are focused on the symptoms, not the cause.

You got 12 skipped ports.
The cause of skipped ports are A) a dependency port got ignored B) a dependency port failed to build.

In either case, the dependency port is 100% required.  Thus, trying to build a skipped port is logically flawed.

What you did not do is find the skipped ports log (04_skipped_list.log), open it, and determine which port got skipped and for what reason.

The 00_last_results.log will also show this information along with what ports got skipped.

In any case, you have to start there.  Trying to build a skipped port without fixing the wrong cause of failure is the wrong approach.
Comment 2 vladimir.chukharev 2016-05-29 08:25:49 UTC
Thanks for fast and clear diagnosis. It's devel/qt4-assistant failing:

 $ sudo make -C /usr/ports/devel/qt4-assistant clean all
Password:
===>  Cleaning for qt4-assistant-4.8.7
===>  qt4-assistant-4.8.7 can't be installed: unknown USE_QT4 component
'doc_run'.
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/qt4-assistant

The message from 'synth force' is rather obscure, would be nice if it's made easier to understand. Also, the gnome terminal is left "insane", I needed to type blindly 'stty sane' to get it back.

One thing more. Why the second run of 'synth upgrade-system' does not show the skipped ports?

Otherwise, this PR can be closed. I'm not sure, are the mentioned small glitches warrant saying that 'Not a bug' is wrong as a resolution... I leave closing to you. And thanks again!
Comment 3 John Marino freebsd_committer freebsd_triage 2016-05-29 15:09:14 UTC
well, the error isn't really supposed to happen.  It's a situation where the data has lost its integrity for some reason (dependencies aren't processed correctly?).  Moreover, the cause of the error is not known, so the message can't be more specific.

Regarding qt4-assistant, it looks like the problem happened at Mk/ recently and may already be fixed: https://svnweb.freebsd.org/ports?view=revision&revision=416088

You just happened to catch it when it was broken.  Try again after updating the tree!