From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-2.6 required=3.0 tests=BAYES_00,BODY_8BITS, MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 585131F4B4 for ; Tue, 15 Sep 2020 14:18:12 +0000 (UTC) Received: from localhost ([::1]:58268 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kIBmc-0005uB-UA for normalperson@yhbt.net; Tue, 15 Sep 2020 10:18:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53834) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIBlJ-0004CC-G8 for bug-gnulib@gnu.org; Tue, 15 Sep 2020 10:16:49 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:45662) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kIBlI-00007a-FD; Tue, 15 Sep 2020 10:16:48 -0400 Received: from c-71-198-222-86.hsd1.ca.comcast.net ([71.198.222.86]:46316 helo=[172.16.16.102]) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1kIBlH-0005SB-UB; Tue, 15 Sep 2020 10:16:48 -0400 Subject: Re: Trying to bootstrap my project, distcheck doesn't configure To: Bruno Haible , bug-gnulib@gnu.org References: <87d02ob434.fsf@herbrand> <3d79d3ef-2a5c-c122-09aa-dd55ad460c3b@gnu.org> <2357683.mymbEOZtgl@omega> From: Bruce Korb Message-ID: <4725cba4-3dc2-314a-0e1d-fb48c1a51540@gnu.org> Date: Tue, 15 Sep 2020 07:16:45 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <2357683.mymbEOZtgl@omega> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" Hi Bruno, On 9/14/20 3:53 PM, Bruno Haible wrote: > Hi Bruce, > > It would help if you would give a pointer to the source code you are > trying to bootstrap. Because a single line in Makefile.am or configure.ac > can have a big effect. It lives on my home machine while I try to get it ready for prime time. As you may recollect, autogen is a monster. You can pull a copy from GNU's git repo, if you're interested: https://savannah.gnu.org/git/?group=autogen > It is documented here: > https://www.gnu.org/software/gnulib/manual/html_node/Modified-build-rules.html Apparently, somewhere along the line I added "--lib=do_not_make_me". That had to have been years ago and I have no recollection of adding that. Anyway, that triggered some do_not_make_me_la_SOURCE += whatever stuff, which was not added previously. I have no idea how those names get selected, but after a grep, sed and unique sort, I came up with this list: > EXTRA_do_not_make_me_la_SOURCES = > do_not_make_me_la_DEPENDENCIES  = > do_not_make_me_la_LIBADD        = > do_not_make_me_la_SOURCES       = These aren't documented on that page. I googled for "do_not_make_me" and got no results, tho were I to do it today, I'd likely get this email thread. :) Anyway, I am gathering from reading what you've pointed to that the grep/sed/sort accommodation is the right solution. Thank you. Regards, Bruce For your possible (unlikely?) entertainment: > fix_do_not_make_me() { >     local fix_list=$( >         grep -l FIX-DO-NOT-MAKE-ME \ >              $(find * -type f -name 'Makefile.am')) >     local sedcmd= vlist= f= v= > >     for f in $fix_list >     do >         sedcmd=$'/^##* *FIX-DO-NOT-MAKE-ME/ {\ns/.*//\n' >         vlist=$(sed -n '/do_not_make_me/s/ *[+=].*//p' $f | \ >                     sort -u) >         if test ${#vlist} -gt 1 >         then >             sedcmd+=$'i\\\n' >             for v in $vlist >             do >                 sedcmd+="$(printf '%-32s=' $v)"$'\\\n' >             done >             sedcmd+=$'\n' >         fi >         sedcmd+='}' > >         sed "$sedcmd" $f > $f.make-me-fixed >         mv -f $f.make-me-fixed $f >     done > }