Bug 191259 - portmaster doesn't install misc/gnomehier early enough?
Summary: portmaster doesn't install misc/gnomehier early enough?
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-gnome (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-22 00:27 UTC by nwf
Modified: 2015-01-15 11:45 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nwf 2014-06-22 00:27:36 UTC
Attempting to install databases/rrdtool attempts to build x11-toolkits/pango which attempts to build devel/gobject-introspection before misc/gnomehier has been installed (which, according to portmaster's output, was to be the next step in the chain):

===>>> The following actions will be taken if you choose to proceed:
        Install databases/rrdtool
        Install x11-toolkits/pango
        Install devel/gobject-introspection
        Install misc/gnomehier
        Install print/harfbuzz
        Install graphics/graphite2
        Install x11-fonts/encodings
        Install x11-fonts/bdftopcf
        Install x11-fonts/libXfont
        Install x11-fonts/fontsproto
        Install x11-fonts/libfontenc
        Install x11/xproto
        Install x11/xtrans
        Install x11-fonts/font-util
        Install x11-fonts/mkfontscale
        Install x11-fonts/xorg-fonts-truetype
        Install x11-fonts/dejavu
        Install x11-fonts/mkfontdir
        Install x11-fonts/font-bh-ttf
        Install x11-fonts/font-misc-ethiopic
        Install x11-fonts/font-misc-meltho

This leads to the very confusing build failure

gmake[1]: Leaving directory `/usr/ports/devel/gobject-introspection/work/gobject-introspection-1.36.0'
===>  Staging for gobject-introspection-1.36.0_2
===>   Generating temporary packing list
mtree: /usr/local/etc/mtree/BSD.gnome.dist: No such file or directory
*** Error code 1

All commands run on ports from git at revision 2a61126 .
Comment 1 Volodymyr Kostyrko 2014-07-15 19:59:35 UTC
I'll clarify this one a bit. misc/gnomehier is runtime depend for devel/gobject-introspection. When building latter from withing portmaster runtime depends checks are skipped. If after this fail you do `cd /usr/ports/devel/gobject-introspection ; make` you'll see:

===>  Staging for gobject-introspection-1.36.0_2
===>   gobject-introspection-1.36.0_2 depends on file: /usr/local/bin/python2.7 - found
===>   gobject-introspection-1.36.0_2 depends on executable: python2 - found
===>   gobject-introspection-1.36.0_2 depends on file: /usr/local/etc/mtree/BSD.gnome.dist - not found
===>    Verifying install for /usr/local/etc/mtree/BSD.gnome.dist in /usr/ports/misc/gnomehier
===>   gnomehier-3.0 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by gnomehier-3.0 for building
===>  Extracting for gnomehier-3.0
===>  Patching for gnomehier-3.0
===>  Configuring for gnomehier-3.0
===>  Staging for gnomehier-3.0
===>   Generating temporary packing list
cd /tmp/ports/usr/ports/misc/gnomehier/work/gnomehier-3.0 &&  /usr/sbin/mtree -U -d -n -i -c -k "uname, gname, mode" |  /usr/bin/sed -e 's|uname=[A-Za-z0-9_]*|
uname=root|'  -e 's|gname=[A-Za-z0-9_]*|gname=wheel|'  > /tmp/ports/usr/ports/misc/gnomehier/work/BSD.gnome.dist
cd /tmp/ports/usr/ports/misc/gnomehier/work/gnomehier-3.0 && /bin/sh -c '(/usr/bin/find -d $0 $2 | /usr/bin/cpio -dumpl $1 >/dev/null  2>&1) &&  /usr/sbin/chow
n -Rh root:wheel $1 &&  /usr/bin/find -d $0 $2 -type d -exec chmod 755 $1/{} \; &&  /usr/bin/find -d $0 $2 -type f -exec chmod 444 $1/{} \;' -- . /tmp/ports/us
r/ports/misc/gnomehier/work/stage/usr/local
/bin/mkdir -p /tmp/ports/usr/ports/misc/gnomehier/work/stage/usr/local/etc/mtree
install  -o root -g wheel -m 444 /tmp/ports/usr/ports/misc/gnomehier/work/BSD.gnome.dist /tmp/ports/usr/ports/misc/gnomehier/work/stage/usr/local/etc/mtree
====> Compressing man pages (compress-man)
===>  Installing for gnomehier-3.0
===>  Checking if misc/gnomehier already installed
===>   Registering installation for gnomehier-3.0 as automatic
Installing gnomehier-3.0... done
===>   Returning to build of gobject-introspection-1.36.0_2
===>   gobject-introspection-1.36.0_2 depends on shared library: libffi.so - found (/usr/local/lib/libffi.so.6)
===>   gobject-introspection-1.36.0_2 depends on shared library: libintl.so - found (/usr/local/lib/libintl.so.9)
===>   gobject-introspection-1.36.0_2 depends on shared library: libglib-2.0.so - found (/usr/local/lib/libglib-2.0.so.0)
===>   gobject-introspection-1.36.0_2 depends on shared library: libpcre.so - found (/usr/local/lib/libpcre.so.3)
===>   Generating temporary packing list
gmake[1]: working in "/tmp/ports/usr/ports/devel/gobject-introspection/work/gobject-introspection-1.36.0"
gmake  install-recursive
..... staging skipped ....
====> Compressing man pages (compress-man)

The problem is rather in portmaster putting runtime depends lower then packages where they are referred from.
Comment 2 Ronald Klop 2014-10-06 15:43:09 UTC
So, this issue is also solved if gobject-introspection defines gnomehier as a build dependency as it is actually used during building, isn't it?

NB: I also ran into this issue.
Comment 3 Volodymyr Kostyrko 2014-10-07 19:11:13 UTC
(In reply to Ronald Klop from comment #2)
> So, this issue is also solved if gobject-introspection defines gnomehier as
> a build dependency as it is actually used during building, isn't it?

It's not used during building, but it's required before installing.
Comment 4 Ronald Klop 2014-10-08 14:07:46 UTC
(In reply to arcade from comment #3)
> (In reply to Ronald Klop from comment #2)
> > So, this issue is also solved if gobject-introspection defines gnomehier as
> > a build dependency as it is actually used during building, isn't it?
> 
> It's not used during building, but it's required before installing.

AFAIK there does not exist a STAGING_DEPENDS. So wouldn't BUILD_DEPENDS be the best alternative in the time being to make it work?
Comment 5 Ronald Klop 2014-12-29 16:03:41 UTC
The port misc/gnomehier does not exist anymore, so I wonder if this bug ticket is still valid.
Comment 6 Koop Mast freebsd_committer freebsd_triage 2015-01-15 11:45:47 UTC
gnomehier was removed from ports.