mailing list of musl libc
 help / color / mirror / code / Atom feed
* Re: [PATCH] Build process uses script to add CFI directives to x86 asm
@ 2015-05-19 16:22 Alex Dowad
  2015-05-20  7:27 ` Raphael Cohn
  2015-05-20  9:55 ` u-wsnj
  0 siblings, 2 replies; 4+ messages in thread
From: Alex Dowad @ 2015-05-19 16:22 UTC (permalink / raw)
  To: musl

> configure already uses its own echo definition

> so ash's echo should not be used

> how did the config script end up calling ash's echo?

OK, thanks for pointing this out. I shouldn't have said that the problem was
with ash's echo.

The original configure script worked when I ran it on Linux Mint + bash, and didn't
work on Alpine Linux + BusyBox ash. I didn't notice echo() in the configure script,
did some experimentation with bash's echo and ash's, found a difference which seemed
to explain the observed problem, and worked around it.

Now it looks like the issue was something else. I can't seem to duplicate the problem
right this moment; however, the configure script as it is right now works on both
platforms.

Mysteries, mysteries...

AD


^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: [PATCH] Build process uses script to add CFI directives to x86 asm
@ 2015-05-20 17:08 Alex Dowad
  2015-05-20 18:07 ` Szabolcs Nagy
  0 siblings, 1 reply; 4+ messages in thread
From: Alex Dowad @ 2015-05-20 17:08 UTC (permalink / raw)
  To: musl

> 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


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

end of thread, other threads:[~2015-05-20 18:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-19 16:22 [PATCH] Build process uses script to add CFI directives to x86 asm Alex Dowad
2015-05-20  7:27 ` Raphael Cohn
2015-05-20  9:55 ` u-wsnj
2015-05-20 17:08 Alex Dowad
2015-05-20 18:07 ` Szabolcs Nagy

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).