From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7724 Path: news.gmane.org!not-for-mail From: Alex Dowad Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH] Build process uses script to add CFI directives to x86 asm Date: Wed, 20 May 2015 19:08:19 +0200 Message-ID: <20150520170819.GA24879@alex-ThinkPad-L530> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1432141722 24167 80.91.229.3 (20 May 2015 17:08:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 May 2015 17:08:42 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-7736-gllmg-musl=m.gmane.org@lists.openwall.com Wed May 20 19:08:42 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Yv7U1-0002tT-19 for gllmg-musl@m.gmane.org; Wed, 20 May 2015 19:08:41 +0200 Original-Received: (qmail 22241 invoked by uid 550); 20 May 2015 17:08:39 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 22202 invoked from network); 20 May 2015 17:08:35 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=O0oJESpBoo8E8AdGoaL1Krjn3Tm+HLCSbqofxhCSaQY=; b=WN+f/A+UBYCt+P8O0TKksS0RuFgZr2zExWuDSqj9gmMEulDUEkukPcVW5u8oam7Jdh BvbQsZ6cdJ6o/MEvPyToVZp1xSwCcsAhGrbo19ljddAAMjcWcrgcDRzAJLvsf6RBtveL lzFM2j3wChMDOnh4nLu/UTQ+GXbQQQf0hCv5Hrc0RWubl3fbkJjUYaQUmTsPBjNw/vOp Wf4fuFioG3nTwtAEfXrscWdVs2pXiaJZynAVyKkVNnFrPS0QPLTVlQwrqBljcjl583o4 WtPqcVqrIPmJJhk7yWX9RIsnNbzP6xR/YST5ifjZcfX/l5UdUID/+Ozz7Z3G+cK3b393 gJuQ== X-Received: by 10.194.60.43 with SMTP id e11mr31013381wjr.36.1432141704269; Wed, 20 May 2015 10:08:24 -0700 (PDT) Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:7724 Archived-At: > Writing portable shell script is a little hard, but I've found a good > approach is to make something ancient like pdksh a symlink for /bin/sh and > even /bin/bash - typically in a small VM. This makes it much more likely > that your code will work without big changes on AIX, BSDs, etc. The other > way is to use dash, not BusyBox ash, as BusyBox ash includes a few bashisms > depending on the configure options at build time. Just tried swapping all references to /bin/sh to /bin/pdksh instead -- the config script ran just fine and musl was built correctly (with the added CFI data). Same with /bin/dash. Thanks for the idea -- I will keep it in mind next time I am writing shell. Maintainers: is there still anything blocking this patch from getting merged in? Please let me know so I can fix any remaining problems. Thanks, Alex Dowad