~ubuntu-branches/debian/experimental/sysvinit/experimental

« back to all changes in this revision

Viewing changes to debian/startpar/patches/04_makeboot_loop_upper_bound.patch

  • Committer: Bazaar Package Importer
  • Author(s): Petter Reinholdtsen, Petter Reinholdtsen, Kel Modderman
  • Date: 2009-07-24 10:51:50 UTC
  • Revision ID: james.westby@ubuntu.com-20090724105150-gwwfemn5xccc9gdb
Tags: 2.86.ds1-66
[ Petter Reinholdtsen ]
* Replace Ó with \['O] and Á with \['A] in spanish
  update-rc.d(8) after looking up the correct string in
  groff_man(7), to avoid lintian warning.
* Move bootlogd to the sysvinit-utils package, as it is useful also
  without the sysvinit init program.  Make sysvinit-utils replace
  sysvinit (<= 2.86.ds1-65) to handle this.
* Clean up control file, dropping replaces and conflicts on sysvinit
  and file-rc packages before oldstable: sysvinit (<< 2.85-1),
  sysv-rc (<< 2.86.ds1-1.2), sysvinit (<< 2.86.ds1-12) and file-rc
  (>> 0.7.0).
* New patch 54_bootlogd_findptyfail making sure bootlogd findpty()
  returns an error value  when it fails to find a usable pty
  (Closes: #492796).  Patch from Rob Leslie.
* New patch 96_shutdown_acctoff making sure to call accton with the
  argument off during shutdown to stop accounting (Closes: #536574).
* Modify LSB header of init.d/bootlogd to depend on $all when
  starting, to get it to start later in the boot sequence
  (Closes: #531198.  Patch from Vincent Crevot.
* Modify LSB header of init.d/bootlogd to start earlier when
  dependency based boot sequencing is enabled, by stating that
  it should start before keymap and keyboard-setup.
* Make sure more verbose temp cleaning always calls log_end_msg
  after log_begin_msg (might solve #534713).
* New patch 97_init_starttest solving problem reported to
  <URL:http://freshmeat.net/projects/sysvinit/> 2003-03-10.
* Change init.d/bootmisc.sh to not set pseudo-terminal access
  permissions when udev is active.  Leave that to udev, the same way
  it is left to devfs.
* Correct boot dependency, move hostname dependency from bootmisc.sh to
  bootlogs.

[ Kel Modderman ]
* Remove debian/startpar/README, it contains outdated information about
  the origin of startpar upstream.
* Update startpar to version 0.53.1 upstream. Add Debian quilt patch series
  to ./debian/startpar/patches, while they wait for inclusion upstream.
* Patch startpar makeboot.c to allow a much higher amount of loops when
  calculating dependecies from make files.
* Modify all copyright blurbs which refer to the version-less symlink
  /usr/share/common-licenses/GPL to point to the versioned GPL-2 license.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Purpose: Increase number of allowed dependency checking loops in makeboot.c.
 
2
         999 seems to be too low, which causes make like boot to use an
 
3
         incorrect sequence.
 
4
Fixes:   None.
 
5
Status:  Not submitted upstream. Work in progress.
 
6
         Needs further discussion/investigation.
 
7
---
 
8
--- a/makeboot.c
 
9
+++ b/makeboot.c
 
10
@@ -117,8 +117,11 @@ static int check_loop(struct makenode *d
 
11
                        fprintf(stderr, "loop exists %s in %s!\n", dep->name, src->name);
 
12
                        return 1;
 
13
                }
 
14
-               if (loop++ > 999)
 
15
+               if (loop++ > 99999) {
 
16
+                       fprintf(stderr, "too many loops! (loop=%d, dep->name=%s, src->name=%s)\n",
 
17
+                               loop, dep->name, src->name);
 
18
                        return 1;
 
19
+               }
 
20
                if (check_loop(s->node, src))
 
21
                        return 1;
 
22
        }