Solved Ports system won't resolve dependencies..

I am trying to build a port from ports.
Whenever I try it will fail for any number of missing dependencies, it makes no attempt to download or build them.
I can install or build those dependencies one by one manually... but you can see how annoying that would be

How can I fix this?
 
You can use portmaster, to display all dependencies, just cd into port dir and run # portmaster, then cancel and double click each dependency and paste it with middle click to
# pkg ins -A <ports> , like "pkg ins -A devel/gmake ..."
R5ZVxFa.gif

("p" is alias for "cd /usr/ports ; cd", add alias p='cd /usr/ports ; cd' to your .zshrc/.bashrc)
It will install all packages as automatic, so you'll be able to remove them later with # pkg autoremove.

But it is a temporary solution, what errors exactly you're getting? Are you're able to fetch port, that you want to build?
 
Thanks for replying and the gif.

Here is an example after i've already manually fetched some dependencies such as yasm ...

Code:
root@soma-pc:/usr/ports/multimedia/vlc # make install clean
===>   vlc-2.2.6_1,4 depends on package: ffmpeg>=2.0 - found
===>   vlc-2.2.6_1,4 depends on executable: yasm - found
===>   vlc-2.2.6_1,4 depends on package: v4l_compat>=0 - found
===>   vlc-2.2.6_1,4 depends on executable: update-desktop-database - found
===>   vlc-2.2.6_1,4 depends on executable: gmake - found
===>   vlc-2.2.6_1,4 depends on package: libiconv>=1.14_11 - found
===>   vlc-2.2.6_1,4 depends on package: pkgconf>=1.3.0_1 - found
===>   vlc-2.2.6_1,4 depends on executable: msgfmt - found
===>   vlc-2.2.6_1,4 depends on executable: gtk-update-icon-cache - found
===>   vlc-2.2.6_1,4 depends on file: /usr/local/lib/libGL.so - found
===>   vlc-2.2.6_1,4 depends on file: /usr/local/libdata/pkgconfig/glproto.pc - found
===>   vlc-2.2.6_1,4 depends on file: /usr/local/libdata/pkgconfig/dri2proto.pc - found
===>   vlc-2.2.6_1,4 depends on file: /usr/local/libdata/pkgconfig/dri3proto.pc - not found
===>   vlc-2.2.6_1,4 depends on file: /usr/local/libdata/pkgconfig/dri3proto.pc - not found
*** Error code 1

Stop.
 
As far as I remember, I encountered similar issue,
try to use portupgrade/portinstall or portmaster.
Do you have something in /etc/make.conf?
 
As far as I remember, I encountered similar issue,
try to use portupgrade/portinstall or portmaster.
Do you have something in /etc/make.conf?

I am going to try reinstalling, and I have not tampered with that.
If I continue to experience this I will try portmaster or another, but portmaster has never qutie worked for me.
 
Try to run # make clean and try again, it seems it was an error in "configure" stage.

portmaster works like charm for me, I like it very much.

Here is my /usr/local/etc/portmaster.rc:
Code:
# Do not create temporary backup packages before pkg_delete (-B)
NO_BACKUP=Bopt

# Make and save a package of the new port (-g) (to /usr/ports/packages/)
MAKE_PACKAGE=gopt

# Do not preclean the port's build directory (-C)
DONT_PRE_CLEAN=Copt

# Always delete stale distfiles without prompting (-d)
ALWAYS_SCRUB_DISTFILES=dopt

# Do not run 'make config' for ports that need updating (-G)
PM_NO_MAKE_CONFIG=Gopt

# Install a package if available (-P or --packages)
PM_PACKAGES=first

# Specify a local package repository (--local-packagedir)
LOCAL_PACKAGEDIR=/var/cache/pkg
 
Thanks for replying and the gif.

Here is an example after i've already manually fetched some dependencies such as yasm ...

Code:
root@soma-pc:/usr/ports/multimedia/vlc # make install clean
===>   vlc-2.2.6_1,4 depends on package: ffmpeg>=2.0 - found
===>   vlc-2.2.6_1,4 depends on executable: yasm - found
===>   vlc-2.2.6_1,4 depends on package: v4l_compat>=0 - found
===>   vlc-2.2.6_1,4 depends on executable: update-desktop-database - found
===>   vlc-2.2.6_1,4 depends on executable: gmake - found
===>   vlc-2.2.6_1,4 depends on package: libiconv>=1.14_11 - found
===>   vlc-2.2.6_1,4 depends on package: pkgconf>=1.3.0_1 - found
===>   vlc-2.2.6_1,4 depends on executable: msgfmt - found
===>   vlc-2.2.6_1,4 depends on executable: gtk-update-icon-cache - found
===>   vlc-2.2.6_1,4 depends on file: /usr/local/lib/libGL.so - found
===>   vlc-2.2.6_1,4 depends on file: /usr/local/libdata/pkgconfig/glproto.pc - found
===>   vlc-2.2.6_1,4 depends on file: /usr/local/libdata/pkgconfig/dri2proto.pc - found
===>   vlc-2.2.6_1,4 depends on file: /usr/local/libdata/pkgconfig/dri3proto.pc - not found
===>   vlc-2.2.6_1,4 depends on file: /usr/local/libdata/pkgconfig/dri3proto.pc - not found
*** Error code 1

Stop.

First run #make clean then # make reinstall clean
 
First run #make clean then # make reinstall clean
Never use make reinstall unless you know what you're doing. It force registers the port install in the package database and doesn't cleanup the old install. It can leave old files in place (in the worst case these are old libraries) that are then no longer tracked by the package database.

It makes no sense at all to run it immediately after a make clean.
 
Never use make reinstall unless you know what you're doing. It force registers the port install in the package database and doesn't cleanup the old install. It can leave old files in place (in the worst case these are old libraries) that are then no longer tracked by the package database.

It makes no sense at all to run it immediately after a make clean.

Thanks
 
Back
Top