From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45560) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5W6V-0005mM-Qg for qemu-devel@nongnu.org; Thu, 18 Jun 2015 05:27:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z5W6R-0001wX-Cm for qemu-devel@nongnu.org; Thu, 18 Jun 2015 05:27:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47105) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5W6R-0001wS-6j for qemu-devel@nongnu.org; Thu, 18 Jun 2015 05:27:19 -0400 Date: Thu, 18 Jun 2015 10:27:14 +0100 From: "Daniel P. Berrange" Message-ID: <20150618092714.GE20998@redhat.com> References: <553E0514.5030700@msgid.tls.msk.ru> <553E115B.40303@redhat.com> <5581BB90.2030802@msgid.tls.msk.ru> <5581C9E2.70103@redhat.com> <5581D560.3080601@msgid.tls.msk.ru> <55827CD2.8080306@redhat.com> <55827D1E.7050104@msgid.tls.msk.ru> <55827EC2.9080302@redhat.com> <87bngd2xli.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <87bngd2xli.fsf@blackfin.pond.sub.org> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] libcacard: use the library? Reply-To: "Daniel P. Berrange" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: Paolo Bonzini , Michael Tokarev , qemu-devel On Thu, Jun 18, 2015 at 11:07:53AM +0200, Markus Armbruster wrote: > Paolo Bonzini writes: >=20 > > On 18/06/2015 10:11, Michael Tokarev wrote: > >> 18.06.2015 11:09, Paolo Bonzini =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > >>> On 17/06/2015 22:15, Michael Tokarev wrote: > >>>> I tried autoconf&automake&libtool. It is a HugeMess, I disliked i= t. > >>>> So I rewrote it as a simple shell script. > >>>> > >>>> The result of both attempts is available at http://www.corpit.ru/m= jt/tmp/libcacard/ > >>>> There are 4 files in there: > >>>> > >>>> configure.ac Makefile.am -- auto*shit version, requires bootstrap= like > >>>> libtoolize && aclocal && automake --foreign --add-missing && aut= oconf > >>> > >>> More like autoreconf -fvi. > >>=20 > >> My 10-minute expirience with auto*tools did't go that far :) > > > > You got everything else right, though. Kudos. > > > >>>> configure Makefile.in -- my small version based on what qemu ./co= nfigure > >>>> currently does. > >>> > >>> Doesn't have dependency tracking. That's already a no-no I think. > >>=20 > >> Well, it is trivial to add. For a first cut it works. > > > > And then it will be something else with cross-compilation, or somethi= ng > > else. Let's just use autotools and call it a day... >=20 > In my experience, the Autotools are the worst build system, except for > all the others. And home grown systems that attempt to superficially look like autoconf, eg qemu's configure, are the worst of all, because they give the poor users false hope that behaviour will be like all autotools apps. > Libtool is particularly horrible. But when you actually have the > problem it solves (building shared libraries on almost every rotten OS > known to man), you're in a particularly horrible place already. >=20 > So, Paolo's recommendation seconded. Agreed. I'm happy to review any autoconf conversion, as I've maintained obscenely complicated autoconf scripts (eg libvirts :-) Regards, Daniel --=20 |: http://berrange.com -o- http://www.flickr.com/photos/dberrange= / :| |: http://libvirt.org -o- http://virt-manager.or= g :| |: http://autobuild.org -o- http://search.cpan.org/~danberr= / :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vn= c :|