<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/src/Makefile.am, branch v8.7</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v8.7</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v8.7'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2010-08-27T21:16:10Z</updated>
<entry>
<title>stat: add %m to output the mount point for a file</title>
<updated>2010-08-27T21:16:10Z</updated>
<author>
<name>Aaron Burgemeister</name>
<email>dajoker@gmail.com</email>
</author>
<published>2010-07-16T01:54:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=ddf6fb8686b1ed6a26d5f1c76a642d0fb5fe7ba7'/>
<id>urn:sha1:ddf6fb8686b1ed6a26d5f1c76a642d0fb5fe7ba7</id>
<content type='text'>
* src/find-mount-point.c: A new file refactoring
find_mount_point() out from df.c
* src/find-mount-point.h: Likewise.
* src/df.c: Use the new find-mount-point module.
* src/stat.c (print_stat): Handle the new %m format.
(find_bind_mount): A new function to
return the bind mount for a file if any.
(out_mount_mount): Print the bind mount for a file, or else
the standard mount point given by the find-mount-point module.
(usage): Document the %m format directive.
* src/Makefile.am: Reference the refactored find-mount-point.c
* po/POTFILES.in: Add find_mount_point.c to the translation list
* doc/coreutils.texi (stat invocation): Document %m,
and how it may differ from the mount point that df outputs.
* test/misc/stat-mount: A new test to correlate mount points
output from df and stat.
* tests/Makefile.am: Reference the new test.
* NEWS: Mention the new feature
* THANKS: Add the author

Signed-off-by: Pádraig Brady &lt;P@draigBrady.com&gt;
</content>
</entry>
<entry>
<title>randread: don't require -lrt</title>
<updated>2010-07-16T22:49:05Z</updated>
<author>
<name>Paul R. Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2010-07-16T21:02:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=e7523efb7d73cefcbd76b499f19fb473f8eb2d13'/>
<id>urn:sha1:e7523efb7d73cefcbd76b499f19fb473f8eb2d13</id>
<content type='text'>
Programs like 'sort' were linking to -lrt in order to get
clock_gettime, but this was misguided: it wasted considerable
resources while gaining at most 10 bits of entropy.  Almost nobody
needs the entropy, and there are better ways to get much better
entropy for people who do need it.
* gl/lib/rand-isaac.c (isaac_seed): Include &lt;sys/time.h&gt; not
"gethrxtime.h".
(isaac_seed): Use gettimeofday rather than gethrxtime.
* gl/modules/randread (Depends-on): Depend on gettimeofday
and not gethrxtime.
* src/Makefile.am (mktemp_LDADD, shred_LDADD, shuf_LDADD, sort_LDADD):
(tac_LDADD): Omit $(LIB_GETHRXTIME); no longer needed.
</content>
</entry>
<entry>
<title>maint: omit $(POW_LIB) when linking, as this is no longer needed</title>
<updated>2010-07-14T14:45:08Z</updated>
<author>
<name>Paul R. Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2010-07-13T23:29:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=66af887e57f6d4f485cf68fc16e9558781b648b6'/>
<id>urn:sha1:66af887e57f6d4f485cf68fc16e9558781b648b6</id>
<content type='text'>
* src/Makefile.am (printf_LDADD, seq_LDADD, sleep_LDADD, sort_LDADD):
(tail_LDADD, uptime_LDADD): Omit $(POW_LIB), as it's no longer
needed due to recent gnulib changes, where the strtod module no
longer uses the pow function.  strtold needs pow only because it's
sometimes aliased to strtod.  See
http://lists.gnu.org/archive/html/bug-gnulib/2010-07/msg00076.html
</content>
</entry>
<entry>
<title>sort: parallelize internal sort</title>
<updated>2010-07-13T00:44:46Z</updated>
<author>
<name>Chen Guo</name>
<email>chenguo4@yahoo.com</email>
</author>
<published>2010-07-09T07:03:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=9face836f36c507f01a7d7a33138c5a303e3b1df'/>
<id>urn:sha1:9face836f36c507f01a7d7a33138c5a303e3b1df</id>
<content type='text'>
This patch is by Gene Auyeung, Chris Dickens, Chen Guo, and Mike
Nichols, based off of a patch by Paul Eggert, Glen Lenker, et. al.,
with a basic heap implementation based off of the GDSL heap,
originally by Nicolas Darnis.

The number of sorts done in parallel is limited to the number
of available processors by default, or can be further restricted
with the --parallel option.

On a dual-die, 8 core Intel Xeon, results show sorting with
8 threads is almost 4 times faster than using a single thread.
Timings when sorting a 96MB file:
THREADS     TIME (s)
1            5.10
2            2.87
4            1.75
8            1.31

Single threaded sorting has also been improved,
especially for cheaper comparison operations:
COMMAND             BEFORE (s)  AFTER (s)
sort                 8.822       8.716
sort -g             10.336      10.222
sort -n              3.077       2.961
LANG=C sort          2.169       2.066

* bootstrap.conf: Add heap, pthread.
* coreutils.texi (sort): Describe the new --parallel option.
* gl/lib/heap.c: New file. Very basic heap implementation.
* gl/lib/heap.h: New file.
* gl/modules/heap: New file.
* src/Makefile.am: Add LIB_PTHREAD.
* src/sort.c: Include heap.h, nproc.h, pthread.h.
(MAX_MERGE): New macro.
(SUBTHREAD_LINES_HEURISTIC, PARALLEL_OPTION): New constants.
(MERGE_END, MERGE_ROOT): New constants.
(struct merge_node): New struct.
(struct merge_node_queue): New struct.
(sortlines temp): Remove declaration.
(usage, long_options, main): New option, --parallel.
(specify_nthreads): New function.
(mergelines): New signature, to emphasize the fact that the HI area
must be part of the destination.  All callers changed.
(sequential_sort): New function, renamed from sortlines. Merge in
the functionality of sortlines_temp.
(compare_nodes): New function.
(lock_node, unlock_node): New functions.
(queue_destroy): New function.
(queue_init): New function.
(queue_insert): New function.
(queue_pop): New function.
(write_unique): New function.
(mergelines_node): New function.
(check_insert): New function.
(update_parent): New function.
(merge_loop): New function.
(sortlines): Rewrite to support and use parallelism, with a new
signature. All callers changed.
(struct thread_args): New struct.
(sortlines_thread): New function.
(sortlines_temp): Remove.
(sort): New argument NTHREADS. All uses changed. Output moved to
mergelines_node.
(main): disable threading if we are sorting at random.
* tests/Makefile.am (TESTS): Add misc/sort-benchmark-random.
* tests/misc/sort-benchmark-random: New file.

Signed-off-by: Pádraig Brady &lt;P@draigBrady.com&gt;
</content>
</entry>
<entry>
<title>maint: remove unneeded double quotes on RHS of shell assignments</title>
<updated>2010-05-25T10:32:03Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2010-05-25T10:32:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=55db9a39a818e82324e1304e5d886aa2cf137092'/>
<id>urn:sha1:55db9a39a818e82324e1304e5d886aa2cf137092</id>
<content type='text'>
Run this command:
  git grep -l 'LC_[A-Z]*="' \
    | xargs perl -pi -e 's/(LC_[A-Z]*)="(.*?)"/$1=$2/'
* src/Makefile.am: Write LC_ALL=$$locale, not LC_ALL="$$locale".
* src/date.c (main): Similar, in a comment.
* tests/misc/sort-month: Write LC_ALL=$LOC, not LC_ALL="$LOC".
</content>
</entry>
<entry>
<title>maint: fix the fs-magic-compare rule</title>
<updated>2010-05-17T14:10:24Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2010-05-17T14:10:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=5e82d241d06b8bb887101b0f4f38e785b80e7fcf'/>
<id>urn:sha1:5e82d241d06b8bb887101b0f4f38e785b80e7fcf</id>
<content type='text'>
* src/Makefile.am (fs-def): Sort definitions.
This is required by fs-magic-compare's use of join.
</content>
</entry>
<entry>
<title>tests: fix exit status of signal handlers in shell scripts</title>
<updated>2010-04-23T13:44:19Z</updated>
<author>
<name>Dmitry V. Levin</name>
<email>ldv@altlinux.org</email>
</author>
<published>2010-01-30T16:02:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=c0a121c9bccc6175dc3cdb705e2ec8cb2be9f71c'/>
<id>urn:sha1:c0a121c9bccc6175dc3cdb705e2ec8cb2be9f71c</id>
<content type='text'>
The value of `$?' on entrance to signal handlers in shell scripts
cannot be relied upon, so set the exit code explicitly.

* cfg.mk (sc_always_defined_macros, sc_system_h_headers): Set
the exit code in signal handler explicitly to 128 + SIG&lt;SIGNAL&gt;.
* src/Makefile.am (sc_tight_scope): Likewise.
* tests/test-lib.sh: Likewise.
</content>
</entry>
<entry>
<title>maint: fix build on platforms that replace strsignal</title>
<updated>2010-04-15T23:55:43Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2010-04-15T16:34:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=62dd4b63c5dc8c5ea37328f042c4ce4eaf41de9d'/>
<id>urn:sha1:62dd4b63c5dc8c5ea37328f042c4ce4eaf41de9d</id>
<content type='text'>
* src/Makefile.am (kill_LDADD): Add $(LIBTHREAD) so that
we link with the appropriate libraries to provide Thread Local Storage
on platforms that replace strsignal (like AIX for example).

Tested-by: Daniel Richard G. &lt;danielg@teragram.com&gt;
</content>
</entry>
<entry>
<title>build: update after change in gnulib's lib-ignore module</title>
<updated>2010-03-29T06:28:51Z</updated>
<author>
<name>Bruno Haible</name>
<email>bruno@clisp.org</email>
</author>
<published>2010-03-29T06:25:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=0f5dc96354bf73afb84dacf79f2d1072d0fe74fe'/>
<id>urn:sha1:0f5dc96354bf73afb84dacf79f2d1072d0fe74fe</id>
<content type='text'>
* src/Makefile.am (AM_LDFLAGS): Define.  Use gnulib's new
$(IGNORE_UNUSED_LIBRARIES_CFLAGS).
</content>
</entry>
<entry>
<title>revert "maint: mark makefile "dist-hook" target as PHONY"</title>
<updated>2010-03-18T20:08:07Z</updated>
<author>
<name>Ralf Wildenhues</name>
<email>Ralf.Wildenhues@gmx.de</email>
</author>
<published>2010-03-18T20:07:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=cab29edcf1f4f124d92a61e17623d6613487dbe7'/>
<id>urn:sha1:cab29edcf1f4f124d92a61e17623d6613487dbe7</id>
<content type='text'>
* src/Makefile.am (dist-hook): Do not mark this target
as PHONY, explicitly.  Automake does it for us.
</content>
</entry>
</feed>
