Category: gnome

  • An update

    I don’t really have anything really exciting to report, so y’all get to listen to me blather. And after all, that’s what blogs are for anyway, right?

    Zelda is turning 11 months old this month. This is still my favorite picture:
    PA111421.JPG

    I have been dishonorably discharged from Amazon. It seems that I am incompetent. It might have had something to do with slipping a note under the CEO’s door, though. But I have no proof of that, so let’s assume it was an un-related event. Being a nutjob doesn’t necessarily get one booted from employment. I think I can prove that.

    My friends were very supportive during my short stint of unemployment:

    
    18:32 <@drgone> how's being fired?
    18:32 < cj_> drgone: I made money by being fired.  isn't that great?
    18:32 <@drgone> rock on
    18:32 <@drgone> gotta love hush money
    20:13 <@btm> cj: where you working now?
    20:56 < cj_> btm: cardomain.com
    

    I went to lunch with a couple of friends from #mono today. That references earns me the right to spam the monologue folks (hi everyone!). benjoldersma, his friend [Ian] and I went to an Indian place in Fremont. I was hoping that RevFry would come, too, but he is lame.

    We talked about the Seattle Mono Users’ Group (all four of us), Prebuild, the DLR, my hopes of getting a gig at Microsoft to implement Perl6 on the DLR, IKVM, GTK#, gtk+, XAML, WPF, Moonlight, Ubuntu, and other stuff, I’m sure.

    I’m working at cardomain.com on contract. It’s fun. The people there seem smart and interested in what they’re doing. Their development infrastructure makes me happy. The fact that their devs do automated testing also makes me happy. The fact that I have LoS to the Westin makes me happy. The parking situation rains on my parade.

    Speaking of the Westin, I let down my friends with whom I co-locate. I was unable to run to the rack when one of the servers needed love and attention. It cost the other folks quite a bit of revenue. Allow me to apologize publicly. I’m sorry folks. I’m doing what I can to reduce the risk of this happening again. I hope I can make it up to you.

    Hannah got a job at Microsoft working on the Surface team.

    And with that, I will select some categories… thanks for tuning in :)

  • I had to fill out a Bio today… here’s what I wrote.

    My background includes experience in system administration, network operation, technical support, and development of applications on server and client side.

    My primary operating system is Debian GNU/Linux.
    My primary programming languages are C# and Perl.
    I run a small family ISP on a not-for-profit basis: http://colliertech.org/
    I am a “charter” member of a group originally know as “The Linux Internet Support Co-Operative” (LISC). The group is now known as the Open Projects Network (OPN) and is best known for its involvement with the freenode.net IRC servers.
    I hold r/w access to the source code repositories of many “open source” projects including Mono, GNOME, and many projects hosted by sourceforge.
    I self-identify as a Free Software developer, non-pauline christian, democratic socialist and egalitarian.
    I find the work done by the free software / open source community fascinating and attempt to contribute to the project with time available to me.

  • Producing relocatable packages with the GNU build system

    I’ve recently found a need to create relocatable versions of some of my favorite libraries (produced, not-so-coincidentally by the GNU build system). You might find yourself asking “What is relocatable software, and why should I care?” Maybe I can help.

    A piece of software is said to be “relocatable” when it does not rely on an absolute path in a filesystem in order to operate correctly. An example of this type of system is OS X’s .app directory/package framework.

    As it currently stands, if I were to install iceweasel (or Firefox™) in /usr/local/mozilla/, but later realize there is more disk space available in /opt, I would be SOL. If mozilla were built as a relocatable package, however, moving /usr/local/mozilla/ to /opt/mozilla/ would not be a problem.

    There are a couple of things standing in the way of this shiny new future.

    1) In its current state, GNU autoconf accepts multiple absolute paths as argument values. In a relocatable package, all related software must be installed relative to a single point, referred to in autoconf nomenclature as the “prefix”. In a perfect world, all directories relative to the prefix would be further constrained as not to be beneath the prefix root. For example, defining the “bindir” as ${prefix}/../bin/ would be a no-no.

    I have proposed a solution to this problem on the bug-autoconf list.

    2) After a package is created in a relocatable way, how does one find said package once it has been moved?

    The solution to this problem lies in the standardization of the use of pkg-config and subsequent modifications to the $PKG_CONFIG_PATH environment variable.

    The first step is to ensure that your GNU build system includes a rule to generate a .pc file. The standard way to do this is to include a .pc.in autoconf template in the distribution as well as an entry in the AC_OUTPUT( … ) macro of the configure.am file (configure.in in legacy codebases).

    Here are some examples from the Mono codebase. Note that configure.am is named configure.in in the mono codebase. Note further that I am scowling.

    AC_OUTPUT([
    Makefile
    mint.pc
    mono.pc
    mono-cairo.pc
    dotnet.pc
    mono-uninstalled.pc
    scripts/mono-nunit.pc
    ...
    ])
    

    Here are a couple of examples of the contents of .pc.in files:

    cjac@dom0:/usr/src/svn/mono/mono-1.2.5$ cat mint.pc.in 
    prefix=${pcfiledir}/../..
    exec_prefix=${pcfiledir}/../..
    libdir=${prefix}/lib
    includedir=${prefix}/include/mono-@API_VER@
    
    
    Name: Mono Interpreter
    Description: Mono Interpreter Runtime
    Version: @VERSION@
    Requires: glib-2.0 gthread-2.0
    Libs: -L${libdir} @export_ldflags@ -lmint @libmono_ldflags@
    Cflags: -I${includedir} @libmono_cflags@
    
    cjac@dom0:/usr/src/svn/mono/mono-1.2.5$ cat mono.pc.in 
    prefix=${pcfiledir}/../..
    exec_prefix=${pcfiledir}/../..
    libdir=${prefix}/@reloc_libdir@
    includedir=${prefix}/include/mono-@API_VER@
    
    Name: Mono
    Description: Mono Runtime
    Version: @VERSION@
    Requires: glib-2.0 gthread-2.0
    Libs: -L${libdir} @export_ldflags@ -lmono @libmono_ldflags@
    Cflags: -I${includedir} @libmono_cflags@
    

    Of particular importance in these files is the definition of ${prefix}, ${exec_prefix}, ${libdir} and ${includedir} relative to ${pcfiledir}. ${pcfiledir} is set at pkg-config run time as it iterates over the contents of the $PKG_CONFIG_PATH environment variable.

    For example, if $PKG_CONFIG_PATH evaluates as “/home/cjac/opt/mono/lib/pkgconfig:/usr/lib/pkgconfig”, on the first iteration, ${pcfiledir} will store /home/cjac/opt/mono/lib/pkgconfig, and on the second iteration, ${pcfiledir} will store /usr/lib/pkgconfig.

    So! Assuming I installed mono to ~/opt/mono, and I wanted to instead move it to /opt/mono, all I would need to do is the following:

    $ sudo mv ~/opt/mono /opt
    $ export PKG_CONFIG_PATH="/opt/mono/lib/pkgconfig:$PKG_CONFIG_PATH"
    

    And voila. All of my mono-related bits and all references to them have been moved. Independent of the absolute path to the mono package, the prefix can be determined in a consistent way:

    $ pkg-config mono --variable=prefix
    

    Comment away… I’ll try to get rid of some of the spam crowding my comment backlog…

  • autotools build error – resolved!

    I googled all over for this error with no results:

    autom4te: unknown language: Autoconf-without-aclocal-m4
    aclocal-1.10: autom4te failed with exit status: 1
    

    It turns out that I had built an obsolete version of autoconf (2.53) and it was in my $PATH ahead of everything sane. Building and installing 2.61 (the latest version as of 2007/08/15) fixes this, and jhbuild is happily sucking my CPU and network time away once more.

    You can find the latest version of autoconf (and a whole bunch of other nice toys) on the GNU FTP server.

  • Prebuild Autotools target

    Hello public,

    I’m putting some effort into GtkGlAreaSharp again. The supporting bits aren’t really production-ready, though, so rather than hacking on the widget itself and its associated examples, I’m beefing up the underlying platform.

    The first step in the process is making Prebuild a viable meta-build system. Right now it works pretty well for generating NAnt, Visual Studio 2003, Visual Studio 2005 and MonoDevelop build systems. The Autotools target is a bit lacking, however. There is not currently support for recursive projects, ie, solutions with multiple projects. There is also no support for versioned solutions or projects. This makes it difficult to strong-named assemblies, without which, libraries can’t be added to the GAC. Production-quality code is usually added to the GAC, so getting the feature addressed is pretty high priority.

    The reason I’m focusing on Prebuild is that the Tao framework, a cross-platform C# binding to the OpenGL API, uses Prebuild to generate its build systems. I use Tao in the examples distributed with GtkGLAreaSharp in order to demonstrate the widget’s usage, how one might allow one’s users to interact with objects rendered in the OpenGL widget, etc.

    My work so far on the Prebuild Autotools templates is living in my own subversion repository until I get it to a better state than the stuff at sourceforge. If you’re interested in taking a peek, browse on over to https://svn.colliertech.org/mono/dnpbAutotools/

    After we convince Prebuild to generate robust Autotool build systems, I’m going to see how much effort it takes to push Prebuild into the Ubuntu core. After there is an Ubuntu package, it will probably take much less effort to get it packaged up for Debian. One day I will become a DD, but that takes a lot of time, and I hear a rumor that someone has to kick the bucket before they start accepting more :)

    There are also a couple of nearly-complete bugs blocking gtkglarea from working smoothly on win32. This seems like a good place to focus effort after Prebuild does what I want. Plus, then, I will move the gigantic project of adding OpenGL support to GTK+ core forward a few steps.

  • my name in lights

    Mono 1.2

    Hey, look. My name is mentioned down at the bottom.

    http://www.go-mono.com/archive/1.2/#contributors

    testing aggregator’s ability to de-dup this update

  • gtk and OpenGL

    I couldn’t sleep this morning. I woke up early and mostly watched Firefly. Between episodes, I hacked on gtkglarea and updated some of my bugs over at the gnome bugzilla system. I added a couple of components to the gtkglarea product page, namely build and docs.

    Next on my list of things to do for the project include working kinks out of the mingw build, getting some folks with msys/mingw systems to test the build, merging the gdkgl.c and gdkgl-win32.c files and adding some gtk-doc docs. At that point, it should be good to release.

    I also took over ye olde gtk + OpenGL bug. I plan on having a suitable GL widget in the core of gtk+ within a year. Whip me if I slack :)

  • Someone asked recently….

    Their question was “Why is VMS so much faster than Unix?”

    They of course used the new fangled words for “VMS” and “Unix,” but the idea was the same. The short answer is that it’s because they are different operating systems and that they focus on different consumers. The long answer is very long.

    It goes a bit like this: One is not faster than the other. They do different things at different speeds. VMS has been known for doing the things that humans notice more quickly than the things that humans don’t notice. In recent years, NeXT has changed this a bit, and a bit of that change has dribbled into the more mainstream Unix front ends such as KDE and GNOME.

    It is also true that more people have historically payed money for the VMS variants than for the Unix variants. This has created industries loyal to VMS based on the amount of dollars floating around. This is good and bad in much the same ways that Unix and VMS are good and bad. The VMS world ends up being the guinea pig for a lot of things intended to improve Customer Experience, as they call it.

    Blah blah blah. It’s time to start work.

  • Prims XSD alpha, pre-release

    The libsecondlife (libsl) team is putting together an XML schema doc to describe the format of the 3d objects it will use to present the second life world to its users.

    This XSD will enable libsl to have a hardened API to create and manipulate 3d objects, whether they are presented to the user via a graphical interface or not. The 3d objects can be used to determine collisions and other things useful on headless clients.

    Lalala. Back to it.