Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Jan 2016 14:44:57 -0500
From:      "Michael B. Eichorn" <ike@michaeleichorn.com>
To:        =?ISO-8859-1?Q?Lu=EDs?= Fernando Schultz Xavier da Silveira <schultz@ime.usp.br>, "Brandon J.Wandersee" <brandon.wandersee@gmail.com>
Cc:        Polytropon <freebsd@edvax.de>, freebsd-questions@freebsd.org,  kpneal@pobox.com
Subject:   Re: Unexpected dependencies of graphics/libGL
Message-ID:  <1453319097.1107.44.camel@michaeleichorn.com>
In-Reply-To: <20160120184255.77e936f2ef370977243ed474@ime.usp.br>
References:  <20160117031923.ce1f36547351bf07b6fff9a0@ime.usp.br> <20160117070715.1c33732b.freebsd@edvax.de> <20160117162018.964db3b1f2f2133242773e78@ime.usp.br> <20160117220247.69e6774f.freebsd@edvax.de> <20160118161235.GA92637@neutralgood.org> <20160119050806.cd08ca0687e76a4b09a701e3@ime.usp.br> <20160119062345.5402e98b.freebsd@edvax.de> <20160119063438.ca57c8a3bd8ba6781a58b040@ime.usp.br> <86bn8gkw79.fsf@WorkBox.Home> <20160120184255.77e936f2ef370977243ed474@ime.usp.br>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-E7IKn3Z85lhbQBy+xWO/
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Wed, 2016-01-20 at 18:42 +0000, Lu=C3=ADs Fernando Schultz Xavier da
Silveira wrote:
> Indeed. As I have said, it is the proper tool to build package
> repositories.
>=20
> Maybe I should have rephrased myself as in
> =C2=A0 "If the extra dependencies compromise the jail, the output package=
s
> =C2=A0 can be compromised and, when installed, compromise the host
> system."
>=20
> We can not live in a dreamland and expect that when a software
> malfunctions, it will be kind enough to output an error message and
> end with a non-zero exit code. It may also signal success but affect
> the binaries and files contained in the resulting package. However,
> as someone pointed out, I am repeating myself.

Ok, I think I see what your concern is now. I accept that you are
correct that building only what is necessary is safer.

I think the disconnect was that avoiding installing B-deps also
improves security and using poudriere to do this is relatively easy.
Your responses while correct that it did not solve your problem, were
somewhat over broad in ignoring this similar, but admittedly
incomplete, solution. This is probably why the thread 'blew up' in my
estimation.

Building only what you need is hard. It does take time and effort to
provide the configure options in the ports tree. As such it is
reasonable that porters might not choose to include every possible
case. However if you think an important one has been missed it is
reasonable to get in touch with the port owner and see if they will add
a configure option.

I think the list assumed that if your concern was not addressed by a
configure option it probably was either an oversight or not worth the
effort to have the option. And that if it was an oversight the port
owner would have fixed it on request. As such we incorrectly jumped to
the next best solution, not installing the B-deps.

>=20
> Just because we find a trick to not install crapware like autoconf,
> it does not mean the integrity of the system is not affected by our
> use of it.=C2=A0

> On Wed, 20 Jan 2016 11:16:42 -0600
> Brandon J. Wandersee <brandon.wandersee@gmail.com> wrote:
>=20
> >=20
> > Lu=C3=ADs Fernando Schultz Xavier da Silveira writes:
> >=20
> > > If the extra dependencies break the jail, the output packages can
> > > be
> > > malformed and, when installed, break the host system.
> >=20
> > Nope. Leaving aside the fact that no package should even (ideally)
> > affect the base system (and so shouldn't break a jail), if a
> > Poudriere
> > jail does break, the build fails. Not the *port build*, but the
> > *Poudriere bulk build process.* The whole thing will crash out with
> > an
> > error message. And while Poudirere doesn't require ZFS, it was
> > crafted
> > with ZFS in mind, and if it is installed and run in a zpool then
> > any
> > time a jail is updated or a bulk build process executed, a snapshot
> > is
> > created beforehand. Should things become completely borken, the
> > jail
> > and/or repository can simply be rolled back.
> >=20
> > Moreover, the package repository index is not updated until the
> > bulk
> > build for all packages is complete. If a particular package fails
> > to
> > build or pass a test then all packages upon which it depends are
> > skipped, and all builds for packages which depend up the failed
> > package
> > are ignored. Only successfully built packages are made available
> > for
> > installation/upgrades.
> >=20
> > This can easily be resolved: Poudriere is the official build system
> > for
> > the FreeBSD ports team. All official packages you install via
> > pkg(8) are
> > built with it, and have been for a couple years now. Chances are
> > you're
> > not the first person to think about these things. If you don't
> > trust
> > Poudriere, you shouldn't trust packages. Since the ports system and
> > package manager are now bound to one another (with all ports being
> > built
> > into packages and installed/tracked with pkg(8)), if you don't
> > trust
> > packages, you probably shouldn't place too much trust in the ports
> > system, either.
> >=20
> > If a particular port/package can be successfully built and
> > installed,
> > yet is causing problems on its host system then it's entirely
> > possible
> > that the port itself is faulty, or (perhaps more likely) that the
> > issue
> > stems from a bug or malicious code within the compiled software
> > itself. Poudriere can't account for such a circumstance, but then
> > it
> > doesn't have to. It's a build system designed to expedite the
> > building
> > of customized ports, while simulatneously preventing malicious code
> > from
> > being executed on the build system during that build process and
> > avoiding a port/package upgrade from failing on a host system part-
> > way
> > through and breaking things in the process. If a port successfully
> > builds in Poudriere, and its package is successfully added to the
> > repository, and then successfully installed on the receiving
> > system,
> > then Poudriere has successfully done its job.
> >=20
--=-E7IKn3Z85lhbQBy+xWO/
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Disposition: attachment; filename="smime.p7s"
Content-Transfer-Encoding: base64

MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCCEqAw
ggYwMIIFGKADAgECAgMOXcYwDQYJKoZIhvcNAQELBQAwgYwxCzAJBgNVBAYTAklMMRYwFAYDVQQK
Ew1TdGFydENvbSBMdGQuMSswKQYDVQQLEyJTZWN1cmUgRGlnaXRhbCBDZXJ0aWZpY2F0ZSBTaWdu
aW5nMTgwNgYDVQQDEy9TdGFydENvbSBDbGFzcyAxIFByaW1hcnkgSW50ZXJtZWRpYXRlIENsaWVu
dCBDQTAeFw0xNTA2MTMyMDI0NDZaFw0xNjA2MTQwMDM1NTBaMEgxHzAdBgNVBAMMFmlrZUBtaWNo
YWVsZWljaG9ybi5jb20xJTAjBgkqhkiG9w0BCQEWFmlrZUBtaWNoYWVsZWljaG9ybi5jb20wggEi
MA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDJVdWALPz5h2s5zUQGIJYl6Vp8FPtZNko8q/3s
crCsxXJLprMaDdpnqTsmkbmEfKvsqPQE6HVOpGxVRTl/tCm+VvouW9eY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