From: Aleksandar Ristovski <aleksandar.ristovski@gmail.com>
To: dash@vger.kernel.org
Subject: shell: dash - large file support
Date: Fri, 24 Jul 2015 14:50:48 -0400 [thread overview]
Message-ID: <CAPaOzWwJkwozmDrk2BA5xHF+E6iM5mDrV9ORz=4RiFCdsKYbZA@mail.gmail.com> (raw)
Hello,
For builds that build 32-bit dash, configure misses to setup large
file support resulting in issues with large files.
For example:
...dp/dash-0.5.8/build$ ls -l /tmp/largefile.sh
-rw-rw-r-- 1 aristovski aristovski 3794653588 Jul 24 14:12 /tmp/largefile.sh
...dp/dash-0.5.8/build$ ./src/dash /tmp/largefile.sh
./src/dash: 0: Can't open /tmp/largefile.sh
Where dash was configured (on a 64-bit platform) like so:
...dp/dash-0.5.8/build$ CFLAGS=-m32 ../configure && make -j8
Now, if I make the change in configure.ac and reconfigure the project,
I get proper operation:
...0.5.8.patched/build$ ./src/dash /tmp/largefile.sh
Running...
...
(the actual working of the 'largefile.sh' is removed for brevity)
Thank you,
Aleksandar Ristovski
Patch:
--- dash-0.5.8/configure.ac 2014-09-28 04:19:32.000000000 -0400
+++ dash-0.5.8.patched/configure.ac 2015-07-24 14:41:05.855055430 -0400
@@ -4,6 +4,9 @@ AC_CONFIG_SRCDIR([src/main.c])
AC_CONFIG_HEADERS(config.h)
+dnl On 32-bit builds, check for large file support
+AC_SYS_LARGEFILE
+
dnl Checks for programs.
AC_PROG_CC
AC_GNU_SOURCE
next reply other threads:[~2015-07-24 18:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-24 18:50 Aleksandar Ristovski [this message]
2015-07-26 19:21 ` shell: dash - large file support Jilles Tjoelker
2015-07-28 2:25 ` Herbert Xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAPaOzWwJkwozmDrk2BA5xHF+E6iM5mDrV9ORz=4RiFCdsKYbZA@mail.gmail.com' \
--to=aleksandar.ristovski@gmail.com \
--cc=dash@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).