Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Dec 2008 21:13:54 +0300
From:      Dmitry Marakasov <amdmi3@amdmi3.ru>
To:        Ashish Shukla =?utf-8?B?4KSG4KS24KWA4KS3IOCktuClgeCkleCljeCksg==?= <wahjava.ml@gmail.com>
Cc:        FreeBSD Ports Mailing List <freebsd-ports@freebsd.org>
Subject:   Re: [PROPOSAL] Ports using SCM repositories as source instead of distfiles
Message-ID:  <20081209181354.GB29817@hades.panopticon>
In-Reply-To: <873agxjn1x.fsf@chateau.d.lf>
References:  <87fxkxjywk.fsf@chateau.d.lf> <20081209143052.GA29817@hades.panopticon> <873agxjn1x.fsf@chateau.d.lf>

next in thread | previous in thread | raw e-mail | index | archive | help
* Ashish Shukla =E0=A4=86=E0=A4=B6=E0=A5=80=E0=A4=B7 =E0=A4=B6=E0=A5=81=E0=
=A4=95=E0=A5=8D=E0=A4=B2 (wahjava.ml@gmail.com) wrote:

> > - _Much_ more (instead of less) work for maintainer, as he won't be a=
ble
> >   to test the port before committing it and will have to deal with al=
l
> >   the problems post factum, under extra pressure.
>=20
> > - Actually, any SCM-based port will become broken rather soon than
> >   later with no ability to prevent it.
> >   The port uses patches? Due to mutable source it'll become broken.
> >   Any structural change upstream? Port broken. Changed build system?
> >   Broken. Changed paths? Broken. Changed depends? Broken. Changed
> >   options/configure args? Broken. Etc.
>=20
> These are the problems already expected with this but the only
> suggestion is to have PRs filed if anything breaks during compilation
> and investigate what caused it.

No, those problems will not arise as long as the maintainer tests the
port before submitting an update. And the tested port of fixed version
will be usable for a long time, unlike SCM-based one which may break
every second.

> > - Generic dynamic plist generation is impossible unless the port
> >   is installed into some clean chrooted environemnt (for example,
> >   using DESTDIR). The latter, however takes extra space and time,
> >   as you need the whole system and all dependent packages installed
> >   there as well.
>=20
> So, this is the main reason which prevents this :( .

I'd say it's the least significant reason. The main reasons are the
first three which can be shortened as `the port will be unuseable and
sometimes dangerous'.
What's for automatic plist generation, I've given it some thought,
and it seems like there could be a more or less reliable way after all.
I'm currently doing some experiments.

> > Sometimes it's hard to tell whether the problem is FreeBSD-specific.
> > Also, upstream is unlikely to have FreeBSD box for testing, so again
> > it'll be more work for maintainer.
>=20
> True, so either have all PRs should be submitted to FreeBSD PR system,
> where maintainer will decide if its porting issue or upstream related
> issue.

My opinion is that if you can diagnose the problem by yourself and come
with a proper fix, you should submit it directly upstream. If you think
that the problem is serious enough, you can send a port PR as well. If
you cannot do it all by yourself though, you should submit a PR, in
which case port's maintainer will take care of it.

> So with all the problems you mentioned above, I guess, I'll take my
> proposal back :) .

It's not like your proposal is bad, ports instantaneously tracking
upstream changes and not needing maintainers would really be cool,
but unfortunately that's practically impossible.

--=20
Dmitry Marakasov   .   55B5 0596 FF1E 8D84 5F56  9510 D35A 80DD F9D2 F77D
amdmi3@amdmi3.ru  ..:  jabber: amdmi3@jabber.ru    http://www.amdmi3.ru



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081209181354.GB29817>