Search Debian Channel Logs

Thursday, January 26, 2017

#debian channel featuring n4dir, epsilon, unborn, carp, tw, ws2k3, and 6 others.

contrapunctus 2017-01-26 02:07:03
missmbob: I reckoned this should work - but it doesn't :\ dpkg-query -W -f "${Package}\t${Installed-Size}\n"
themill 2017-01-26 02:08:04
contrapunctus: you want single quotes not double
contrapunctus 2017-01-26 02:08:25
oooh, awesome! thanks, themill !
themill 2017-01-26 02:09:08
(of course the installed size is wildly inaccurate and can even be missing)
contrapunctus 2017-01-26 02:09:26
...what :\
contrapunctus 2017-01-26 02:09:50
themill: No way to actually calculate the total size of the installed package?
themill 2017-01-26 02:10:02
There is no way to do that for anything
contrapunctus 2017-01-26 02:10:14
(by maybe running du on all the component files)
petn-randall 2017-01-26 02:10:55
Haha, it get's even more fun on deduplicating filesystems :)
themill 2017-01-26 02:11:11
it's fun enough on any real filesystem with a block size
petn-randall 2017-01-26 02:12:28
themill: Well, you could at least say that it no more than $numfiles * blocksize off in accuracy. Assuming nothing shipped in Debian is using sparse files.
contrapunctus 2017-01-26 02:12:34
themill: I don't understand - doesn't one "just" need to du each installed file and add the output?
themill 2017-01-26 02:12:58
contrapunctus: on whose machine running on what filesystem with which settings?
contrapunctus 2017-01-26 02:13:14
huh o_O
carp 2017-01-26 02:15:11
OK so Ive successfully installed the newer version using jessie-backports. yay. uname -a now reads 4.8.0.0.bpo.2 so it seems to have worked. and the computer hasnt died. Now lets see how long it takes until the mouse freezes again, or if it is fixed. Thanks for the help earlier guys.
contrapunctus 2017-01-26 02:16:29
themill: I don't get it :\ How does that matter? One can expect du(1) to work on every platform it supports, right?
themill 2017-01-26 02:17:14
one can expect it to give a different answer
contrapunctus 2017-01-26 02:17:34
and how off does it go?
tw 2017-01-26 02:17:41
^- different block sizes on different filesystems/storage
themill 2017-01-26 02:17:42
depends on the size of the file
tw 2017-01-26 02:17:59
it can't know for all filesystems it might be installed on.
petn-randall 2017-01-26 02:19:02
contrapunctus: The easy question to answer is "how many bytes large is file x?". The difficult to answer question is "how much storage does file x use?", which can vary wildly between systems.
themill 2017-01-26 02:20:02
contrapunctus: a 1 byte file takes 4kB on this machine
contrapunctus 2017-01-26 02:20:33
wat
contrapunctus 2017-01-26 02:20:41
How is that possible o_o'
themill 2017-01-26 02:20:49
however dpkg assumes it takes 1kB
petn-randall 2017-01-26 02:21:12
themill: No tail packing? ;)
themill 2017-01-26 02:21:38
no reiser4 either
CuSn 2017-01-26 02:23:14
contrapunctus: fielsystems are configured to allocate a minimum chunk of disc space for each file. the size of the chunk is proportional to the size of the partition. And 8 KB chunk is pretty normal. When that first chunk is filled, another chunk is allocated to the file. So when a file is 8001 bytes long, it takes up 16 kb.
asdfasd 2017-01-26 02:23:41
I have a networkinterface with 2 ports and the p0 gets defaulted at boottime. I'm trying to modify the portsetting through editing the hardware parameters in /sys/bus/ccwgroup device file. It works when I change it in a running system but when as soon as i reboot the system it default to p0, again. I've tried looking for parameters to pass through
asdfasd 2017-01-26 02:23:41
sysctl.cfg but no parameter seems to be passable to the kernel in the remark that it affects the port variable on my network interface. Anyone can help me in the right direction?
contrapunctus 2017-01-26 02:24:12
CuSn: wtf
CuSn 2017-01-26 02:24:38
contrapunctus: can you be more specific?
contrapunctus 2017-01-26 02:25:03
anywhoo - so there's a deviation of 8k. Doesn't sound like a big enough deal...
themill 2017-01-26 02:25:27
contrapunctus: here, have a million 1 byte files. How much space does that take?
contrapunctus 2017-01-26 02:25:45
themill: that's just what I was wondering - what package installs a million files?
contrapunctus 2017-01-26 02:26:48
themill: also - how is Installed-Size arrived at?
tw 2017-01-26 02:26:50
kernel source might come close
unborn 2017-01-26 02:26:51
contrapunctus: you would be more productive if you would tell end user - in human words what the hell you talking about.. most issues can be done with few lines..no mess with all lines of the source..
themill 2017-01-26 02:27:05
http://sources.debian.net/src/dpkg/1.18.18/scripts/dpkg-gencontrol.pl/#L334
contrapunctus 2017-01-26 02:28:02
unborn: that happened a while ago ;) I've often wanted to know the installed size of packages. Using this at the moment - dpkg-query -W -f '${Package}\t${Installed-Size}\n'
tw 2017-01-26 02:28:23
asdfasd: I don't actually know what you're trying to do, but have you tried driver parameters instead of kernel cmdline params?
contrapunctus 2017-01-26 02:28:26
.o(p...p...perl...)
unborn 2017-01-26 02:29:53
contrapunctus: sure...still.. its same issue.. sorry - user was asking for something and change in code is trivial.. why so much 'issues' - without noticing end user yeah that would be bad for this and that reason.. or perhaps for all users... - you can see what I mean.
asdfasd 2017-01-26 02:30:52
tw: I'm trying to change the rules for my driver module in /etc/udev
unborn 2017-01-26 02:31:16
...and I would like to ask the same :)
unborn 2017-01-26 02:33:13
contrapunctus: so.. is there any resolution touched end user?
ws2k3 2017-01-26 02:35:54
how can i change the default editor on jessie?
contrapunctus 2017-01-26 02:36:14
unborn: I don't understand anything you're saying :(
themill 2017-01-26 02:36:37
ws2k3: default editor in what context? (gnome? terminal?)
unborn 2017-01-26 02:36:40
contrapunctus: oh i am sorry about this.. are you the dev ?
themill 2017-01-26 02:36:43
contrapunctus: that's fairly typical
ws2k3 2017-01-26 02:36:55
themill terminal. i accidentily chose vim and i desire nano
epsilon 2017-01-26 02:37:04
ws2k3: in bash? export EDITOR='nano' in .bashrc
themill 2017-01-26 02:37:21
ws2k3: update-alternatives --config editor
jelly 2017-01-26 02:37:23
epsilon: that's not what "default" means!
contrapunctus 2017-01-26 02:37:27
themill: markov chain bot?
ws2k3 2017-01-26 02:37:42
jelly exacly i already compared the .bashrc with another machine and they are the same
themill 2017-01-26 02:37:53
contrapunctus: that or drunk
ws2k3 2017-01-26 02:37:57
themill when i run that it shows that its already using nano
themill 2017-01-26 02:38:11
ws2k3: so in what context is it using vim?
jelly 2017-01-26 02:38:16
ws2k3: update-alternatives --config config, maybe
jelly 2017-01-26 02:38:21
ws2k3: update-alternatives --config editor, maybe
contrapunctus 2017-01-26 02:38:33
themill: so (as far as I can gather from the source comments) Installed-Size is already (roughly?) calculated from the files?
ws2k3 2017-01-26 02:38:38
themill crontab -e should open nanno instead of vim
unborn 2017-01-26 02:39:16
...he is possibly not..
themill 2017-01-26 02:39:35
contrapunctus: yes. And as long as there aren't lots of small files, it will probably be ok
contrapunctus 2017-01-26 02:39:42
cool! :)
contrapunctus 2017-01-26 02:39:51
thanks for the help, everyone.
themill 2017-01-26 02:39:59
of course, that field can also be missing entirely
themill 2017-01-26 02:41:00
ws2k3: what does "echo $EDITOR" output? "echo $VISUAL"? When you say you "chose vim" what did you do?
unborn 2017-01-26 02:41:02
contrapunctus: - you did not answers my last question...
themill 2017-01-26 02:41:21
unborn: you're making even less sense than normal, please stop
unborn 2017-01-26 02:42:11
themill: well.. I do not see this... as normal user of debian non free.. - issue is still here... please explain
ws2k3 2017-01-26 02:42:36
themill both are emty
themill 2017-01-26 02:42:58
unborn: you are the only person in this channel having that discussion.
ws2k3 2017-01-26 02:43:22
themill when you boot the first time into debian and run crontab -e then it asks you to chose a default editor
themill 2017-01-26 02:44:00
it does?
ws2k3 2017-01-26 02:44:12
themill yes it does
unborn 2017-01-26 02:44:13
themill and? I am perhaps the one who dont understand and asking for explanation - the very best gnu policy adopted of debian..
n4dir 2017-01-26 02:44:28
i thought something like update-alternatives would set the default editor