Codebase list openrc / d0ce84f
Revert lsb-deps-on-"all" changes introduced with -9. Get shutdown immediate back on Hurd (Closes: #739703). Gabriele Giacone 10 years ago
2 changed file(s) with 10 addition(s) and 20 deletion(s). Raw diff Collapse all Expand all
0 openrc (0.12.4+20131230-10) UNRELEASED; urgency=medium
0 openrc (0.12.4+20131230-10) unstable; urgency=medium
11
2 * Revert lsb-deps-on-"all" changes introduced with -9.
3 + Get shutdown immediate back on Hurd (Closes: #739703).
24 * Fix long descriptions. Thanks to Justin B Rye (Closes: #740611).
35
46 -- Gabriele Giacone <1o5g4r8o@gmail.com> Mon, 10 Mar 2014 00:40:07 +0100
9898 fi
9999
100100 while [ -n "$1" ]; do
101 @@ -258,7 +258,12 @@
101 @@ -258,7 +263,12 @@ while [ -n "$1" ]; do
102102 _depend
103103 cd /
104104 continue
124124 SUBDIR+= tools
125125 --- a/src/librc/librc-depend.c
126126 +++ b/src/librc/librc-depend.c
127 @@ -1549,14 +1549,6 @@ rc_deptree_update(void)
127 @@ -1549,14 +1549,6 @@ rc_deptree_update(RC_DT_FLAGS flags)
128128 strcmp(depend, service) == 0)
129129 continue;
130130
265265 +exit 0
266266 --- /dev/null
267267 +++ b/src/lsb2rcconf/main.c
268 @@ -0,0 +1,654 @@
268 @@ -0,0 +1,642 @@
269269 +/*
270270 + lsb2rcconf - prints configuration for openrc's rc.conf based on LSB
271271 +
318318 +#include <unistd.h> /* access() */
319319 +
320320 +#include "../includes/helpers.h"
321 +
322 +
323 +#define SERVICENAME_ALL "_all"
324321 +
325322 +/* === portability hacks === */
326323 +
423420 + int *relation_count_p;
424421 + int relation_max;
425422 + hsearch_data_t *relation_ht_p;
426 + char relation_has_all; /* did we met "$all" virtual services or not */
427423 +};
428424 +
429425 +#define RELATION(relation_name)\
490486 + switch (*service) {
491487 + case '$': {
492488 + service++;
493 +
494 + if (!arg_p->relation_has_all)
495 + arg_p->relation_has_all = (strcmp(service, "all") == 0);
496 +
497489 + const char *const services = lsb_v2s(service);
498490 + if (services != NULL) {
499491 + void relation_add_mark_real_service(char *service, void *arg) {
650642 +{
651643 + /* Hardcoded: */
652644 + ENTRY entries_v2s[] = {
653 + {"all", "+"SERVICENAME_ALL},
654 + {NULL, NULL},
645 + {"all", "+*"},
646 + {NULL, NULL},
655647 + };
656648 + ENTRY entries_s2v[] = {
657 + {SERVICENAME_ALL, "all"},
658 + {NULL, NULL},
649 + {"*", "all"},
650 + {NULL, NULL},
659651 + };
660652 +
661653 +
847839 +
848840 +l_lsb_parse_end:
849841 +
850 + if (state == LP_COMPLETE)
851 + if (! (use_arg.relation_has_all || need_arg.relation_has_all))
852 + PROVIDE(SERVICENAME_ALL);
853 +
854842 + fclose(file_initdscript);
855843 + return state;
856844 +}