There is no /proc/self/fd/0 on FreeBSD: use /dev/fd/0 instead.

This commit is contained in:
Max Khon 2011-05-23 15:35:07 +00:00
parent 5ef642e802
commit af8dc1af58
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=274520
2 changed files with 26 additions and 0 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= brasero
PORTVERSION= 2.32.1
PORTREVISION= 1
CATEGORIES= sysutils audio multimedia gnome
MASTER_SITES= GNOME
DIST_SUBDIR= gnome2
@ -70,5 +71,6 @@ post-patch:
${WRKSRC}/libbrasero-burn/burn-process.c
@${REINPLACE_CMD} -e 's|" == "|" = "|g' \
${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|/proc/self/fd/0|/dev/fd/0|g' ${WRKSRC}/po/*.po
.include <bsd.port.post.mk>

View file

@ -0,0 +1,24 @@
--- plugins/growisofs/burn-growisofs.c.orig 2011-05-23 20:22:46.000000000 +0700
+++ plugins/growisofs/burn-growisofs.c 2011-05-23 20:23:15.000000000 +0700
@@ -502,18 +502,18 @@
/* FIXME: is it right to mess with it ?
g_ptr_array_add (argv, g_strdup_printf ("-use-the-force-luke=bufsize:%im", 32)); */
- if (!g_file_test ("/proc/self/fd/0", G_FILE_TEST_EXISTS)) {
+ if (!g_file_test ("/dev/fd/0", G_FILE_TEST_EXISTS)) {
g_set_error (error,
BRASERO_BURN_ERROR,
BRASERO_BURN_ERROR_FILE_NOT_FOUND,
_("\"%s\" could not be found"),
- "/proc/self/fd/0");
+ "/dev/fd/0");
return BRASERO_BURN_ERR;
}
/* FIXME: should we use DAO ? */
g_ptr_array_add (argv, g_strdup ("-Z"));
- g_ptr_array_add (argv, g_strdup_printf ("%s=/proc/self/fd/0", device));
+ g_ptr_array_add (argv, g_strdup_printf ("%s=/dev/fd/0", device));
g_free (device);
}
else if (BRASERO_IS_TRACK_IMAGE (current)) {