On Sat, Nov 04, 2017 at 08:15:48PM +0100, Andreas Kusalananda Kähäri wrote:
> On Sat, Nov 04, 2017 at 07:23:01PM +0100, Marc Espie wrote:
> > On Sat, Nov 04, 2017 at 05:46:26PM +0100, Andreas Kusalananda Kähäri wrote:
> > > Hi,
> > > 
> > > I tried using dpb(1) with ccache today by adding USE_CCACHE=Yes and
> > > pointing CCACHE_DIR to a sensible location owned by _pbuild:
> > > 
> > > USE_CCACHE=    Yes
> > > CCACHE_DIR=    /extra/ccache
> > > 
> > > However, it seems as if this causes dpb to just quickly run though all
> > > the ports in my list without buiding anything, or even checking the port
> > > signatures.
> > > 
> > > I'm running dpb like this:
> > > 
> > >     doas /usr/ports/infrastructure/bin/dpb -p4 -suUR -J0 -P 
> > > "$HOME/packages.txt"
> > > 
> > > Is it possible to enable ccache at all for dpb?  I'm using dpb since it
> > > makes it easy to keep ports up to date on -current, and I'd really want
> > > to have the ability to run with ccache to speed up the rebuilding of some
> > > of the larger ports.
> > 
> > I'm not going  to go debug that from scratch.
> > 
> > It's likely dpb produced at least some output, like some logs.
> > So there might be an indication of why it doesn't work.
> > 
> 
> Sorry, the summary log, which I don't fully uderstand, seems to say
> nothing is being built because of circular dependencies between ccache
> and xz(?):
> 
> x11/dbus not built textproc/xmlto -> misc/gnugetopt -> devel/gettext-tools -> 
> archivers/xz -> devel/ccache -> devel/autoconf/2.69 -> devel/help2man -> 
> archivers/xz
> x11/dbus,-main same as x11/dbus
> x11/dbus,-suid not built textproc/xmlto -> misc/gnugetopt -> 
> devel/gettext-tools -> archivers/xz -> devel/ccache -> devel/autoconf/2.69 -> 
> devel/help2man -> archivers/xz
> x11/dbus-glib not built devel/glib2 -> x11/dbus -> textproc/xmlto -> 
> misc/gnugetopt -> devel/gettext-tools -> archivers/xz -> devel/ccache -> 
> devel/autoconf/2.69 -> devel/help2man -> archivers/xz
> x11/gnome/adwaita-icon-theme not built x11/icontool -> textproc/p5-XML-Simple 
> -> devel/ccache -> devel/autoconf/2.69 -> devel/help2man -> archivers/xz -> 
> devel/ccache
> x11/gnome/at-spi2-atk not built textproc/intltool -> textproc/p5-XML-Parser 
> -> devel/ccache -> devel/autoconf/2.69 -> devel/help2man -> archivers/xz -> 
> devel/ccache
> x11/gnome/at-spi2-core not built textproc/intltool -> textproc/p5-XML-Parser 
> -> devel/ccache -> devel/autoconf/2.69 -> devel/help2man -> archivers/xz -> 
> devel/ccache
> x11/gnome/libgnome-keyring not built devel/ccache -> devel/autoconf/2.69 -> 
> devel/help2man -> archivers/xz -> devel/ccache
> x11/gnome/librsvg not built textproc/libxml -> devel/ccache -> 
> devel/autoconf/2.69 -> devel/help2man -> archivers/xz -> devel/ccache
> x11/gnome/libsecret not built textproc/intltool -> textproc/p5-XML-Parser -> 
> devel/ccache -> devel/autoconf/2.69 -> devel/help2man -> archivers/xz -> 
> devel/ccache
> x11/gtk+3 not built devel/json-glib -> archivers/xz -> devel/ccache -> 
> devel/autoconf/2.69 -> devel/help2man -> archivers/xz
> x11/gtk+3,-guic not built devel/json-glib -> archivers/xz -> devel/ccache -> 
> devel/autoconf/2.69 -> devel/help2man -> archivers/xz
> x11/gtk+3,-main same as x11/gtk+3
> x11/hicolor-icon-theme not built devel/ccache -> devel/autoconf/2.69 -> 
> devel/help2man -> archivers/xz -> devel/ccache
> x11/icontool not built textproc/p5-XML-Simple -> devel/ccache -> 
> devel/autoconf/2.69 -> devel/help2man -> archivers/xz -> devel/ccache
> x11/tk/8.5 not built lang/tcl/8.5 -> devel/ccache -> devel/autoconf/2.69 -> 
> devel/help2man -> archivers/xz -> devel/ccache

Well, that's useful information.

I'll have to think about some smart way to avoid the loop.

Reply via email to