GNOME Bugzilla – Bug 170530
Building gnome-vfs-2.10.0 on DragonFly fails
Last modified: 2005-05-08 13:20:39 UTC
Version details: 2.10.0 Try to build gnome-vfs-2.10.0 on DragonFly with CCVER=gcc34. The recently added support for DragonFly(thanks for that!) is missing a few more pieces to compile it under gcc34(which does not define a few preprocessor symbols like __FreeBSD__ and __FreeBSD_version as gcc2.95 does). Please find the patch to fix it from the following URL: http://leaf.dragonflybsd.org/mailarchive/submit/2005-03/msg00094.html
By any chance, could you generate a diff and attach it here ? The patch was inline in the body of the mail, and I fear a simple copy and paste won't be enough to get it (and I can't test atm). For the record here is the patch (in case the link disappears for one reason or antoher): --- gnome-vfs-2.10.0/modules/cdda-method.c.orig 2005-03-14 18:11:04.000000000 +0900 +++ gnome-vfs-2.10.0/modules/cdda-method.c 2005-03-14 18:11:37.000000000 +0900 @@ -625,7 +625,7 @@ if (global_context != NULL) { #ifdef __linux__ if (strcmp (drive->cdda_device_name, global_context->drive->cdda_device_name) == 0) { -#elif defined(__FreeBSD__) +#elif defined(__FreeBSD__) || defined(__DragonFly__) if (strcmp (drive->dev->device_path, global_context->drive->dev->device_path) == 0) { #endif use_cache = TRUE; @@ -715,7 +715,7 @@ if (global_context != NULL) { #ifdef __linux__ if (strcmp (drive->cdda_device_name, global_context->drive->cdda_device_name) != 0) { -#elif defined(__FreeBSD__) +#elif defined(__FreeBSD__) || defined(__DragonFly__) if (strcmp (drive->dev->device_path, global_context->drive->dev->device_path) != 0) { #endif /* Clear old cache */ --- gnome-vfs-2.10.0/libgnomevfs/gnome-vfs-volume-ops.c.orig 2005-03-14 18:11:04.000000000 +0900 +++ gnome-vfs-2.10.0/libgnomevfs/gnome-vfs-volume-ops.c 2005-03-14 18:11:48.000000000 +0900 @@ -261,7 +261,7 @@ } if (info->should_eject) { -#ifdef __FreeBSD__ +#if defined(__FreeBSD__) || defined(__DragonFly__) char *argv[5] = { "cdcontrol", "-f",
Created attachment 38790 [details] [review] additional patch to add #ifdef __DragonFly__
Commited to cvs. Thanks for the patch and sorry for the delay!