Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Aug 2017 20:44:28 -0600
From:      Adam Weinberger <adamw@adamw.org>
To:        Thomas Mueller <mueller6722@twc.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Synth and circular dependencies
Message-ID:  <CE1299E9-B6D1-4D03-84E7-348D4BAC2D64@adamw.org>
In-Reply-To: <8B.5A.25924.D54EC995@dnvrco-omsmta02>
References:  <30.03.31699.752AB995@dnvrco-omsmta03> <CAJuc1zOvS51-MsVqcwAfMGYoeNV46wZm5agNecM6o3u2WL_rrQ@mail.gmail.com> <201708220330.v7M3UJeJ026761@gw.catspoiler.org> <F9.8A.25924.960DB995@dnvrco-omsmta02> <20170822122523.28de2ad2@gumby.homeunix.com> <F9.8A.25924.960DB995@dnvrco-omsmta02> <CAJuc1zN=uUSvna8b10vJoSQ%2B5G4HzSYELN_4HoyN4DD5TzejhA@mail.gmail.com> <8B.5A.25924.D54EC995@dnvrco-omsmta02>

next in thread | previous in thread | raw e-mail | index | archive | help
> On 22 Aug, 2017, at 20:11, Thomas Mueller <mueller6722@twc.com> wrote:
>=20
> from Jonathan Chen:
>=20
>> On 22 August 2017 at 18:34, Thomas Mueller <mueller6722@twc.com> =
wrote:
> [...]
>>> I believe Synth and poudriere have no means for setting options.  =
That should be enough impetus to make it easier to bypass the =
dialog4ports entirely.
>=20
>>> =46rom the synth man page:
>>     <profile>-make.conf
>>                       This is an optional, user-provided file. If it =
exists,
>>                       the builder's /etc/make.conf will be appended =
with the
>>                       contents of this file. For the default profile, =
the
>>                       file would normally be located at
>>                       /usr/local/etc/synth/LiveSystem-make.conf
>=20
>> All you need to do is to convert your /var/db/ports/* options into
>> make.conf style options and put it into LiveSystem-make.conf.
>=20
>> Works for me.
>=20
> At this stage, I think I don't want to ever again see a dialog4ports!
>=20
> How do I convert /var/db/ports/* options into make.conf-style options =
in a reasonable amount of time?

Make a script. The directory name is the option prefix.

> I don't (yet) have a LiveSystem-make.conf apart from /etc/make.conf, =
but I have=20
> /usr/local/etc/synth/synth.ini
>=20
> I see (running "less" on this file)
>=20
> [Global Configuration]
>=20
>=20
> [LiveSystem]
>=20
> Directory_packages=3D /var/synth/live_packages
> Directory_repository=3D /var/synth/live_packages/All
> Directory_portsdir=3D /BETA1/usr/ports
> Directory_options=3D /var/db/ports
> Directory_distfiles=3D /BETA1/usr/ports/distfiles
> Directory_buildbase=3D /usr/obj/synth-live
> Directory_logs=3D /var/log/synth
> Directory_ccache=3D disabled
> Directory_system=3D /
> Number_of_builders=3D 6
> Max_jobs_per_builder=3D 4
> Tmpfs_workdir=3D true
> Tmpfs_localbase=3D true
> Display_with_ncurses=3D true
> leverage_prebuilt=3D false
>=20
> occurring four times, the latter three being verbatim repeats of the =
first.
>=20
> Now I want to get rid of the Directory_options line, should I delete =
the line or should I change "/var/db/ports" to "/dev/null"?  Or just =
move /var/db/ports to /var/db/ports2, which I intend to do anyway?
>=20
> What if synth finds /var/db/ports no longer there?

Just move everything out of it. That directory starts off empty anyway.

# Adam


--=20
Adam Weinberger
adamw@adamw.org
https://www.adamw.org




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CE1299E9-B6D1-4D03-84E7-348D4BAC2D64>