ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] Fw: Re: Samba 4 build system - more thoughts on scons
@ 2005-10-20 13:03 Alexander Bokovoy
  2005-10-21  6:56 ` Andrei Bulava
  0 siblings, 1 reply; 3+ messages in thread
From: Alexander Bokovoy @ 2005-10-20 13:03 UTC (permalink / raw)
  To: devel

[-- Attachment #1: Type: text/plain, Size: 2855 bytes --]

Результаты экспериментов со Scons в Samba 4:

----- Forwarded message from Jelmer Vernooij <jelmer@samba.org> -----

Date: Thu, 20 Oct 2005 00:18:52 +0200
From: Jelmer Vernooij 
Subject: Re: Samba 4 build system - more thoughts on scons

Jelmer Vernooij wrote:
> While I was very positive about scons a month ago, I must admit that
> enthusiasm has faded a bit now that we tried out to use it for building
> Samba4. The idea behind it is good, but there are some issues when using
> it in real life (some of these I knew about before I started or were
> predicted by others):
> 
> - It assumes the relations between subsystems are compositional. If dir
> a is processed before dir b, dir a can not depend on any object files
> from dir b. This is a major problem for Samba.
> - Running the configure tests (even with caching) each time you run a
> build takes way too much time for a project with as much tests as Samba
> (althought there are hacks around it).
> - No easy way to add configure test functions
> - Python
> - Slow. Calculating checksums for each file rather then relying on
> modification times may be nice for those that have their sources on NFS,
> but it slows scons down a lot.
> - Very much focussed on files and conversions between files - generating
> a list of init functions like we do at the moment is quite hard.
> - While in theory it should be possible to generate a configure script
> and Makefile.in from a set of SConscript files, this proved to be a bit
> harder then I'd hoped.
> 
> Of course, it's not all bad. Some good things about scons:
> - Can transparently handle portability issues with different compilers,
> architectures
> - The support for multiple build types is very neat and useful
> - Automatic support for header dependencies
> - Easy to extend. Scanning for dependencies, adding file types, adding
> compilers is trivial.
> - Compositional to a high extend. Being able to put the list of files
> and the list of functions/headers a subsystem needs in one file in that
> subsystems dir is very useful.
> - Configure scripts and tests are much easier to read
Summarizing this whole story a bit, I guess I could say that scons is
the perfect tool for small projects.

It doesn't scale well though in terms of build items and configure
tests. It also lacks support or flexibility for the special features
larger projects need - in the case of Samba the init functions,
optionally disabling subsystems and the subsystems that depend on them,
deciding between object lists and shared libraries.

Cheers,

Jelmer

----- End forwarded message -----

-- 
/ Alexander Bokovoy
Samba Team                      http://www.samba.org/
ALT Linux Team                  http://www.altlinux.org/
Midgard Project Ry              http://www.midgard-project.org/

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [devel] Fw: Re: Samba 4 build system - more thoughts on scons
  2005-10-20 13:03 [devel] Fw: Re: Samba 4 build system - more thoughts on scons Alexander Bokovoy
@ 2005-10-21  6:56 ` Andrei Bulava
  2005-10-21 11:28   ` [devel] " Konstantin A. Lepikhov
  0 siblings, 1 reply; 3+ messages in thread
From: Andrei Bulava @ 2005-10-21  6:56 UTC (permalink / raw)
  To: ALT Devel discussion list

Alexander Bokovoy wrote:
> Результаты экспериментов со Scons в Samba 4:
> 
> ----- Forwarded message from Jelmer Vernooij <jelmer@samba.org> -----
> 
> Date: Thu, 20 Oct 2005 00:18:52 +0200
> From: Jelmer Vernooij 
> Subject: Re: Samba 4 build system - more thoughts on scons

<skip />

> Summarizing this whole story a bit, I guess I could say that scons is
> the perfect tool for small projects.
> 
> It doesn't scale well though in terms of build items and configure
> tests. It also lacks support or flexibility for the special features
> larger projects need - in the case of Samba the init functions,
> optionally disabling subsystems and the subsystems that depend on them,
> deciding between object lists and shared libraries.

Даже непонятно, о чём теперь сожалеть в плане перехода kde4 на "скунс".
Пережить-то переживём, но времени будет убито... в том числе на сборку
софта и изучение python.

У меня постепенно начинает развиваться питонофобия: rpm, yum (какой
<censored /> додумался рисовать там fancy percent bar так, что это
поделие жрёт > 12 кБ/с на ssh-сессии?!!), smart, scons, you name it. И
это при том, что в самом python граблей немеряно: зависимости,
смешивание noarch и arch, изменения API / версионирование. Про изменения
версий самого python тут многие в курсе, но всё равно не удержусь от
шпильки в уязвимое место.

P.S. Убивает наповал, что "скунс" разрабатывается уже 5 лет, и в
сравнении с вдвое старшими autotools он не выглядит на свои 5 лет. Взять
хотя бы скорость работы: они что, заложились на x86_64 @10 GHz + 4 Gb
RAM ещё пять лет назад?!! Ох уж эта парадигма "make it run, make it
right, make it fast". Получается, как в жизни: выберите любые два пункта :-(

P.P.S. На s-r@ я не подписан, хотя желающих развить эту дискуссию
справедливо туда пошлют ;-) Умолкаю.

-- 
// AB1002-UANIC



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [devel] Re: Fw: Re: Samba 4 build system - more thoughts on scons
  2005-10-21  6:56 ` Andrei Bulava
@ 2005-10-21 11:28   ` Konstantin A. Lepikhov
  0 siblings, 0 replies; 3+ messages in thread
From: Konstantin A. Lepikhov @ 2005-10-21 11:28 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 633 bytes --]

Hi Andrei!

Friday 21, at 09:56:55 AM you wrote:

<skip>
> У меня постепенно начинает развиваться питонофобия: rpm, yum (какой
> <censored /> додумался рисовать там fancy percent bar так, что это
> поделие жрёт > 12 кБ/с на ssh-сессии?!!), smart, scons, you name it. И
+1 В swup тоже этот percent bar появился. Видимо, у них там уже забыли что
есть еще в мире страны с dialup ;)

-- 
WBR, Konstantin	      chat with ==>ICQ: 109916175
     Lepikhov,	      speak  to ==>JID: lakostis@jabber.org
aka L.A. Kostis       write  to ==>mailto:lakostis@pisem.net.nospam

...The information is like the bank... 			  (c) EC8OR

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-10-21 11:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-20 13:03 [devel] Fw: Re: Samba 4 build system - more thoughts on scons Alexander Bokovoy
2005-10-21  6:56 ` Andrei Bulava
2005-10-21 11:28   ` [devel] " Konstantin A. Lepikhov

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git