Junichi Uekawa: Linkig binaries.
Linkig binaries.
Having come back to old boost code that I had,
Boost binaries seem to require -lboost_system linked in.
Hmm, wonder when that started happening.
Linkig binaries.
Having come back to old boost code that I had,
Boost binaries seem to require -lboost_system linked in.
Hmm, wonder when that started happening.
This is my monthly summary of my free software related activities. If you re among the people who made a donation to support my work (548.59 , thanks everybody!), then you can learn how I spent your money. Otherwise it s just an interesting status update on my various projects.
Distro Tracker
Now that tracker.debian.org is live, people reported bugs (on the new tracker.debian.org pseudo-package that I requested) faster than I could fix them. Still I spent many, many hours on this project, reviewing submitted patches (thanks to Christophe Siraut, Joseph Herlant, Dimitri John Ledkov, Vincent Bernat, James McCoy, Andrew Starr-Bochicchio who all submitted some patches!), fixing bugs, making sure the code works with Django 1.7, and started the same with Python 3.
I added a tox.ini so that I can easily run the test suite in all 4 supported environments (created by tox as virtualenv with the combinations of Django 1.6/1.7 and Python 2.7/3.4).
Over the month, the git repository has seen 73 commits, we fixed 16 bugs and other issues that were only reported over IRC in #debian-qa. With the help of Enrico Zini and Martin Zobel, we enabled the possibility to login via sso.debian.org (Debian s official SSO) so that Debian developers don t even have to explicitly create their account.
As usual more help is needed and I ll gladly answer your questions and review your patches.
Misc packaging work
Publican. I pushed a new upstream release of publican and dropped a useless build-dependency that was plagued by a difficult to fix RC bug (#749357 for the curious, I tried to investigate but it needs major work for make 4.x compatibility).
GNOME 3.12. With gnome-shell 3.12 hitting unstable, I had to update gnome-shell-timer (and filed an upstream ticket at the same time), a GNOME Shell extension to start some run-down counters.
Django 1.7. I packaged python-django 1.7 release candidate 1 in experimental (found a small bug, submitted a ticket with a patch that got quickly merged) and filed 85 bugs against all the reverse dependencies to ask their maintainers to test their package with Django 1.7 (that we want to upload before the freeze obviously). We identified a pain point in upgrade for packages using South and tried to discuss it with upstream, but after closer investigation, none of the packages are really affected. But the problem can hit administrators of non-packaged Django applications.
Misc stuff. I filed a few bugs (#754282 against git-import-orig uscan, #756319 against wnpp to see if someone would be willing to package loomio), reviewed an updated package for django-ratelimit in #755611, made a non-maintainer upload of mairix (without prior notice) to update the package to a new upstream release and bring it to modern packaging norms (Mako failed to make an upload in 4 years so I just went ahead and did what I would have done if it were mine).
Kali work resulting in Debian contributions
Kali wants to switch from being based on stable to being based on testing so I did try to setup britney to manage a new kali-rolling repository and encountered some problems that I reported to debian-release. Niels Thykier has been very helpful and even managed to improve britney thanks to the very specific problem that the kali setup triggered.
Since we use reprepro, I did write some Python wrapper to transform the HeidiResult file in a set of reprepro commands but at the same time I filed #756399 to request proper support of heidi files in reprepro. While analyzing britney s excuses file, I also noticed that the Kali mirrors contains many source packages that are useless because they only concern architectures that we don t host (and I filed #756523 against reprepro). While trying to build a live image of kali-rolling, I noticed that libdb5.1 and db5.1-util were still marked as priority standard when in fact Debian already switched to db5.3 and thus should only be optional (I filed #756623 against ftp.debian.org).
When doing some upgrade tests from kali (wheezy based) to kali-rolling (jessie based) I noticed some problems that were also affecting Debian Jessie. I filed #756629 against libfile-fcntllock-perl (with a patch), and also #756618 against texlive-base (missing Replaces header). I also pinged Colin Watson on #734946 because I got a spurious base-passwd prompt during upgrade (that was triggered because schroot copied my unstable s /etc/passwd file in the kali chroot and the package noticed a difference on the shell of all system users).
Thanks
See you next month for a new summary of my activities.
One comment Liked this article? Click here. My blog is Flattr-enabled.
../../scripts/copy-template line
Yes, I've been bragging about the Operating Systems book all over... Today, a colleague handed me a phone call from somebody at Editorial Patria, a well known educational editorial in Mexico. They are looking for material similar to what I wrote, but need the material to be enfocado a competencias Focused on skills, a pedagogic fashion.
I was more than interested, of course. As it currently stands, I am very happy that our book is being used already at three universities in three countries (by the different authors) and have heard other people saying they would recommend it, and of course I'm interested in making our work have as big an impact as possible. Of course, we'd have to modify several aspects of the book to cater to the skills focus... But it would be great to have the book available at commercial bookstores. After all, university editions are never as widely circulated as commercial ones.
I had just one hard request to accept this: Our work must be distributed under a free licensing. Explicitly allow book photocopies and electronic distribution (didn't get into the "and modification" part, but I would eventually get there ;-) )
And... Of course, the negotiation immediately fell down. Editorials, this person says, live from selling individual books. She says she was turned down by another university professor and for another subject this same week.
So, yes, I took the opportunity to explain things as I (and the people that think as I do Fortunately, not so few) see them. Yes, of course, editorials have to make a living. But text books are often photocopied as it is. Who buys a book? Whoever needs it. On one hand, if somebody will be using a book throughout a semester and it's reasonably priced (say, up to 3 cost of photocopies), they will probably buy it because it just works better (it is more comfortable to use and nicer to read).
If a teacher likes the explanation for a particular topic, it should be completely legal for him to distribute photocopies (or digital copies) of the specific material And quite probably, among the students, more than one will end up appreciating the material enough to go look for the book in the library. And, as I have done throughout my life, if I read (in copies, electronically or in a library) a book I like... Quite probably I will go buy it.
So... Of course, she insisted it was against their corporate policy. I insisted on my explanation. I hope they meet many stubborn teachers refusing to distribute books under a non-free licensing. I hope I contributed to making a dent in an industry that must change. Yes, a very very small dent, but one that helps them break free from their obsolete mindset ;-)
(But yes, I don't know how long I will regret not being part of their very nice catalog of science and engineering books) ;-) )
$ ls -l /usr/bin/fping -rwxr-xr-x 1 root root 31464 May 6 21:42 /usr/bin/fping
Yesterday I spent a while looking at the Debian code search site, an enormously useful service allowing you to search the code contained in the Debian archives.
The end result was three trivial bug reports:
Several years ago, I blogged about how to use a
Belgian electronic ID card with SSH. I never really used it myself, but
was interested in figuring out if it would still work.
The good news is that since then, you don't need to recompile OpenSSH
anymore to get PKCS#11 support; this is now compiled in by default.
The slightly bad news is that there will be some more typework. Rather
than entering ssh-add -D 0 (to access the PKCS#11 certificate in slot
0), you should now enter something along the lines of ssh-add -s
/usr/lib/libbeidpkcs11.so.0. This will ask for your passphrase, but it
isn't necessary to enter the correct pin code at this point in time. The
first time you try to log on, you'll get a standard beid dialog box
where you should enter your pin code; this will then work. The next
time, you'll be logged on and you can access servers without having to
enter a pin code.
The worse news is that there seems to be a bug in ssh-agent, making it
impossible to unload a PKCS#11 library. Doing ssh-add -D will remove
your keys from the agent; the next time you try to add them again,
however, ssh-agent will simply report SSH_AGENT_FAILURE. I suspect the
dlopen()ed modules aren't being unloaded when the keys are
removed.
Unfortunately, the same (or at least, a similar) bug appears to occur
when one removes the card from the cardreader.
As such, I don't currently recommend trying to use this.
Update: fix command-line options to ssh-add invocation above.
/root/didaily/arm64).
Second create a suitable guest config file such as:
name = "debian-installer"
disk = ["phy:/dev/LVM/debian,xvda,rw"]
vif = [ '' ]
memory = 512
kernel = "/root/didaily/arm64/vmlinuz"
ramdisk= "/root/didaily/arm64/initrd.gz"
extra = "console=hvc0 -- "
In this example I'm installing to a raw logical volume
/dev/LVM/debian. You might also want to use
randmac to generate a
permanent MAC address for the Ethernet device (specified as
vif = ['mac=xx:xx:xx:xx:xx:xx']).
Once that is done you can start the guest with:
xl create -c cfg
From here you'll be in the installer and things carry on as
usual. You'll need to manually point it to ftp.debian-ports.org as
the mirror, or you can preseed by appending to the extra line in the
cfg like so:
mirror/country=manual mirror/http/hostname=ftp.debian-ports.org mirror/http/directory=/debian
Apart from that there will be a warning about not knowing how to setup
the bootloader but that is normal for now.
Installing in Qemu
To do this you will need a version of http://www.qemu.org
which supports qemu-system-aarch64. The latest release doesn't yet
so I've been using
v2.1.0-rc3
(it seems upstream are now up to -rc5). Once qemu is built and
installed and the installer
kernel
and
ramdisk
have been downloaded to $DI you can start with:
qemu-system-aarch64 -M virt -cpu cortex-a57 \
-kernel $DI/vmlinuz -initrd $DI/initrd.gz \
-append "console=ttyAMA0 -- " \
-serial stdio -nographic --monitor none \
-drive file=rootfs.qcow2,if=none,id=blk,format=qcow2 -device virtio-blk-device,drive=blk \
-net user,vlan=0 -device virtio-net-device,vlan=0
That's using a qcow2 image for the rootfs, I think I created it with
something like:
qemu-img create -f qcow2 rootfs.qcow2 4G
Once started installation proceeds much like normal. As with Xen you
will need to either point it at the debian-ports archive by hand or
preseed by adding to the -append line and the warning about no
bootloader configuration is expected.
Installing on real hardware
Someone should probably try this ;-).
#!/usr/bin/python
import syslog
import datetime
from pymongo import Connection
# It assumes we use the default database name 'logs' and collection 'syslog'
# in the rsyslog configuration.
with Connection() as client:
db = client.logs
table = db.syslog
#print "Initial count: %d" % table.count()
today = datetime.datetime.today()
# remove ANY record older than 5 weeks except mail.info
t = today - datetime.timedelta(weeks=5)
table.remove( "time": "$lt": t , "syslog_fac": "$ne" : syslog.LOG_MAIL )
# remove any debug record older than 7 days
t = today - datetime.timedelta(days=7)
table.remove( "time": "$lt": t , "syslog_sever": syslog.LOG_DEBUG )
#print "Final count: %d" % table.count()
Just put it in /usr/local/bin and run it daily from cron.
Customization
Just adapt the table.remove statements as required. See the PyMongo tutorial for a very basic introduction to the query syntax and full details in the MongoDB query operator reference for creating more elaborate pruning rules.
Potential improvements

Yay!
Today I finally submitted our book, Fundamentos de Sistemas Operativos, for the Editorial Department of our institute. Of course, I'm not na ve enough to assume there won't be a heavy editorial phase, but I'm more than eager to dive into it... And have the book printed in maybe two months time!
Of course, this book is to be published under a free license (CC-BY-SA). And I'm talking with the coauthors, we are about to push the Git repository to a public location, as we believe the source for the text and figures can also be of interest to others.
The book itself (as I've already boasted about here :- ) is available (somewhat as a preprint) for download.
[update] Talked it over with the coauthors, and we finally have a public repository! Clone it from:
https://github.com/gwolf/sistop.git
Or just browse it from Github's web interface.
This is time again for my annual report about the number of developers per
country.
This is now the sixth edition of this report. Former editions:
So, here we are with the July 2014 version, sorted by the ratio of *active* developers per million
population for each country.
Act: number of active developers Dev: total number of developers A/M: number of active devels per million pop. D/M: number of devels per million pop. 2009: rank in 2009 2010: rank in 2010 2011: rank in 2011 (June) 2012: rank in 2012 (June) 2013: rank in 2012 (July) 2014: rank now
| Code | Name | Population | Act Dev | Dev | Act/Million | Dev/Million | 2009 | 2010 | June 2011 | June 2012 | July 2013 | July 2014 | |
| fi | Finland | 5259250 | 19 | 31 | 3,61 | 5,89 | 1 | 1 | 1 | 1 | 1 | 1 | |
| ie | Ireland | 4670976 | 13 | 17 | 2,78 | 3,64 | 13 | 9 | 6 | 2 | 2 | 2 | |
| nz | New Zealand | 4331600 | 11 | 15 | 2,54 | 3,46 | 4 | 3 | 5 | 7 | 7 | 3 | * |
| mq | Martinique | 396404 | 1 | 1 | 2,52 | 2,52 | 3 | 4 | 4 | 4 | |||
| se | Sweden | 9088728 | 22 | 37 | 2,42 | 4,07 | 3 | 6 | 7 | 5 | 5 | 5 | |
| ch | Switzerland | 7870134 | 19 | 29 | 2,41 | 3,68 | 2 | 2 | 2 | 3 | 3 | 6 | * |
| no | Norway | 4973029 | 11 | 14 | 2,21 | 2,82 | 5 | 4 | 4 | 6 | 6 | 7 | * |
| at | Austria | 8217280 | 18 | 29 | 2,19 | 3,53 | 6 | 8 | 10 | 10 | 10 | 8 | * |
| de | Germany | 81471834 | 164 | 235 | 2,01 | 2,88 | 7 | 7 | 9 | 9 | 8 | 9 | * |
| lu | Luxemburg | 503302 | 1 | 1 | 1,99 | 1,99 | 8 | 5 | 8 | 8 | 9 | 10 | * |
| fr | France | 65350000 | 101 | 131 | 1,55 | 2 | 12 | 12 | 11 | 11 | 11 | 11 | |
| au | Australia | 22607571 | 32 | 60 | 1,42 | 2,65 | 9 | 10 | 12 | 12 | 12 | 12 | |
| be | Belgium | 11071483 | 14 | 17 | 1,26 | 1,54 | 10 | 11 | 13 | 13 | 13 | 13 | |
| uk | United-Kingdom | 62698362 | 77 | 118 | 1,23 | 1,88 | 14 | 14 | 14 | 14 | 14 | 14 | |
| nl | Netherlands | 16728091 | 18 | 40 | 1,08 | 2,39 | 11 | 13 | 15 | 15 | 15 | 15 | |
| ca | Canada | 33476688 | 34 | 63 | 1,02 | 1,88 | 15 | 15 | 17 | 16 | 16 | 16 | |
| dk | Denmark | 5529888 | 5 | 10 | 0,9 | 1,81 | 17 | 17 | 16 | 17 | 17 | 17 | |
| es | Spain | 46754784 | 34 | 56 | 0,73 | 1,2 | 16 | 16 | 19 | 18 | 18 | 18 | |
| it | Italy | 59464644 | 36 | 52 | 0,61 | 0,87 | 23 | 22 | 22 | 19 | 19 | 19 | |
| hu | Hungary | 10076062 | 6 | 12 | 0,6 | 1,19 | 18 | 25 | 26 | 20 | 24 | 20 | * |
| cz | Czech Rep | 10190213 | 6 | 6 | 0,59 | 0,59 | 21 | 20 | 21 | 21 | 20 | 21 | * |
| us | USA | 313232044 | 175 | 382 | 0,56 | 1,22 | 19 | 21 | 25 | 24 | 22 | 22 | |
| il | Israel | 7740900 | 4 | 6 | 0,52 | 0,78 | 24 | 24 | 24 | 25 | 23 | 23 | |
| hr | Croatia | 4290612 | 2 | 2 | 0,47 | 0,47 | 20 | 18 | 18 | 26 | 25 | 24 | * |
| lv | Latvia | 2204708 | 1 | 1 | 0,45 | 0,45 | 26 | 26 | 27 | 27 | 26 | 25 | * |
| bg | Bulgaria | 7364570 | 3 | 3 | 0,41 | 0,41 | 25 | 23 | 23 | 23 | 27 | 26 | * |
| sg | Singapore | 5183700 | 2 | 2 | 0,39 | 0,39 | 33 | 33 | 27 | * | |||
| uy | Uruguay | 3477778 | 1 | 2 | 0,29 | 0,58 | 22 | 27 | 28 | 28 | 28 | 28 | |
| pl | Poland | 38441588 | 11 | 15 | 0,29 | 0,39 | 29 | 29 | 30 | 30 | 30 | 29 | * |
| jp | Japan | 127078679 | 36 | 52 | 0,28 | 0,41 | 30 | 28 | 29 | 29 | 29 | 30 | * |
| lt | Lithuania | 3535547 | 1 | 1 | 0,28 | 0,28 | 28 | 19 | 20 | 22 | 21 | 31 | * |
| gr | Greece | 10787690 | 3 | 4 | 0,28 | 0,37 | 33 | 38 | 34 | 35 | 35 | 32 | * |
| cr | Costa Rica | 4301712 | 1 | 1 | 0,23 | 0,23 | 31 | 30 | 31 | 31 | 31 | 33 | * |
| by | Belarus | 9577552 | 2 | 2 | 0,21 | 0,21 | 35 | 36 | 39 | 39 | 32 | 34 | * |
| ar | Argentina | 40677348 | 8 | 10 | 0,2 | 0,25 | 34 | 33 | 35 | 32 | 37 | 35 | * |
| pt | Portugal | 10561614 | 2 | 4 | 0,19 | 0,38 | 27 | 32 | 32 | 34 | 34 | 36 | * |
| sk | Slovakia | 5477038 | 1 | 1 | 0,18 | 0,18 | 32 | 31 | 33 | 36 | 36 | 37 | * |
| rs | Serbia | 7186862 | 1 | 1 | 0,14 | 0,14 | 38 | 38 | |||||
| tw | Taiwan | 23040040 | 3 | 3 | 0,13 | 0,13 | 37 | 34 | 37 | 37 | 39 | 39 | |
| br | Brazil | 192376496 | 18 | 21 | 0,09 | 0,11 | 36 | 35 | 38 | 38 | 40 | 40 | |
| cu | Cuba | 11241161 | 1 | 1 | 0,09 | 0,09 | 38 | 41 | 41 | 41 | 41 | ||
| co | Colombia | 45566856 | 4 | 5 | 0,09 | 0,11 | 41 | 44 | 46 | 47 | 46 | 42 | * |
| kr | South Korea | 48754657 | 4 | 6 | 0,08 | 0,12 | 39 | 39 | 42 | 42 | 42 | 43 | * |
| gt | Guatemala | 13824463 | 1 | 1 | 0,07 | 0,07 | 43 | 44 | * | ||||
| ec | Ecuador | 15007343 | 1 | 1 | 0,07 | 0,07 | 40 | 43 | 43 | 45 | 45 | ||
| cl | Chile | 16746491 | 1 | 2 | 0,06 | 0,12 | 42 | 41 | 44 | 44 | 47 | 46 | * |
| za | South Africa | 50590000 | 3 | 10 | 0,06 | 0,2 | 38 | 48 | 48 | 48 | 48 | 47 | * |
| ru | Russia | 143030106 | 8 | 9 | 0,06 | 0,06 | 43 | 42 | 47 | 45 | 49 | 48 | * |
| mg | Madagascar | 21281844 | 1 | 1 | 0,05 | 0,05 | 44 | 37 | 40 | 40 | 50 | 49 | * |
| ro | Romania | 21904551 | 1 | 2 | 0,05 | 0,09 | 45 | 43 | 45 | 46 | 51 | 50 | * |
| ve | Venezuela | 28047938 | 1 | 1 | 0,04 | 0,04 | 40 | 45 | 50 | 49 | 44 | 51 | * |
| my | Malaysia | 28250000 | 1 | 1 | 0,04 | 0,04 | 49 | 50 | 52 | 52 | |||
| pe | Peru | 29907003 | 1 | 1 | 0,03 | 0,03 | 46 | 46 | 51 | 51 | 53 | 53 | |
| tr | Turkey | 74724269 | 2 | 2 | 0,03 | 0,03 | 47 | 47 | 52 | 52 | 54 | 54 | |
| ua | Ukraine | 45134707 | 1 | 1 | 0,02 | 0,02 | 48 | 53 | 58 | 59 | 55 | 55 | |
| th | Thailand | 66720153 | 1 | 2 | 0,01 | 0,03 | 50 | 50 | 54 | 54 | 56 | 56 | |
| eg | Egypt | 80081093 | 1 | 3 | 0,01 | 0,04 | 51 | 51 | 55 | 55 | 57 | 57 | |
| mx | Mexico | 112336538 | 1 | 1 | 0,01 | 0,01 | 49 | 49 | 53 | 53 | 58 | 58 | |
| cn | China | 1344413526 | 10 | 14 | 0,01 | 0,01 | 53 | 53 | 57 | 56 | 59 | 59 | |
| in | India | 1210193422 | 8 | 9 | 0,01 | 0,01 | 52 | 52 | 56 | 57 | 60 | 60 | |
| sv | El Salvador | 7066403 | 0 | 1 | 0 | 0,14 | 36 | 58 | 61 | 61 | |||
| 969 | 1561 | 62,08% |
Next.