summaryrefslogtreecommitdiff
blob: 0ac157a5474065dbf0e08305b8eaaaf9a96bd2e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
# ChangeLog for Gentoo System Intialization core utilities.
# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPLv2
# $Header$

26 Jul 2005 Martin Schlemmer <azarah@gentoo.org>

        * depend.c
        * depend.h
        * parse.c
        * parse.h: Remove the "parallel" stuff, as we do not use it anymore.

15 Apr 2005 Martin Schlemmer <azarah@gentoo.org>

        * parse.c: Do not source rc.conf for every script - once is enough.

14 Apr 2005 Martin Schlemmer <azarah@gentoo.org>

        * depscan.c: Update error comments for stage name changes some time
        back.

        * parse.c,
        * parse.h: Do not try to extract the depend() function from the
        scripts, but rather source the whole file.  This way we can detect
        syntax errors, etc.  Little bit slower, but not much.

07 Apr 2005 Martin Schlemmer <azarah@gentoo.org>

        * test-regex.c: Add two more tests.

        * depscan.c
        * misc.c
        * misc.h: Add basic klibc support.  I need to add a mkstemp
        implementation to get it done properly.

12 Mar 2005 Martin Schlemmer <azarah@gentoo.org>

        * Makefile: Also remove the tests in the clean target.

11 Mar 2005 Martin Schlemmer <azarah@gentoo.org>

        * test-regex.c: Add a few strings and patterns.  Enable tests to
        specify if they should fail or pass.

10 Mar 2005 Martin Schlemmer <azarah@gentoo.org>

        * test-regex.c: New file
        * Makefile: Add check target to compile and run tests
        * simple-regex.c (__match_wildcard): Get recursion right so that we
        do not match a wildcard _and_ inc data_p if there are still other
        wildcards (?, *) that could match.

        * Makefile
        * depend.c
        * simple-regex.c: Override the debug/warning CFLAGS.  Kill a few
        warnings.

23 Feb 2005 Martin Schlemmer <azarah@gentoo.org>

        * misc.c: Fix memory leak in mktree().

18 Feb 2005 Martin Schlemmer <azarah@gentoo.org>

        * Makefile: Add -fbounds-checking support when DEBUG=1.
        
        * misc.h: Scrap STRING_LIST_FOR_EACH_SAFE() and recode from scratch
        fixing invalid pointer operations.
        
        * misc.c: Remove the last strlen() from strndup() that caused an
        overrun.

17 Feb 2005 Martin Schlemmer <azarah@gentoo.org>:

        * misc.c: Fix overrun in strndup(), thanks to report from
        Ned Ludd <solar@gentoo.org>.

        * debug.h
        * misc.h
        * simple-regex.c: Print debug/errors to stderr, patch from
        Ned Ludd <solar@gentoo.org>.

        * debug.h: Replace invalid EXIT_FAILSTATUS with EXIT_FAILURE.
        
        * parse.c: Modify parse_print_body() to be more ash friendly.
        Suggestions from Ned Ludd <solar@gentoo.org>.

        * debug.h: Remove the 'errno = ESPIPE' in DBG_MSG() for now, as it
        seems to be fixed by the select() changes.

        * parse.c: Disable write select() for now, as it is not needed.

        * depscan.c: Only print EINFO msg if we actually update the cache.
        
        * parse.c: Rename write_output() macro to PRINT_TO_BUFFER().

        * parse.c
        * parse.h: Rewrote large parts of generate_stage[12]() and their
        machanics to use select() when writing to the pipes.  This fixes a
        buffering issue where too much data would cause the write to be
        truncated, and the read pipe would then wait forever.

        * misc.c: Fix gbasename() to compile under gcc-2.95.3.
        
        * parse.c: Switch to stdio based io for reading pipes in
        generate_stage2().

        * misc.c
        * misc.h: Add gbasename() that is similar to GNU's basename().
        
        * parse.c: Use gbasename() instead of POSIX version.

        * parse.c: Fix write_legacy_stage3() to quote the mtime in its output.

        * misc.c
        * parse.c: Change type of length from int to size_t to avoid warnings
        when compiled for darwin.

        * misc.c
        misc.h: Add strndup() instead of relying on glibc's implementation
        (should fix some issues on bsd and darwin).

        * depend.c
        * simple-regex.c: Do not define _GNU_SOURCE, but rather use our
        strndup() from misc.h.

        * parse.c: Do not define _GNU_SOURCE, but rather use our strndup() from
        misc.h.  Also change all usage of basename() to conform to POSIX, and
        do not use the GNU variants.

16 Feb 2005; Martin Schlemmer <azarah@gentoo.org>:

        * depscan.c: Add uid check and quit if user is not root.

        * depend.c
        * depend.h: Change service_type_names declaration in depend.h to extern
        and move the definition to depend.c to avoid warnings.

        * README: New file.

        * depscan.c: Add delete_var_dirs() to delete volatile directories in
        svcdir.  Change 'char *' declarations for create_directory() and
        create_var_dirs() to 'const char*'.
        
        * misc.h
        * misc.c: Add rmtree() function.  Fix ls_dir() not to include '.' and
        '..' in its listing.  Fix segfault in ls_dir() if the file list is
        empty.

        Add Header tags to all source files and Makefile.

        * debug.h: perror() set errno to ESPIPE for some reason - restore errno
        after calling perror().
        
        * depscan.c: Add code to create svcdir and co if missing.
        
        * misc.c: Add missing '\n' to DBG_MSG in mktree().
        
        * misc.h: Add a comment about strcatpaths() allocating the memory needed.

        Initial checkin.  Still rough in some parts, but should be 100% similar
        in output to depscan.sh and co.


# vim:expandtab