Debian Codegraph @

debian/patches/replace-p-q-with-p-for-newer-dc.patch

raw symbols SCIP
1 Descriptionscip-debian debian dphys-swapfile 20100506-7.2 dphys-swapfile/patches/`replace-p-q-with-p-for-newer-dc.patch`#Description.: Replace "p q" by "p" since newer dc releases consider this syntax to be an error
2 Bug-Debianscip-debian debian dphys-swapfile 20100506-7.2 dphys-swapfile/patches/`replace-p-q-with-p-for-newer-dc.patch`#Bug-Debian.: https://bugs.debian.org/906767scip-debian-bts debian-bts . . 906767:
3 Bug-Ubuntuscip-debian debian dphys-swapfile 20100506-7.2 dphys-swapfile/patches/`replace-p-q-with-p-for-newer-dc.patch`#Bug-Ubuntu.: https://bugs.launchpad.net/ubuntu/+source/dphys-swapfile/+bug/1788681
4 Authorscip-debian debian dphys-swapfile 20100506-7.2 dphys-swapfile/patches/`replace-p-q-with-p-for-newer-dc.patch`#Author.: Axel Beckert <[email protected]scip-debian . . . identity/`[email protected]`.>
5 Forwardedscip-debian debian dphys-swapfile 20100506-7.2 dphys-swapfile/patches/`replace-p-q-with-p-for-newer-dc.patch`#Forwarded.: no
6
7 --- a/dphys-swapfilescip-debian debian dphys-swapfile 20100506-7.2 dphys-swapfile/upstream/dphys-swapfile:
8 +++ b/dphys-swapfilescip-debian debian dphys-swapfile 20100506-7.2 dphys-swapfile/upstream/dphys-swapfile:
9 @@ -66,14 +66,14 @@
10 # but it actually then fails from AMD64 kernel 2.6.32 onwards
11 #KCORESIZE="`ls -l /proc/kcore | awk '{ print $5 }'`"
12 ## make MBytes which rounded down will be exactly 1 too few, so add 1
13 - #MEMSIZE="`echo "${KCORESIZE} 1048576 / 1 + p q" | dc`"
14 + #MEMSIZE="`echo "${KCORESIZE} 1048576 / 1 + p" | dc`"
15 # so second attempt at finding out physical RAM size, lacks about 10M
16 # see how long this variant stays usable :-)
17 MEMTOTAL="`grep '^MemTotal:' /proc/meminfo | awk '{ print $2 }'`"
18 # make MBytes which rounded down will be about 10 too few, so add 10
19 - MEMSIZE="`echo "${MEMTOTAL} 1024 / 10 + p q" | dc`"
20 + MEMSIZE="`echo "${MEMTOTAL} 1024 / 10 + p" | dc`"
21 # compute desired swap size, as factor * RAM
22 - CONF_SWAPSIZE="`echo "${MEMSIZE} ${CONF_SWAPFACTOR} * p q" | dc`"
23 + CONF_SWAPSIZE="`echo "${MEMSIZE} ${CONF_SWAPFACTOR} * p" | dc`"
24 # remove any fractional MBytes
25 CONF_SWAPSIZE="`echo "${CONF_SWAPSIZE}" | cut -f 1 -d '.'`"
26 fi
27 @@ -116,7 +116,7 @@
28 echo -n ", checking existing"
29
30 # we need bytes for comparing with existing swap file
31 - SWAPBYTES="`echo "${CONF_SWAPSIZE} 1048576 * p q" | dc`"
32 + SWAPBYTES="`echo "${CONF_SWAPSIZE} 1048576 * p" | dc`"
33
34 FILEBYTES="`ls -l "${CONF_SWAPFILE}" | awk '{ print $5 }'`"
35