mk-sbuild-lv: debian sid doesn't have security updates

Bug #371569 reported by Ryan Niebur
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-dev-tools (Ubuntu)
Fix Released
Low
Kees Cook

Bug Description

Binary package hint: ubuntu-dev-tools

when creating a chroot for Debian sid I get these errors:

Err http://security.debian.org sid/updates/main Packages
  404 Not Found [IP: 212.211.132.250 80]
Err http://security.debian.org sid/updates/non-free Packages
  404 Not Found [IP: 212.211.132.250 80]
Err http://security.debian.org sid/updates/contrib Packages
  404 Not Found [IP: 212.211.132.250 80]
Err http://security.debian.org sid/updates/main Sources
  404 Not Found [IP: 212.211.132.250 80]
Err http://security.debian.org sid/updates/non-free Sources
  404 Not Found [IP: 212.211.132.250 80]
Err http://security.debian.org sid/updates/contrib Sources
  404 Not Found [IP: 212.211.132.250 80]
W: Failed to fetch http://security.debian.org/dists/sid/updates/main/binary-amd64/Packages 404 Not Found [IP: 212.211.132.250 80]

W: Failed to fetch http://security.debian.org/dists/sid/updates/non-free/binary-amd64/Packages 404 Not Found [IP: 212.211.132.250 80]

W: Failed to fetch http://security.debian.org/dists/sid/updates/contrib/binary-amd64/Packages 404 Not Found [IP: 212.211.132.250 80]

W: Failed to fetch http://security.debian.org/dists/sid/updates/main/source/Sources 404 Not Found [IP: 212.211.132.250 80]

W: Failed to fetch http://security.debian.org/dists/sid/updates/non-free/source/Sources 404 Not Found [IP: 212.211.132.250 80]

W: Failed to fetch http://security.debian.org/dists/sid/updates/contrib/source/Sources 404 Not Found [IP: 212.211.132.250 80]

E: Some index files failed to download, they have been ignored, or old ones used instead.

This is because debian doesn't have security updates for sid.
Here's a patch (untested, sorry) to fix this:

--- mk-sbuild-lv 2009-05-04 01:54:07.000000000 -0700
+++ mk-sbuild-lv.new 2009-05-04 02:06:21.000000000 -0700
@@ -258,6 +258,9 @@
     if [ -z "$SOURCES_SECURITY_URL" ]; then
         SOURCES_SECURITY_URL="http://security.debian.org/"
     fi
+ if [ "$RELEASE" = "unstable" -o "$RELEASE" = "sid" ]; then
+ SKIP_SECURITY=1
+ fi
     ;;
 *)
     echo "Unknown --distro '$DISTRO': aborting" >&2
@@ -291,10 +294,12 @@
 deb-src ${DEBOOTSTRAP_MIRROR} RELEASE-updates ${COMPONENTS}
 EOM
     fi
- cat >> "$TEMP_SOURCES" <<EOM
+ if [ -z "$SKIP_SECURITY" ]; then
+ cat >> "$TEMP_SOURCES" <<EOM
 deb ${SOURCES_SECURITY_URL} ${SOURCES_SECURITY_SUITE} ${COMPONENTS}
 deb-src ${SOURCES_SECURITY_URL} ${SOURCES_SECURITY_SUITE} ${COMPONENTS}
 EOM
+ fi
 fi
 cat "$TEMP_SOURCES" | sed -e "s|RELEASE|$RELEASE|g" | \
     sudo bash -c "cat > $MNT/etc/apt/sources.list"

Ryan Niebur (ryan52)
summary: - mk-sbuild-lvm: debian sid doesn't have security updates
+ mk-sbuild-lv: debian sid doesn't have security updates
Changed in ubuntu-dev-tools (Ubuntu):
importance: Undecided → Low
Revision history for this message
Ryan Niebur (ryan52) wrote :

patch tested to work building a debian sid chroot

Revision history for this message
Kees Cook (kees) wrote :

Ah-ha! Good catch, thanks. I've added your patch to the bzr tree.

Changed in ubuntu-dev-tools (Ubuntu):
assignee: nobody → Kees Cook (kees)
status: New → Fix Committed
Revision history for this message
Ryan Niebur (ryan52) wrote :

thanks!

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-dev-tools - 0.74

---------------
ubuntu-dev-tools (0.74) karmic; urgency=low

  [ Kees Cook ]
  * mk-sbuild-lv:
    - Skip security repo for Debian unstable, thanks to Ryan Niebur
      (LP: #371569).
    - Change directory out of the way of schroot problems.

  [ Siegfried-Angel Gevatter Pujals ]
  * grab-merge:
     - Show an error message if the package doesn't exist.
     - Be paraonic and add "--one-file-system" to the rm call.
     - Delete the directory just after creating it if the package
       doesn't exist.

  [ Iain Lane ]
  * ubuntutools/lp/lp_functions.py,
    ubuntutools/lp/udtexceptions.py:
    - Add new public functions that expose features from LP API
    - Modify isLPTeamMember to use LP API
  * requestsync
    - Use new functions to check if user can upload requested package directly
      instead of checking team membership
    - Default to current development release if no release is specified on
      commandline
    - Correct bug supervisor team to ubuntu-bugcontrol (LP: #374563)
    - Remove team names from sponsorship message - makes the function much
      simpler
  * buildd
    - Check if user has upload privileges instead of checking for team
      membership when seeing if operations are permitted

  [ Colin Watson ]
  * update-maintainer:
    - Convert to getopt so that '--section main' works as well as
      '--section=main'.

  [ Anders Kaseorg ]
  * ubuntutools/lp/functions.py:
    - Simplify isLPTeamMember.

  [ Nathan Handler ]
  * pull-debian-source: Modify to work for packages not in main (LP: #379822)

 -- Nathan Handler <email address hidden> Sat, 23 May 2009 20:41:50 +0000

Changed in ubuntu-dev-tools (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.