Package: dosemu Version: 1.4.0+svn.1828-2 Severity: normal Tags: patch User: [EMAIL PROTECTED] Usertags: origin-ubuntu jaunty ubuntu-patch
Hello! When a system is running with vm.mmap_min_addr set above 0, running dosemu will fail. This patch adds a sysctl file for dosemu's low-memory needs. Thanks, -Kees -- Kees Cook @outflux.net
diff -u dosemu-1.4.0+svn.1828/debian/install dosemu-1.4.0+svn.1828/debian/install --- dosemu-1.4.0+svn.1828/debian/install +++ dosemu-1.4.0+svn.1828/debian/install @@ -3,0 +4 @@ +debian/90-dosemu.conf etc/sysctl.d/ --- dosemu-1.4.0+svn.1828.orig/debian/90-dosemu.conf +++ dosemu-1.4.0+svn.1828/debian/90-dosemu.conf @@ -0,0 +1,3 @@ +# Dosemu needs to access the bottom 64k of memory in order to launch +# 16 bit programs. +vm.mmap_min_addr = 0 only in patch2: unchanged: --- dosemu-1.4.0+svn.1828.orig/debian/postinst +++ dosemu-1.4.0+svn.1828/debian/postinst @@ -0,0 +1,41 @@ +#!/bin/sh +# postinst script for dosemu +# +# see: dh_installdeb(1) + +set -e +# summary of how this script can be called: +# * <postinst> `configure' <most-recently-configured-version> +# * <old-postinst> `abort-upgrade' <new version> +# * <conflictor's-postinst> `abort-remove' `in-favour' <package> +# <new-version> +# * <postinst> `abort-remove' +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' +# <failed-install-package> <version> `removing' +# <conflicting-package> <version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +case "$1" in + configure) + # Load sysctl settings + if [ -x /usr/sbin/invoke-rc.d ]; then + /usr/sbin/invoke-rc.d procps start + fi + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0