Date: Wed, 30 Aug 2017 15:23:39 +0200 From: Franco Fichtner <franco@lastsummer.de> To: Baptiste Daroussin <bapt@freebsd.org> Cc: Cassiano Peixoto <peixotocassiano@gmail.com>, freebsd-stable@freebsd.org, Matthew Seaman <matthew@freebsd.org>, "freebsd-ports@freebsd.org" <freebsd-ports@freebsd.org> Subject: Re: pkg issue after FreeBSD 11 upgrade Message-ID: <26A778CD-11ED-4DAF-A2A8-7D0E263430A1@lastsummer.de> In-Reply-To: <20170830130504.kgbwkztaomnqq3hy@ivaldir.net> References: <CAJajdNUJGgcmvetRFNbtcpwBkzcyArMSg4F2bBELs=qHH1pB=w@mail.gmail.com> <4c16c960-3b4a-75ab-41ed-51c8109b940a@FreeBSD.org> <CAJajdNV1xLovnx-GRLPR-H4muFgxMCSQrqri4FagyfdtMTv3Ww@mail.gmail.com> <CAJajdNUOg_HMboH563=GSK1QzzcV0v_5WV3v8=Vj7Tk9Rvp32A@mail.gmail.com> <20170830124855.ph5cca5pwjd2pphf@ivaldir.net> <CAJajdNXRx6S9xKgcouoPiWSjm_dBp5L0HZx8kW4iWPS7MpGCPw@mail.gmail.com> <D0A57374-5A7D-4574-B5AD-5BAC6E8DBD8B@lastsummer.de> <20170830130504.kgbwkztaomnqq3hy@ivaldir.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Baptiste, > On 30. Aug 2017, at 3:05 PM, Baptiste Daroussin <bapt@freebsd.org> = wrote: >=20 >> No. At OPNsense we use a patch to revert the behaviour. >>=20 >> = https://github.com/opnsense/ports/blob/master/ports-mgmt/pkg/files/patch-l= ibpkg_scripts.c >=20 > Why and what is your use case, there is a reason why this code has = been added, > and I would like to hear more about use cases so we can try to address = them. There's to things in this patch. (1) The hard fail for scripts leaves a GUI-driven environment without its package, so post-install fails become fatal and appliances are completely stranded, possibly left without means of recovery. This is where FreeBSD base and the "appliance" GUI packages are = completely separated. This is somewhat mitigated by marking said GUI package vital, but vital won't help if the package was deinstalled during an upgrade and then the upgrade script itself fails. Every now and then, I see "user disappeared" during package installs on stock FreeBSD systems so the install fails. I am guessing that's the same issue. (2) The reaper kills a package-based watchdog / backend service. Maybe HANDLE_RC_SCRIPTS can cope with this, but it would be beneficial to be able to enable this per package / rc service / metadata as generally the reaper is a fine and sane addition. Cheers, Franco=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?26A778CD-11ED-4DAF-A2A8-7D0E263430A1>