Debian Codegraph @

ChangeLog

raw
1 2024-08-27 Colin Watson <[email protected]>
2
3 Version: 1.5.8
4
5 * lib/Makefile.am (libpipeline_la_LDFLAGS): Bump -version-info to 6:8:5.
6
7 2024-08-27 Colin Watson <[email protected]>
8
9 Recommend nullptr for varargs termination
10
11 This is safer than `NULL`, which some platforms define to be `0` rather
12 than `(void *) 0` (see
13 https://thephd.dev/c23-is-coming-here-is-what-is-on-the-menu#n3042---introduce-the-nullptr-constant).
14 If it isn't available, `(void *) 0` is a better fallback than `NULL`.
15
16 * README.md, man/libpipeline.3, web/index.html: Recommend `nullptr` or
17 `(void *) 0` rather than `NULL` where used to terminate variadic
18 argument lists.
19
20 2024-08-27 Colin Watson <[email protected]>
21
22 Update links to man-db
23
24 * README.md, web/index.html: Link to <https://man-db.gitlab.io/man-db/>
25 rather than <https://nongnu.org/man-db>.
26
27 2024-08-04 Colin Watson <[email protected]>
28
29 Use C23-style nullptr
30
31 * bootstrap.conf (gnulib_modules): Add `nullptr`.
32 * lib/pipeline.c, tests/basic.c, tests/common.c, tests/exec.c,
33 tests/inspect.c, tests/pump.c, tests/redirect.c: Replace `(void *) 0`
34 with `nullptr`.
35 * NEWS.md: Document this.
36
37 2024-07-14 Colin Watson <[email protected]>
38
39 Update pre-commit hooks
40
41 * .pre-commit-config.yaml (pre-commit-hooks): Update to v4.6.0.
42 (clang-format): Update to v18.1.8.
43
44 2024-07-14 Colin Watson <[email protected]>
45
46 Upgrade to Gnulib stable-202407
47
48 * bootstrap: Sync to Gnulib 0ba13435a9362bec0ff5fd0830907b9fac723e41.
49 * bootstrap.conf (GNULIB_REVISION): Set to
50 0ba13435a9362bec0ff5fd0830907b9fac723e41.
51 * NEWS.md: Document this.
52
53 2024-03-16 Colin Watson <[email protected]>
54
55 Update pre-commit hooks
56
57 * .pre-commit-config.yaml (clang-format): Update to v18.1.1.
58
59 2024-01-20 Colin Watson <[email protected]>
60
61 Update pre-commit hooks
62
63 * .pre-commit-config.yaml (pre-commit-hooks): Update to v4.5.0.
64 (clang-format): Update to v17.0.6.
65 * lib/pipeline.c, lib/pipeline.h, tests/common.h: Reformat macro
66 definitions.
67
68 2024-01-20 Colin Watson <[email protected]>
69
70 Upgrade to Gnulib stable-202401
71
72 * bootstrap: Sync to Gnulib c78af17a931bb36e00c5f698b7fd37deb4a87f58.
73 * bootstrap.conf (GNULIB_REVISION): Set to
74 c78af17a931bb36e00c5f698b7fd37deb4a87f58.
75 * NEWS.md: Document this.
76
77 2023-12-08 Colin Watson <[email protected]>
78
79 Upgrade to Gnulib stable-202307 as of 20231208
80
81 * bootstrap.conf (GNULIB_REVISION): Set to
82 51ff7c1242903bcc90b35baf5ec2e6a176cf912a.
83
84 2023-09-21 Colin Watson <[email protected]>
85
86 Explain how to generate INSTALL
87
88 * README.md: Explain that you may need to run `./bootstrap` to create
89 `INSTALL`.
90
91 2023-07-22 Colin Watson <[email protected]>
92
93 Upgrade to Gnulib stable-202307
94
95 * bootstrap: Sync to Gnulib b7f7ed06961454cdf77b93c6c00c3e3f26202663.
96 * bootstrap.conf (GNULIB_REVISION): Set to
97 b7f7ed06961454cdf77b93c6c00c3e3f26202663.
98 * NEWS.md: Document this.
99
100 2023-03-02 Colin Watson <[email protected]>
101
102 Update pre-commit hooks
103
104 * .pre-commit-config.yaml (clang-format): Update to v15.0.7.
105
106 2023-03-02 Colin Watson <[email protected]>
107
108 Upgrade to Gnulib stable-202301 as of 20230209
109
110 * bootstrap.conf (GNULIB_REVISION): Set to
111 c5dc86ca5c2e5c16177508bc32afe755b7995685.
112
113 2023-01-14 Colin Watson <[email protected]>
114
115 Copy files during bootstrapping
116
117 * .gitlab-ci.yml (bootstrap): Run `./bootstrap` with `--copy`.
118
119 2023-01-14 Colin Watson <[email protected]>
120
121 Tighten regex
122
123 * .pre-commit-config.yaml (pre-commit-hooks): Tighten `files` regex for
124 `file-contents-sorter`.
125
126 2023-01-14 Colin Watson <[email protected]>
127
128 Ensure that .gitignore remains sorted
129
130 * .pre-commit-config.yaml (pre-commit-hooks): Add `file-contents-sorter`
131 for `.gitignore`.
132
133 2023-01-14 Colin Watson <[email protected]>
134
135 Update pre-commit hooks
136
137 * .pre-commit-config.yaml (pre-commit-hooks): Update to v4.4.0.
138 (clang-format): Update to v15.0.6.
139
140 2023-01-14 Colin Watson <[email protected]>
141
142 Document Automake >= 1.14 requirement
143
144 * NEWS.md: Document that Gnulib now requires Automake >= 1.14.
145
146 2023-01-14 Colin Watson <[email protected]>
147
148 Upgrade to Gnulib stable-202301
149
150 * bootstrap: Sync to Gnulib 32a72f45374c9a36afa574d1a08bb98090270012.
151 * bootstrap.conf (GNULIB_REVISION): Set to
152 32a72f45374c9a36afa574d1a08bb98090270012.
153 (buildreq): Bump required automake version to 1.14.
154 * configure.ac (AM_INIT_AUTOMAKE): Bump to 1.14.
155 * NEWS.md: Document this.
156
157 2022-11-13 Colin Watson <[email protected]>
158
159 web: Update last release
160
161 * web/index.html: Update to 1.5.7.
162
163 2022-11-13 Colin Watson <[email protected]>
164
165 Version: 1.5.7
166
167 * lib/Makefile.am (libpipeline_la_LDFLAGS): Bump -version-info to 6:7:5.
168
169 2022-11-13 Colin Watson <[email protected]>
170
171 Make socketpair configure tests compatible with C23
172
173 K&R-style zero-argument function definitions will no longer be
174 permitted.
175
176 * m4/pipeline-socketpair.m4 (PIPELINE_SOCKETPAIR_PIPE,
177 PIPELINE_SOCKETPAIR_MODE): Use `int main(void)`, not `int main()`.
178 * NEWS.md: Document this.
179
180 2022-08-12 Colin Watson <[email protected]>
181
182 Update pre-commit hooks
183
184 * .pre-commit-config.yaml (pre-commit-hooks): Update to v4.3.0.
185 (clang-format): Update to v14.0.6.
186
187 2022-06-03 Colin Watson <[email protected]>
188
189 Update manual page date
190
191 * man/libpipeline.3 (.Dd): Update to the date of the last substantial
192 modification. Leaving this as 2010 suggested more antiquity than we
193 need to suggest.
194
195 2022-06-03 Colin Watson <[email protected]>
196
197 Update home page URL
198
199 * README.md: Use `https://libpipeline.gitlab.io/libpipeline/`.
200 * lib/libpipeline.pc.in (URL): Likewise.
201
202 2022-06-03 Colin Watson <[email protected]>
203
204 web: Update last release
205
206 * web/index.html: Update to 1.5.6.
207
208 2022-06-03 Colin Watson <[email protected]>
209
210 web: Fix last-modified date generation
211
212 * .gitlab-ci.yml: Replace `@DATE@` with the current date in
213 `public/index.html`.
214 * web/index.html: Use `@DATE@` template.
215
216 2022-06-03 Colin Watson <[email protected]>
217
218 web: Assorted URL updates
219
220 * web/index.html: Update Git URLs to GitLab. Chase various redirects
221 and/or switch to HTTPS. Remove old Savannah link.
222
223 2022-06-03 Colin Watson <[email protected]>
224
225 Add GitLab Pages site
226
227 * .gitlab-ci.yml (stages): Add deploy.
228 (pages): New job.
229 * web/index.html, web/libpipeline-lightning-talk.odp, web/standard.css,
230 web/white.css: New files.
231
232 2022-06-03 Colin Watson <[email protected]>
233
234 Transferred Git repository to new group
235
236 * README.md: Change GitLab URL to
237 https://gitlab.com/libpipeline/libpipeline.
238 * NEWS.md: Document this.
239
240 2022-04-28 Colin Watson <[email protected]>
241
242 Add notes to libpipeline(3) of when functions were added
243
244 * man/libpipeline.3 (DESCRIPTION, ENVIRONMENT): Add various "Added in"
245 notes.
246 * NEWS.md: Document this.
247
248 2022-04-23 Colin Watson <[email protected]>
249
250 Version: 1.5.6
251
252 * lib/Makefile.am (libpipeline_la_LDFLAGS): Bump -version-info to 6:6:5.
253
254 2022-04-23 Colin Watson <[email protected]>
255
256 gitlab-ci: Run tests with VERBOSE=1
257
258 This makes it easier to diagnose test failures.
259
260 * .gitlab-ci.yml (build-distcheck:script, build-out-of-tree:script): Set
261 VERBOSE=1.
262
263 2022-04-23 Colin Watson <[email protected]>
264
265 Update pre-commit hooks
266
267 * .pre-commit-config.yaml (pre-commit-hooks): Update to v4.2.0.
268 (clang-format): Update to v14.0.1.
269 * lib/pipeline-private.h, lib/pipeline.h: Reformat enum definitions.
270
271 2022-04-23 Colin Watson <[email protected]>
272
273 Fix handling of leading whitespace in argstr functions
274
275 Fixes Savannah bug #62355 (in man-db).
276
277 * lib/pipeline.c (argstr_get_word): Skip whitespace at the start of
278 words rather than at the end; leading whitespace otherwise resulted in
279 prematurely returning NULL.
280 * tests/argstr.c (test_argstr_excess_whitespace): New test.
281 (argstr_suite): Call test_argstr_excess_whitespace.
282 * NEWS.md: Document this.
283
284 2022-04-23 Colin Watson <[email protected]>
285
286 Simplify static analysis of fatal errors
287
288 The usual idiom for fatal error reporting in libpipeline is `error
289 (FATAL, ...)` (there are a few cases using different exit codes, but
290 they're less common). Unfortunately, there's no easy way to tell the
291 compiler that this call doesn't return, because `error (0, ...)` *does*
292 return. As a result, some call sites required extra work to give the
293 compiler this information, which can sometimes make a difference to
294 static analysis.
295
296 To simplify this, add a new `fatal` helper function which always exits
297 `FATAL` (i.e. 2) and never returns. This is declared with
298 `PIPELINE_ATTR_NORETURN` so that the compiler can straightforwardly know
299 what's going on.
300
301 * bootstrap.conf (gnulib_modules): Add verror.
302 * lib/fatal.c, lib/fatal.h: New files.
303 * lib/Makefile.am (libpipeline_la_SOURCES): Add fatal.c and fatal.h.
304
305 * lib/pipeline.c (pipecmd_new_argstr, pipecmd_exec,
306 pipeline_install_sigchld, pipeline_start, pipeline_wait_all,
307 pipeline_pump): Use fatal.
308
309 2022-02-08 Colin Watson <[email protected]>
310
311 Explicitly import Gnulib raise module
312
313 It was already implicitly included, but we explicitly use the raise
314 function in pipecmd_exec and pipeline_wait_all.
315
316 * bootstrap.conf (gnulib_modules): Add raise.
317
318 2022-01-16 Colin Watson <[email protected]>
319
320 Update to Gnulib 20220116
321
322 * bootstrap: Sync to Gnulib 1eae0f7ea3c220d054025f2c9211700665f9f4a0.
323 * bootstrap.conf (GNULIB_REVISION): Set to
324 1eae0f7ea3c220d054025f2c9211700665f9f4a0.
325
326 2022-01-16 Colin Watson <[email protected]>
327
328 Update pre-commit hooks
329
330 * .pre-commit-config.yaml (pre-commit-hooks): Update to v4.1.0.
331
332 2022-01-03 Colin Watson <[email protected]>
333
334 Version: 1.5.5
335
336 * lib/Makefile.am (libpipeline_la_LDFLAGS): Bump -version-info to 6:5:5.
337
338 2022-01-03 Colin Watson <[email protected]>
339
340 Document recent changes
341
342 * NEWS: Document changes since 1.5.4.
343
344 2022-01-03 Colin Watson <[email protected]>
345
346 Remove release.sh
347
348 GitLab CI handles building releases now.
349
350 * release.sh: Remove.
351 * Makefile.am (EXTRA_DIST): Remove release.sh.
352
353 2022-01-03 Colin Watson <[email protected]>
354
355 Add release automation
356
357 When a tag is pushed to GitLab, upload the bootstrapped source tarball
358 to the package registry, and create a release in GitLab associated with
359 the tag.
360
361 * .gitlab-ci.yml (stages): Remove test, since it had no jobs. Add
362 upload and release.
363 (upload, release): New jobs.
364
365 2022-01-02 Colin Watson <[email protected]>
366
367 Make NEWS.md list formatting more compact
368
369 2022-01-02 Colin Watson <[email protected]>
370
371 Reformat release notes as Markdown
372
373 * NEWS: Move to ...
374 * NEWS.md: ... here. Reformat as Markdown.
375 * Makefile.am (dist_noinst_DATA): Replace NEWS with NEWS.md.
376
377 2022-01-02 Colin Watson <[email protected]>
378
379 Remove superfluous quotes
380
381 * Makefile.am (gen_start_date): Remove superfluous quotes.
382
383 2022-01-02 Colin Watson <[email protected]>
384
385 Trim down direct Gnulib dependencies slightly
386
387 * bootstrap.conf (gnulib_modules): Replace signal with signal-h, since
388 we use the corresponding header file directly but not the corresponding
389 function.
390
391 2022-01-02 Colin Watson <[email protected]>
392
393 Update to Gnulib 20211231
394
395 * bootstrap: Sync to Gnulib 14db2b71b5bd05b94ec6126617fd32cd5f1016cd.
396 * bootstrap.conf (GNULIB_REVISION): Set to
397 14db2b71b5bd05b94ec6126617fd32cd5f1016cd.
398 (--enable-gcc-warnings): New option, based on code in coreutils. Use
399 this to enable -fanalyzer only if --enable-gcc-warnings=expensive is
400 used; it's useful but slow.
401
402 2022-01-02 Colin Watson <[email protected]>
403
404 Add build-distcheck CI artifact
405
406 This should eventually allow publishing release tarballs built by a CI
407 process rather than on my laptop.
408
409 * .gitlab-ci.yml (variables): Set GIT_DEPTH to 0; we need full history
410 in order to build the ChangeLog file.
411 (build-distcheck:before_script): Add git, needed by gitlog-to-changelog.
412 (build-distcheck:artifacts): Add bootstrapped/*.tar.gz.
413
414 2022-01-02 Colin Watson <[email protected]>
415
416 Switch CI image to debian:unstable
417
418 This gives us newer versions of various dependencies such as the
419 autotools.
420
421 * .gitlab-ci.yml (default:image): Switch from gcc to debian:unstable.
422 (pre-commit:before_script): Explicitly install git.
423 (bootstrap:before_script): Explicitly install git and pkg-config.
424
425 2022-01-01 Colin Watson <[email protected]>
426
427 Use Gnulib attribute.h properly
428
429 We should be using public names rather than private ones.
430
431 * bootstrap.conf (gnulib_modules): Add attribute.
432 * lib/pipeline.c (pipecmd_get_nargs, pipeline_get_ncommands,
433 pipeline_get_command, pipeline_get_pid, pipeline_peek_size): Use
434 ATTRIBUTE_PURE rather than _GL_ATTRIBUTE_PURE.
435
436 2021-11-28 Colin Watson <[email protected]>
437
438 Run pre-commit in GitLab CI
439
440 * .gitlab-ci.yml (stages): Add bootstrap.
441 (pre-commit): New job.
442 (bootstrap): Move to bootstrap stage.
443
444 2021-11-07 Colin Watson <[email protected]>
445
446 Version: 1.5.4
447
448 * lib/Makefile.am (libpipeline_la_LDFLAGS): Bump -version-info to 6:4:5.
449
450 2021-11-07 Colin Watson <[email protected]>
451
452 Ignore the "clang-format" commit for "git blame"
453
454 Developers should apply the following config setting:
455
456 git config blame.ignoreRevsFile .git-blame-ignore-revs
457
458 2021-11-07 Colin Watson <[email protected]>
459
460 Introduce clang-format
461
462 This relieves me of the cognitive burden of having to think about
463 trivial formatting details (especially when reviewing code from others,
464 but also for myself). In most cases the reformatted code is equivalent
465 or superior in terms of my preferred style to what I wrote myself; there
466 was one exception (in pipeline_dump) where I disabled formatting.
467
468 * .clang-format: New file.
469 * .pre-commit-config.yaml: Add clang-format hook.
470 * lib/*, tests/*: Reformat using clang-format.
471
472 2021-11-07 Colin Watson <[email protected]>
473
474 Fix build warnings in tests
475
476 * tests/common.c (temp_dir_setup): Use ck_abort_msg rather than fail.
477 * tests/exec.c (test_exec_process, test_exec_function): Likewise.
478 * tests/read.c (test_read_long_line): Likewise.
479 * tests/redirect.c (test_redirect_files): Likewise.
480
481 2021-11-07 Colin Watson <[email protected]>
482
483 Introduce pre-commit
484
485 * .pre-commit-config.yaml: New file.
486 * lib/appendstr.c, tests/pump.c: Remove trailing whitespace.
487
488 2021-11-07 Colin Watson <[email protected]>
489
490 Simplify conditional SIGPIPE handling
491
492 * lib/pipeline.c (IS_SIGPIPE): New macro.
493 (pipecmd_exec, pipeline_wait_all): Use IS_SIGPIPE, thereby avoiding
494 needing to put parts of an if/else chain inside #ifdef.
495
496 2021-09-19 Colin Watson <[email protected]>
497
498 Update some obsolete Autoconf macros
499
500 * configure.ac: Replace AC_GNU_SOURCE and AC_ISC_POSIX with
501 AC_USE_SYSTEM_EXTENSIONS. Replace AC_CONFIG_HEADER with
502 AC_CONFIG_HEADERS.
503
504 2021-09-19 Colin Watson <[email protected]>
505
506 Stop using obsolete AC_TRY_RUN
507
508 This has been obsolete since Autoconf 2.55. Use its AC_RUN_IFELSE
509 expansion instead.
510
511 * m4/pipeline-socketpair.m4 (PIPELINE_SOCKETPAIR_PIPE): Expand
512 AC_TRY_RUN calls using AC_RUN_IFELSE.
513
514 2021-06-05 Colin Watson <[email protected]>
515
516 Update remaining HTTP URLs to HTTPS
517
518 * COPYING: Update from current contents of
519 https://www.gnu.org/licenses/gpl-3.0.txt (no substantive licensing
520 changes, only updated URLs).
521 * Makefile.am (ACLOCAL_AMFLAGS): Update URL in comment to use HTTPS.
522 * README.md (Installation): Update URLs for pkg-config and check.
523 (Note on GPL versions): Update GNU licence compatibility URL to use
524 HTTPS.
525 * lib/pipeline.c (clearenv): Update dovecot reference; the old URL used
526 HTTP and had gone stale.
527
528 2020-11-25 Colin Watson <[email protected]>
529
530 Upgrade to Gnulib 20201125
531
532 In line with Gnulib, we now require Autoconf 2.64.
533
534 * bootstrap: Sync to Gnulib f2a67f071d170920314c9a3b8de3e85259b4e010.
535 * bootstrap.conf (GNULIB_REVISION): Set to
536 f2a67f071d170920314c9a3b8de3e85259b4e010.
537 (buildreq): Bump required autoconf version to 2.64.
538 * configure.ac (AC_PREREQ): Bump to 2.64.
539 * NEWS: Document this.
540
541 2020-11-25 Colin Watson <[email protected]>
542
543 NEWS: Document move to GitLab
544
545 2020-11-25 Colin Watson <[email protected]>
546
547 Flesh out README
548
549 * README: Move to ...
550 * README.md: ... here. Reformat as Markdown.
551 (Using the library): New section, mainly borrowed from the project
552 homepage.
553
554 2020-11-25 Colin Watson <[email protected]>
555
556 Document migration to GitLab
557
558 * README: Add link to GitLab repository.
559 (Bug reporting): New section.
560
561 2020-11-25 Colin Watson <[email protected]>
562
563 Add .gitlab-ci.yml
564
565 2020-08-13 Colin Watson <[email protected]>
566
567 Version: 1.5.3
568
569 * lib/Makefile.am (libpipeline_la_LDFLAGS): Bump -version-info to 6:3:5.
570
571 2020-08-03 Colin Watson <[email protected]>
572
573 Port tests to the modern Check API
574
575 Fixes Savannah bug #58883.
576
577 * configure.ac: Test for check >= 0.9.10.
578 * tests/argstr.c, tests/basic.c, tests/exec.c, tests/inspect.c,
579 tests/pump.c, tests/read.c, tests/redirect.c: Replace uses of
580 fail_unless and fail_if with appropriate ck_assert_* calls. In most
581 cases these now use more specific equality etc. tests rather than just
582 passing arbitrary predicates.
583 * README: Document updated dependency.
584 * NEWS: Document this.
585
586 2020-07-04 Colin Watson <[email protected]>
587
588 Fix handling of read/write errors
589
590 safe_read and safe_write return size_t and define SAFE_READ_ERROR and
591 SAFE_WRITE_ERROR as error return values. We had previously been
592 assigning their result to a signed value. As a result, whether
593 passthrough, pipeline_pump, and get_block would detect read/write errors
594 was implementation-defined.
595
596 * lib/pipeline.c (passthrough, get_block): Assign safe_read return value
597 to a size_t rather than a signed integer type, and check for
598 SAFE_READ_ERROR rather than negative values.
599 (pipeline_pump): Assign safe_write return value to a size_t rather than
600 an ssize_t, and check for SAFE_WRITE_ERROR rather than negative values.
601 * NEWS: Document this.
602
603 2020-01-01 Colin Watson <[email protected]>
604
605 Version: 1.5.2
606
607 * lib/Makefile.am (libpipeline_la_LDFLAGS): Bump -version-info to 6:2:5.
608 * README: Update copyright dates.
609
610 2020-01-01 Colin Watson <[email protected]>
611
612 * NEWS: Document pipeline_start doc change
613
614 2020-01-01 Colin Watson <[email protected]>
615
616 pipecmd_exec: Flush stdio in PIPECMD_FUNCTION case
617
618 This fixes a regression in eceb4fc9c1a800739f3876a5c9538376adc77876
619 where we could lose some output from functions that write to standard
620 output but don't explicitly flush.
621
622 * lib/pipeline.c (pipecmd_exec): Flush output streams before exiting in
623 the PIPECMD_FUNCTION case.
624
625 2020-01-01 Colin Watson <[email protected]>
626
627 pipeline_start: Document that standard FDs must be open
628
629 Fixes Ubuntu bug #992271.
630
631 * lib/pipeline.h (pipeline_start): Document that FDs 0, 1, and 2 must be
632 open before calling this function.
633 * man/libpipeline.3 (pipeline_start): Likewise.
634
635 2019-12-27 Colin Watson <[email protected]>
636
637 Use _exit rather than exit in pipecmd_exec
638
639 This avoids bugs such as functions registered using atexit being called
640 multiple times.
641
642 * lib/pipeline.c (pipecmd_exec): Call _exit rather than exit.
643 * NEWS: Document this.
644
645 2019-08-30 Colin Watson <[email protected]>
646
647 Enable many more GCC warnings
648
649 * bootstrap.conf (gnulib_modules): Add manywarnings.<Paste>
650 * configure.ac: Add gl_MANYWARN_ALL_GCC, with some refinements to disable
651 -Wsystem-headers, -Wmissing-field-initializers, and -Winline.
652
653 2019-08-30 Colin Watson <[email protected]>
654
655 Add several function attributes suggested by GCC
656
657 * lib/debug.c (vdebug): Mark first argument as a printf format string.
658 * lib/pipeline.c (pipecmd_get_nargs, pipeline_get_ncommands,
659 pipeline_get_command, pipeline_get_pid, pipeline_peek_size): Mark as
660 pure.
661
662 2019-08-30 Colin Watson <[email protected]>
663
664 Make several functions static
665
666 * tests/argstr.c (argstr_suite): Make static.
667 * tests/basic.c (basic_suite): Likewise.
668 * tests/exec.c (exec_suite): Likewise.
669 * tests/inspect.c (inspect_suite): Likewise.
670 * tests/pump.c (pump_suite): Likewise.
671 * tests/read.c (read_suite): Likewise.
672 * tests/redirect.c (redirect_suite): Likewise.
673
674 2019-08-30 Colin Watson <[email protected]>
675
676 Simplify some GCC attribute handling
677
678 We have to be a little careful, as we can't use Gnulib in the public
679 <pipeline.h> header; but we can rely on it for internal compilation
680 units.
681
682 * lib/pipeline.c (passthrough): Use _GL_UNUSED rather than
683 PIPELINE_ATTR_UNUSED.
684 * tests/basic.c (pre_exec): Likewise.
685 * tests/common.h (MAIN): Likewise.
686 * tests/inspect.c (pid_helper): Likewise.
687 * tests/pump.c (tee_source): Likewise.
688 * lib/pipeline.h (PIPELINE_ATTR_UNUSED): Note that this is unused, but
689 preserved to avoid breaking (even undocumented) API.
690
691 2019-01-30 Colin Watson <[email protected]>
692
693 Use HTTPS URL
694
695 * README, lib/libpipeline.pc.in (URL): Update homepage URL to
696 https://nongnu.org/libpipeline/.
697
698 2019-01-27 Colin Watson <[email protected]>
699
700 Version: 1.5.1
701
702 * NEWS: Note Gnulib portability improvements.
703
704 2019-01-27 Colin Watson <[email protected]>
705
706 Update to Gnulib 20190124
707
708 * bootstrap.conf (GNULIB_REVISION): Set to
709 34881aff4043847f2640d90cf9aa325cc3ad08d6.
710
711 2019-01-05 Colin Watson <[email protected]>
712
713 Note requirement of Automake 1.11.2
714
715 AM_PROG_AR was actually introduced in 1.11.2, not 1.11.
716
717 * bootstrap.conf (buildreq): Bump required automake version to 1.11.2.
718 * NEWS: Clarify.
719
720 2019-01-05 Colin Watson <[email protected]>
721
722 Upgrade to Gnulib 20190105
723
724 In line with Gnulib, we now require Autoconf 2.63 and Automake 1.11.
725
726 * bootstrap: Sync to Gnulib d271f868a8df9bbec29049d01e056481b7a1a263.
727 * bootstrap.conf (GNULIB_REVISION): Set to
728 d271f868a8df9bbec29049d01e056481b7a1a263.
729 (buildreq): Bump required autoconf version to 2.63.
730 * configure.ac (AM_INIT_AUTOMAKE): Bump to 1.11.
731 (AM_SILENT_RULES, AM_PROG_AR): Remove conditionals, which were there for
732 Automake 1.10 support.
733 (AC_PREREQ): Bump to 2.63.
734 * NEWS: Document this.
735
736 2019-01-05 Colin Watson <[email protected]>
737
738 Use tar --sort=name if available
739
740 * m4/pipeline-tar-sort-name.m4: New file.
741 * configure.ac: Call PIPELINE_TAR_SORT_NAME.
742
743 2018-12-24 Colin Watson <[email protected]>
744
745 More (void *) 0 as variadic sentinel
746
747 * tests/basic.c (test_basic_status, test_basic_args,
748 test_basic_pipeline, test_basic_wait_all, test_basic_setenv,
749 test_basic_unsetenv, test_basic_clearenv, test_basic_chdir,
750 test_basic_fchdir, test_basic_pre_exec, test_basic_sequence): Use
751 (void *) rather than NULL as a sentinel for variadic functions.
752 * tests/common.c (temp_dir_teardown): Likewise.
753 * tests/exec.c (test_exec_process): Likewise.
754 * tests/inspect.c (test_inspect_command, test_inspect_pipeline):
755 Likewise.
756 * tests/pump.c (fail_unless_files_equal,
757 test_pump_connect_attaches_correctly, test_pump_tee): Likewise.
758 * tests/redirect.c (test_redirect_files, test_redirect_outfile):
759 Likewise.
760
761 2018-12-24 Colin Watson <[email protected]>
762
763 Use (void *) 0 as a variadic sentinel
764
765 NULL is formally incorrect here since the standard allows it to be an
766 integer constant expression.
767
768 * lib/pipeline.c (argstr_get_word, pipecmd_tostring, pipeline_tostring):
769 Use (void *) rather than NULL as a sentinel for variadic functions.
770
771 2018-05-29 Colin Watson <[email protected]>
772
773 Avoid gl directory confusion
774
775 * bootstrap.conf (local_gl_dir): Set to 'gnulib-local'.
776
777 2018-05-28 Colin Watson <[email protected]>
778
779 Prefer the Gnulib versions of some more files
780
781 * bootstrap.conf (gnulib_extra_files): Remove. (This has the effect of
782 reverting to bootstrap's default of also copying some files in
783 build-aux/ from Gnulib.)
784
785 2018-05-28 Colin Watson <[email protected]>
786
787 Clean up bootstrap configuration slightly
788
789 * bootstrap.conf (gnulib_name, source_base, m4_base): Set these instead
790 of the corresponding options in gnulib_tool_option_extras.
791
792 2018-05-28 Colin Watson <[email protected]>
793
794 Upgrade to Gnulib 20180527
795
796 * bootstrap.conf (GNULIB_URL): Remove.
797 (GNULIB_REVISION): Set to 90f289f249a266b1afb9c63e182f5d979d17df5f.
798 * configure.ac (AM_PROG_AR, LT_INIT): Move below gl_EARLY.
799
800 2018-05-27 Colin Watson <[email protected]>
801
802 Switch to bootstrap
803
804 We no longer keep autogenerated files in git.
805
806 * .gitignore: Add **/Makefile.in, /INSTALL, /aclocal.m4, /build-aux,
807 /config.h.in, /configure, /gl, and /gnulib. Remove gnulib/*.
808 * INSTALL, Makefile.in, aclocal.m4, autogen.sh, build-aux, config.h.in,
809 configure, gnulib, lib/Makefile.in, man/Makefile.in, tests/Makefile.in:
810 Remove.
811 * bootstrap, bootstrap.conf: New files.
812 * Makefile.am (SUBDIRS, EXTRA_DIST, ACLOCAL_AMFLAGS): Refer to gl/
813 rather than gnulib/ (gnulib/ now contains pristine source).
814 (EXTRA_DIST): Replace autogen.sh with bootstrap and bootstrap.conf.
815 Remove gnulib/m4/gnulib-cache.m4 and gnulib/m4/gnulib-tool.m4.
816 * configure.ac (AC_CONFIG_FILES): Refer to gl/ rather than gnulib/.
817 * lib/Makefile.am (libpipeline_la_CPPFLAGS, libpipeline_la_LIBADD):
818 Likewise.
819 * tests/Makefile.am (LIBS, AM_CPPFLAGS): Likewise.
820 * release.sh: Call ./bootstrap rather than ./autogen.sh.
821
822 2017-11-14 Colin Watson <[email protected]>
823
824 Version: 1.5.0.
825
826 * lib/Makefile.am (libpipeline_la_LDFLAGS): Bump -version-info to 6:0:5.
827
828 2017-11-14 Colin Watson <[email protected]>
829
830 Add pipecmd_pre_exec function
831
832 * lib/pipeline-private.h (struct pipecmd): Add pre_exec_func,
833 pre_exec_free_func, and pre_exec_data.
834 * lib/pipeline.c (pipecmd_new, pipecmd_new_function,
835 pipecmd_new_sequencev): Initialise cmd->pre_exec_func,
836 cmd->pre_exec_free_func, and cmd->pre_exec_data.
837 (pipecmd_dup): Copy cmd->pre_exec_func, cmd->pre_exec_free_func, and
838 cmd->pre_exec_data if necessary.
839 (pipecmd_pre_exec): New function.
840 (pipecmd_exec): If cmd->pre_exec_func is set, call it immediately before
841 calling execvp or cmd->func.
842 * lib/pipeline.h (pipecmd_pre_exec): Add prototype.
843 (pipeline_install_post_fork): Cross-reference pipecmd_pre_exec in
844 comment.
845 * man/Makefile.am (FUNCTIONS): Add pipecmd_pre_exec.
846 * man/libpipeline.3 (Functions to build individual commands): Document
847 pipecmd_pre_exec.
848 (Functions to run pipelines and handle signals): Cross-reference
849 pipecmd_pre_exec from pipeline_install_post_fork.
850 * tests/basic.c (test_basic_pre_exec): Test pipecmd_pre_exec.
851 * NEWS: Document this.
852 * README: Update copyright years.
853
854 2017-07-10 Colin Watson <[email protected]>
855
856 tests/read.c: Update program_name
857
858 2017-07-10 Colin Watson <[email protected]>
859
860 Version: 1.4.2.
861
862 * lib/Makefile.am (libpipeline_la_LDFLAGS): Bump -version-info to 5:2:4.
863
864 2017-07-10 Colin Watson <[email protected]>
865
866 Fix EOF detection in get_line
867
868 * lib/pipeline.c (get_line): A short read isn't a reliable way to detect
869 end-of-file. Instead, keep track of the previous buffer length returned
870 by get_block; if we get the same length twice in a row then that
871 indicates EOF.
872 * tests/reading_long_line.c: Rename to ...
873 * tests/read.c: ... this. Update build system and test names to match.
874 (slow_line_helper, test_read_readline_slow): New test.
875
876 2017-07-10 Colin Watson <[email protected]>
877
878 Various autotools upgrades
879
880 Upgrade to Automake 1.15.1, config.guess 2016-10-02, config.sub
881 2016-11-04, and Libtool 2.4.6-2 (from Debian).
882
883 2016-10-13 Colin Watson <[email protected]>
884
885 Add home page URL to README
886
887 Suggested by Christopher Yeleighton.
888
889 2015-08-17 Colin Watson <[email protected]>
890
891 Version: 1.4.1.
892
893 * lib/Makefile.am (libpipeline_la_LDFLAGS): Bump -version-info to
894 5:1:4.
895
896 2015-08-17 Colin Watson <[email protected]>
897
898 Upgrade to Automake 1:1.15-3 (from Debian).
899
900 2015-08-16 Colin Watson <[email protected]>
901
902 Fix test failure with Check 0.10.0
903
904 Reported by Bruce Dubbs.
905
906 * tests/inspect.c (pid_helper): Set SIGTERM back to SIG_DFL, in case
907 Check installed its own handler for that.
908 * NEWS: Document this.
909
910 2015-08-06 Colin Watson <[email protected]>
911
912 Upgrade to Automake 1.15.
913
914 2015-06-18 Colin Watson <[email protected]>
915
916 Various autotools upgrades
917
918 * aclocal.m4: Upgrade to Gettext 0.19.4.
919 * build-aux/ltmain.sh: Upgrade to Libtool 2.4.2-1.11 (from Debian).
920
921 2014-10-26 Colin Watson <[email protected]>
922
923 Version: 1.4.0.
924
925 * lib/Makefile.am (libpipeline_la_LDFLAGS): Bump -version-info to
926 5:0:4.
927
928 2014-10-26 Colin Watson <[email protected]>
929
930 Remove generated gnulib/lib/fcntl.h, added by accident
931
932 * gnulib/lib/fcntl.h: Remove.
933 * .gitignore: Add gnulib/lib/fcntl.h.
934
935 2014-10-24 Colin Watson <[email protected]>
936
937 Add pipecmd_fchdir function
938
939 * lib/pipeline-private.h (struct pipecmd): Add cwd_fd.
940 * lib/pipeline.c (pipecmd_new, pipecmd_new_function,
941 pipecmd_new_sequencev): Initialise cmd->cwd_fd.
942 (pipecmd_dup): Copy cmd->cwd_fd if necessary.
943 (pipecmd_fchdir): New function.
944 (pipecmd_dump, pipecmd_tostring): Serialise cmd->cwd_fd as "(cd <fd
945 %d> && ...)" if necessary.
946 (pipecmd_exec): If cmd->cwd_fd is set, fchdir to it.
947 * lib/pipeline.h (pipecmd_fchdir): Add prototype.
948 * man/Makefile.am (FUNCTIONS): Add pipecmd_fchdir.
949 * man/libpipeline.3 (Functions to build individual commands):
950 Document pipecmd_fchdir.
951 * tests/basic.c (test_basic_fchdir): Test pipecmd_fchdir.
952 * NEWS: Document this.
953
954 2014-10-22 Colin Watson <[email protected]>
955
956 NEWS: Document recent Solaris portability changes
957
958 2014-10-22 Colin Watson <[email protected]>
959
960 Add a cleaner way to suppress "Terminated" errors in tests
961
962 * lib/pipeline.c (pipecmd_exec, pipeline_wait_all): If
963 PIPELINE_QUIET is set, don't emit an error message when a subprocess
964 is terminated by a signal.
965 * man/libpipeline.3 (ENVIRONMENT): Document this.
966 * tests/inspect.c (test_inspect_pid): Use this rather than assigning
967 to stderr, which is not portable to Solaris. Reported by Peter
968 Bray.
969
970 2014-10-22 Colin Watson <[email protected]>
971
972 autogen.sh: Avoid "export VARIABLE=value" syntax
973
974 Older Solaris shells do not support this. Patch by Peter Bray.
975
976 2014-10-22 Colin Watson <[email protected]>
977
978 gnulib: Import mkdtemp module.
979
980 Suggested by Peter Bray.
981
982 2014-09-22 Colin Watson <[email protected]>
983
984 Version: 1.3.1.
985
986 * lib/Makefile.am (libpipeline_la_LDFLAGS): Bump -version-info to
987 4:1:3.
988
989 2014-09-22 Colin Watson <[email protected]>
990
991 Fix build on systems with neither setenv nor clearenv
992
993 Fixes Savannah bug #43265.
994
995 * lib/pipeline.c (clearenv): Don't define if defined(HAVE_SETENV),
996 as in that case gnulib will provide this symbol.
997 * lib/pipeline-private.h (clearenv): Likewise.
998 * NEWS: Document this.
999
1000 2014-09-17 Colin Watson <[email protected]>
1001
1002 Make sure that the generated shared library has no undefined symbols
1003
1004 Based on a change found in
1005 https://github.com/Alexpux/MSYS2-packages/tree/master/libpipeline.
1006
1007 * lib/Makefile.am (libpipeline_la_LDFLAGS): Add -no-undefined.
1008
1009 2014-09-15 Colin Watson <[email protected]>
1010
1011 Various autotools upgrades
1012
1013 * aclocal.m4: Upgrade to pkg-config 0.28 and Gettext 0.19.2.
1014 * build-aux/config.sub: Upgrade to 2014-09-11.
1015 * build-aux/ltmain.sh: Upgrade to Libtool 2.4.2-1.10 (from Debian).
1016
1017 2014-08-03 Colin Watson <[email protected]>
1018
1019 Update to config.guess 2014-03-23 and config.sub 2014-05-01.
1020
1021 2014-04-23 Colin Watson <[email protected]>
1022
1023 Fix test failures on Cygwin.
1024
1025 Reported by Chris J. Breisch.
1026
1027 * configure.ac: Define SHELL as a C preprocessor symbol.
1028 * tests/basic.c (test_basic_wait_all, test_basic_setenv,
1029 test_basic_unsetenv, test_basic_clearenv): Execute SHELL rather than
1030 "sh".
1031 * tests/exec.c (test_exec_process): Likewise.
1032
1033 * tests/basic.c (test_basic_args, test_basic_pipeline,
1034 test_basic_unsetenv, test_basic_clearenv, test_basic_chdir,
1035 test_basic_sequence): Check for pipeline_readline returning NULL.
1036 * tests/inspect.c (test_inspect_pid): Likewise.
1037 * tests/redirect.c (test_redirect_files): Likewise.
1038
1039 * NEWS: Document this.
1040
1041 2014-03-26 Colin Watson <[email protected]>
1042
1043 Version: 1.3.0.
1044
1045 * lib/Makefile.am (libpipeline_la_LDFLAGS): Bump -version-info to
1046 4:0:3.
1047
1048 2014-03-26 Colin Watson <[email protected]>
1049
1050 * NEWS: Set next version to 1.3.0, due to new API.
1051
1052 * lib/pipeline.c (pipecmd_dump): Simplify one fprintf to fputs.
1053
1054 Upgrade to Automake 1:1.14.1-3 (from Debian).
1055
1056 2014-03-26 Colin Watson <[email protected]>
1057
1058 Add pipecmd_chdir function
1059
1060 * lib/pipeline-private.h (struct pipecmd): Add cwd.
1061 * lib/pipeline.c (pipecmd_new, pipecmd_new_function,
1062 pipecmd_new_sequencev): Initialise cmd->cwd.
1063 (pipecmd_dup): Copy cmd->cwd if necessary.
1064 (pipecmd_chdir): New function.
1065 (pipecmd_dump, pipecmd_tostring): Serialise cmd->cwd as "(cd %s &&
1066 ...)" if necessary.
1067 (pipecmd_exec): If cmd->cwd is set, chdir to it.
1068 (pipecmd_free): Free cmd->cwd.
1069 * lib/pipeline.h (pipecmd_chdir): Add prototype.
1070 * man/Makefile.am (FUNCTIONS): Add pipecmd_chdir.
1071 * man/libpipeline.3 (Functions to build individual commands):
1072 Document pipecmd_chdir.
1073 * tests/basic.c (test_basic_chdir): Test pipecmd_chdir.
1074 * NEWS: Document this.
1075
1076 2014-02-20 Colin Watson <[email protected]>
1077
1078 Move Autotools auxiliary build files from tools to build-aux.
1079
1080 "build-aux" is a more conventional location for the Autotools files.
1081
1082 2014-02-18 Colin Watson <[email protected]>
1083
1084 Upgrade to Gnulib 20140202 and Libtool 2.4.2-1.7 (from Debian).
1085
1086 2014-02-06 Colin Watson <[email protected]>
1087
1088 Upgrade to Automake 1.14.1 and Libtool 2.4.2-1.6 (from Debian).
1089
1090 2013-12-18 Colin Watson <[email protected]>
1091
1092 Version: 1.2.6.
1093
1094 * lib/Makefile.am (libpipeline_la_LDFLAGS): Bump -version-info to
1095 3:6:2.
1096
1097 2013-12-18 Colin Watson <[email protected]>
1098
1099 Fix occasional failure in test_pump_tee
1100
1101 * tests/pump.c (test_pump_tee): Wait for child processes before
1102 testing output.
1103 * NEWS: Document this.
1104
1105 2013-12-18 Colin Watson <[email protected]>
1106
1107 Clarify pipeline_wait's return value
1108
1109 * man/libpipeline.3 (pipeline_wait): Synchronise description of
1110 return value with pipeline.h.
1111
1112 2013-12-03 Colin Watson <[email protected]>
1113
1114 Version: 1.2.5.
1115
1116 * lib/Makefile.am (libpipeline_la_LDFLAGS): Bump -version-info to
1117 3:5:2.
1118
1119 2013-12-03 Colin Watson <[email protected]>
1120
1121 gnulib: Import gnupload module.
1122
1123 2013-12-03 Colin Watson <[email protected]>
1124
1125 Build with large file support where available
1126
1127 * gnulib: Import largefile module.
1128 * NEWS: Document this.
1129
1130 2013-12-03 Colin Watson <[email protected]>
1131
1132 Automatically generate ChangeLog from git
1133
1134 * ChangeLog: Move to ...
1135 * ChangeLog-2013: ... here.
1136 * Makefile.am (EXTRA_DIST): Add ChangeLog-2013.
1137 (dist-hook): Add gen-ChangeLog.
1138 (gen-ChangeLog): New rule, based on that in coreutils.
1139 * gnulib: Import gitlog-to-changelog module.