biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / test / checkpointBuild / hello-additionalFile.patch
blob345bc10ee49e56e2585766e44cbe3dc8442f4e73
1 :100644 100644 0000000 0000000 M Makefile.in
2 :000000 100644 0000000 0000000 A src/additionalFile.c
3 :100644 100644 0000000 0000000 M src/hello.c
4 :100644 100644 0000000 0000000 M src/system.h
6 diff --git a/Makefile.in b/Makefile.in
7 index 1597d39..f63f830 100644
8 --- a/Makefile.in
9 +++ b/Makefile.in
10 @@ -312,7 +312,7 @@ am_lib_libhello_a_OBJECTS = lib/basename-lgpl.$(OBJEXT) \
11 lib/version-etc.$(OBJEXT) lib/version-etc-fsf.$(OBJEXT) \
12 lib/wctype-h.$(OBJEXT) lib/xmalloc.$(OBJEXT) \
13 lib/xalloc-die.$(OBJEXT) lib/xstriconv.$(OBJEXT) \
14 - lib/xstrndup.$(OBJEXT)
15 + lib/xstrndup.$(OBJEXT) src/additionalFile.$(OBJEXT)
16 lib_libhello_a_OBJECTS = $(am_lib_libhello_a_OBJECTS)
17 am_hello_OBJECTS = src/hello.$(OBJEXT)
18 hello_OBJECTS = $(am_hello_OBJECTS)
19 @@ -1842,7 +1842,7 @@ lib_libhello_a_SOURCES = lib/basename-lgpl.c lib/c-ctype.h \
20 $(am__append_4) $(am__append_5) lib/version-etc.h \
21 lib/version-etc.c lib/version-etc-fsf.c lib/wctype-h.c \
22 lib/xmalloc.c lib/xalloc-die.c lib/xstriconv.h lib/xstriconv.c \
23 - lib/xstrndup.h lib/xstrndup.c
24 + lib/xstrndup.h lib/xstrndup.c src/additionalFile.c
25 lib_libhello_a_LIBADD = $(gl_LIBOBJS)
26 lib_libhello_a_DEPENDENCIES = $(gl_LIBOBJS)
27 EXTRA_lib_libhello_a_SOURCES = lib/close.c lib/stripslash.c lib/dup2.c \
28 diff --git a/src/additionalFile.c b/src/additionalFile.c
29 new file mode 100644
30 index 0000000..34d683d
31 --- /dev/null
32 +++ b/src/additionalFile.c
33 @@ -0,0 +1,6 @@
34 +#include "config.h"
35 +#include "system.h"
37 +int somefunc() {
38 + return 0;
40 diff --git a/src/hello.c b/src/hello.c
41 index 2e7d38e..a8e36dc 100644
42 --- a/src/hello.c
43 +++ b/src/hello.c
44 @@ -146,7 +146,11 @@ main (int argc, char *argv[])
45 #endif
47 /* Having initialized gettext, get the default message. */
48 - greeting_msg = _("Hello, world!");
49 + if (somefunc() == 0) {
50 + greeting_msg = _("Hello, world!");
51 + } else {
52 + greeting_msg = _("Hello, incremental world!");
53 + }
55 /* Even exiting has subtleties. On exit, if any writes failed, change
56 the exit status. The /dev/full device on GNU/Linux can be used for
57 diff --git a/src/system.h b/src/system.h
58 index d39cdb9..dc425d2 100644
59 --- a/src/system.h
60 +++ b/src/system.h
61 @@ -59,4 +59,6 @@
62 } \
63 while (0)
65 +int somefunc();
67 #endif /* HELLO_SYSTEM_H */