Search Results: "Simon Richter"

5 June 2007

Simon Richter: A plan. Let me put on my slightly larger glasses...

My plan for tonight, apart from the neverending story that is titled "cleaning the kitchen" is to implement a Proof of Concept preprocessor for control files that allows stripping out information that is not compatible with current Debian policy. The idea is that if you want a new control field, you can try it out in xcontrol without having to change two files at the same time consistently.

Simon Richter: Erm, no.

NFS over an OpenVPN link does not work. Or rather, it does at first, but later the openvpn daemon decides to take a walk in the file system.

31 May 2007

Simon Richter: Obsolescence

So I decided to bite the bullet and reimplement the OMF to COFF converter. The program I had was from a shady website I couldn't read (in contrast to the program's interface, which was in French). The files Borland's compiler generates do not really follow the specification (surprise), but at least the important bits make sense, if you ignore that only few of the records in the file use the 32-bit extensions in the format.

30 May 2007

Simon Richter: Why I like Makefiles

Today was frustrating. I've spent 6 hours trying to find out how to make Borland CBuilder link a static library into a DLL project. Since the target is Windows, this should work, but there simply isn't an option to do that, or I am unable to find it. In other news, mixing code in different object formats is pain.

24 May 2007

Simon Richter: Mixing different C libraries

At work, I have to build a large DLL that is compiled partially on Borland CBuilder and partially on Visual Studio. Besides being stinking huge since I have to link against two standard libraries and Borland's annoying tendency to still link against their standard library dynamically despite my explicit request for no external dependencies, this is actually working quite well. Obviously, since stuff would fail otherwise if I brought a DLL compiled with Borland into a process with Microsoft runtime (which people do commonly). In principle, this also works under Linux, with precisely the same constraints (do not free() memory another module allocated for you, etc.). The C library may not assume it is the only one using memory management primitives like brk and mmap anyway, so multiple libcs in the same process should just work. The only things causing trouble here are libraries reexporting interfaces and asymmetric allocators. The former can be caught by a static header check, the latter by valgrind (in theory).

22 May 2007

Simon Richter: I don't really need the GUI

I just spent the bigger part of the day trying to find a memory corruption issue in a Win32 DLL. The pendant to valgrind would be Rational Purify, which costs almost 1000 Euros per seat, but fortunately there is a trial version. So far, I'm not entirely convinced the software is useful. I found a bunch of leaks and uninitialised variables, but I knew about those already (they all showed up as warnings during compilation). The bug I am hunting for, a place where it overwrites the allocator's structures, goes undetected, and the debugging exception thrown by the runtime is acknowledged silently. I shall now pester their support.

Simon Richter: To arch or not to arch, that is the question.

There has been some discussion lately whether packages compiled against uClibc should get their own architecture name. I'm somewhat ambivalent on this, since there is no "real" technical reason for it, as multiple different libcs can be used at the same time, just not within a single program (and this restriction is mainly due to malloc/free and it's not a hard "no" if neither library assumes to be the only place calling brk(), which a good libc shouldn't). The obvious argument in favour is that it'd help keep binary packages apart, which is also important -- no one wants two different packages with the same name. A possible way to solve this could be another field in the control file, perhaps called "Variant", that would help distinguish but have no other consequences (so the group who just wanted to shout "USE FLAGS!" can sit down again). All of this needs more thought, however.

21 May 2007

Simon Richter: Wacky Ideas: The Gathering

At this year's Debian conference, I'm planning to hold a BoF session on "wacky ideas". The idea is to gather everyone who needs (or believes so) an extension to the Debian package format or other piece of infrastructure around a round table and come up with something that works for everybody and a transition plan that leads us there. I hope to get at least some of the embedded and some of the translation bits on the way there. Our mascot is a rabbit with antlers (the infamous Wolpertinger).

17 May 2007

Simon Richter: I'm in ur serverz, managing ur domainz

Steve talks about a tool some of us have needed for a long time, but never actually bothered to implement because applying the necessary changes in vim is still faster than writing a script to do it. The biggest issue for me is that the UI would have to represent grouping of items efficiently. If I have a number of domains registered to my company, I want my employees to be able to receive email at "firstname.lastname" in each of them, without ever duplicating the grouping information. For HTTP, the grouping works slightly different: a set of domains could be variants of the same name with different misspellings, abbreviations or top level domains. To keep things tidy, I redirect everyone who is not using the "canonical" name, using mod_redirtoservname. Thus, the group needs a "leader". Subdomains are usually independent setups, since there is not much point in having multiple names in the same domain for the same service. It may also be a good idea to somehow be able to configure delegations using SRV records.

15 May 2007

Simon Richter: Needs more m4

With uClibc done, busybox can now get some attention. Debian has 1.1.3, while upstream is at 1.5.0; upstream's build system is stolen from another project in a very interesting way (yes, it has a "modules_install" target) and we have multiple copies of the source in Debian.

Simon Richter: Hooray, I'm going to Disneyworld

Even better, in fact. I'm going to Edinburgh.

14 May 2007

Simon Richter: You spend too much time on the Internets if...

I find it increasingly difficult to keep memes and idioms apart. Especially a certain animal formerly in possession of a bucket really confuses the hell out of the part of my brain responsible for irregular verb forms.

11 May 2007

Simon Richter: Why the environment loses out, again.

Today I called Deutsche Bahn (German Rail) to ask for a price estimate for MUC-EDI. They are asking for 426 . That is, if you spend the night on a train, sitting upright, then walk through Paris for half an hour with your luggage for a total travelling time of 18 hours. Double both price and time if you also want to go back. Seriously. Update: Since it was suggested that flying might be even more expensive: The cheapest flight MUC-EDI costs 180 EUR both ways, including all taxes and fees.

MJ Ray: Debconf7: The slef travel service

Now I've got my tickets, I've put some tips about finding cheap debconf land travel onto the debconf site. (I know that was selfish, but debconf's travel deadlines sucked and it refused to help pay for travel, so please excuse me looking after myself first.) Damog emailed me, grumbling about how hard it is to find cheap/quick land travel from a major English city to Edinburgh. I sent back three options for under GBP 35 return, but I've heard nothing more. Hope it worked. Simon Richter wrote GyrosGeier's blog - Why the environment loses out, again. complaining that Deutsche Bahn quote 426 ? (EUR, I guess) to go to Edinburgh from Munich. Well, I just asked Lufthansa and they quote up to EUR 1400 to fly Munich-Edinburgh, but I'm sure you can find that cheaper too - obviously, if you get only one quote from a dominant supplier, that may not be the best price available. I don't know about travel from Germany, but someone already left a link to another ticket agency in the comments.

10 May 2007

Simon Richter: gcc 4.3

Martin writes about semicolons after functions being an error now. This makes life difficult if you want your code to also compile on Visual Studio 2005 (probably 2003 as well, haven't tested) and you use "function-try-block"s in C++, because there is a compiler bug that makes it actually require semicolons after some functions.

9 May 2007

Simon Richter: Whee, it works.

The dirty work is done, and I have successfully built a busybox that links against uClibc. what is so special about that, you ask? Well, the toolchain I used is the emdebian ARM cross compiler, and the uClibc was built with dpkg-buildpackage, converted to a cross -dev package using dpkg-cross and then installed with dpkg. So the final step, providing a compiler alias, is a two line shell script away. You can use uClibc by either passing the -uclibc command line option to the compiler (in all stages), or by invoking the compiler using the arm-linux-uclibc-gcc alias. I am thinking about uClibc++ as well, however that will require additional tuning.

4 May 2007

Simon Richter: Live from the uClibc front

/usr/arm-linux-gnu/arm-linux-uclibc/include is the place where the party is at, it seems. Time to hack dpkg-cross. Also, preferences for the name schema for MMUless systems are solicited. My favourite is "armelnommu" & co.

Simon Richter: Something seems afoul in the state of Queensland

There is substantial rumour on the 'net that the authors of this article are in serious trouble from their alma mater, the Queensland University of Technology, for publishing it. Since I have no firsthand information on this, it is too early for me to form an opinion. The comments on the article are an interesting read, too. I'm interested in what is going on there, since there seems more to it than an academic quabble whether "there is worthwhile stuff and rubbish, and we don't need to study the latter" and "you cannot objectively define the boundary, so let's study everything" is more true than the other.

3 May 2007

Simon Richter: Introducing debian/xcontrol, soon

Since it almost seems that I won't be at this year's DebConf in Edinburgh, there will be a slight problem holding my BoF there, where I planned to talk about incompatible changes to the packaging system, introducing new features. Thus, I'm calling for ideas that would require intrusive changes everywhere (translation debs are in, of course, as well as the stuff I already posted), so I can get a bit of an overview and become able to propose something that will not just work for me, but for others as well.

Simon Richter: uClibc

Current gcc seems to re-execute itself when asked to use a different target with the -b option. This makes things difficult. In other embedded programming news, uClibc is going to be named libc.so.uc0.9.29. The package name will be for the ftpmasters to decide.

Next.

Previous.