netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* xtables addons; mktemp
@ 2010-07-03  1:59 martinbarrowcliff
  2010-07-03  6:30 ` Jan Engelhardt
  0 siblings, 1 reply; 2+ messages in thread
From: martinbarrowcliff @ 2010-07-03  1:59 UTC (permalink / raw)
  To: netfilter-devel

This is a small but annoying issue.
With my embedded firewall system the busybox mktemp function
fails due to unsupported flags, so the xtables-addons build fails
on the native toolchain. This can be fixed.
I hacked the code to make it work properly however I won't send
a patch because it is a amateur hack, and not a proper fix.
I think this issue should be considered, because so many appliances
do use busybox and some may even have a working toolchain...

make[1]: Leaving directory 
`/usr/src/source/build/firewall/xtables-addons-1.27/extensions'
mktemp: invalid option -- u
BusyBox v1.16.2 (2010-06-30 20:04:07 EDT) multi-call binary.

Usage: mktemp [-dt] [-p DIR] [TEMPLATE]

Create a temporary file with name based on TEMPLATE and print its name.
TEMPLATE must end with XXXXXX (e.g. [/dir/]nameXXXXXX).

Options:
        -d      Make a directory instead of a file
        -t      Generate a path rooted in temporary directory
        -p DIR  Use DIR as a temporary directory (implies -t)

For -t or -p, directory is chosen as follows:
$TMPDIR if set, else -p DIR, else /tmp

Thanks much,

Marty B.




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

* Re: xtables addons; mktemp
  2010-07-03  1:59 xtables addons; mktemp martinbarrowcliff
@ 2010-07-03  6:30 ` Jan Engelhardt
  0 siblings, 0 replies; 2+ messages in thread
From: Jan Engelhardt @ 2010-07-03  6:30 UTC (permalink / raw)
  To: martinbarrowcliff; +Cc: Netfilter Developer Mailing List

On Saturday 2010-07-03 03:59, martinbarrowcliff wrote:

> With my embedded firewall system the busybox mktemp function
> fails due to unsupported flags, so the xtables-addons build fails
> on the native toolchain.
> I think this issue should be considered, because so many appliances
> do use busybox and some may even have a working toolchain...
>
> make[1]: Leaving directory
> `/usr/src/source/build/firewall/xtables-addons-1.27/extensions'
> mktemp: invalid option -- u

The fact that $(shell mktemp -dtu) fails should not abort the 
build. I can pick a standard system, add the unknown option -x, and 
still have make succeed as long as you don't try to execute the make 
tarball target.

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

end of thread, other threads:[~2010-07-03  6:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-03  1:59 xtables addons; mktemp martinbarrowcliff
2010-07-03  6:30 ` Jan Engelhardt

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).