From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17346 invoked by alias); 12 May 2014 20:10:51 -0000 Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Received: (qmail 17334 invoked by uid 89); 12 May 2014 20:10:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-we0-f170.google.com Received: from mail-we0-f170.google.com (HELO mail-we0-f170.google.com) (74.125.82.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 12 May 2014 20:10:49 +0000 Received: by mail-we0-f170.google.com with SMTP id u57so7458373wes.15 for ; Mon, 12 May 2014 13:10:45 -0700 (PDT) X-Received: by 10.180.98.232 with SMTP id el8mr17239296wib.27.1399925445749; Mon, 12 May 2014 13:10:45 -0700 (PDT) Received: from ymorin.is-a-geek.org (ks3095497.kimsufi.com. [94.23.60.27]) by mx.google.com with ESMTPSA id xm20sm17876486wib.19.2014.05.12.13.10.43 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 12 May 2014 13:10:44 -0700 (PDT) Received: by ymorin.is-a-geek.org (sSMTP sendmail emulation); Mon, 12 May 2014 22:10:42 +0200 Date: Mon, 12 May 2014 20:10:00 -0000 From: "Yann E. MORIN" To: Bryce Schober Cc: crossgcc@sourceware.org Subject: Re: saveconfig is dropping configurations Message-ID: <20140512201042.GC3619@free.fr> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.22 (2013-10-16) X-IsSubscribed: yes X-SW-Source: 2014-05/txt/msg00045.txt.bz2 Bryce, All, Sorry for the delay... :-( On 2013-12-16 14:37 -0800, Bryce Schober spake thusly: > When I saveconfig after loading a modified sample containing the > following configuration, it drops the configurations for > CT_LOCAL_TARBALLS_DIR, CT_PREFIX_DIR, and CT_LIBC_GLIBC_FORCE_UNWIND. > This makes any round-tripping through menuconfig and saveconfig not > work properly. > > This is on latest tip - I haven't yet tried going back in time to a > released version. > > Is this a bug, or am I missing something? This is on purpose. The code responsible for that is in: scripts/saveSample.sh.in We drop those configurations because we want the samples to be re-useable as-is by other users. Samples are meant to be bundled in crosstool-NG, so we do want any user to be able to use them. For example, if you were to store the prefix' or tarballs' directory in the sample, then what would ensure that those locations are valid on any other user's machine? The only way it is is to use the defaults for those variables, which default to a sub-dir in ${HOME}, which is the only location we can guarantee is writeable by the user. On the other hand, if you want to save a minimal defconfig, you can use: ct-ng savedefconfig which creates a file named 'defconfig' in the current directory. Note the difference between a sample and a defconfig, however: - sampels will save both the crosstool-Ng configuration *and* any associated file (eg. the uClibc .config file). - a defconfig will only save a crosstool-Ng minimal defconfig, and no associted file As for CT_LIBC_GLIBC_FORCE_UNWIND, it gets dropped because it defaults to being set. Did you miss it when recalling a sample? Regards, Yann E. MORIN. -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' -- For unsubscribe information see http://sourceware.org/lists.html#faq