After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 542136 - Brasero on OpenSolaris
Brasero on OpenSolaris
Status: RESOLVED FIXED
Product: brasero
Classification: Applications
Component: general
unspecified
Other All
: Normal enhancement
: 0.7
Assigned To: Brasero maintainer(s)
Brasero maintainer(s)
: 507141 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-07-09 03:22 UTC by Lin Ma
Modified: 2008-09-24 12:06 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Added Solaris USCSI (1.54 KB, patch)
2008-07-09 03:44 UTC, Lin Ma
committed Details | Review
Added a new source file for USCSI (348 bytes, patch)
2008-07-09 03:51 UTC, Lin Ma
committed Details | Review
USCSI backend source file (4.87 KB, patch)
2008-07-09 03:52 UTC, Lin Ma
committed Details | Review
some fixes. (8.83 KB, patch)
2008-07-17 12:05 UTC, Lin Ma
committed Details | Review

Description Lin Ma 2008-07-09 03:22:06 UTC
Brasero should use USCSI on Solaris
Comment 1 Lin Ma 2008-07-09 03:44:12 UTC
Created attachment 114225 [details] [review]
Added Solaris USCSI

Removed AM_PROG_CC_STDC because I get "AM_PROG_CC_STDC 's logic has now been merged into Autoconf's AC_PROG_CC macro, therefore you should use the latter instead." from automake doc.
Comment 2 Lin Ma 2008-07-09 03:47:56 UTC
(In reply to comment #1)
> Created an attachment (id=114225) [edit]
> Added Solaris USCSI
> 
> Removed AM_PROG_CC_STDC because I get "AM_PROG_CC_STDC 's logic has now been
> merged into Autoconf's AC_PROG_CC macro, therefore you should use the latter
> instead." from automake doc.
> 
The patch is for configure.in is to check uscsi structure on Solaris.
Comment 3 Lin Ma 2008-07-09 03:51:14 UTC
Created attachment 114226 [details] [review]
Added a new source file for USCSI
Comment 4 Lin Ma 2008-07-09 03:52:36 UTC
Created attachment 114227 [details] [review]
USCSI backend source file
Comment 5 Lin Ma 2008-07-10 03:27:32 UTC
uscsi(7I) is compliant to ANSI Small Computer System Interface-2 (SCSI-2).

So it's the first step to make Brasero work on Solaris (I have successfully write a ISO file to a DVD medium). I will continue fixing the bugs.
Comment 6 Philippe Rouquier 2008-07-10 07:48:38 UTC
I committed your patches to trunk.
Thanks for your work.

Should I close it now or do you want to keep this bug open so as to track all issues?

2008-07-10  Philippe Rouquier  <algernon@localhost.localdomain>

	Fix for #542136 – Brasero on OpenSolaris
	Patch by Lin Ma

	* src/scsi-uscsi.c (brasero_scsi_command_issue_sync),
	(brasero_scsi_command_new), (brasero_scsi_command_free),
	(brasero_device_handle_open), (brasero_device_handle_close):

2008-07-10  Philippe Rouquier  <algernon@localhost.localdomain>

	Fix for #542136 – Brasero on OpenSolaris
	Patch by Lin Ma

	* src/Makefile.am:

2008-07-10  Philippe Rouquier  <algernon@localhost.localdomain>

	Fix for #542136 – Brasero on OpenSolaris
	Patch by Lin Ma

	* configure.in:
Comment 7 Philippe Rouquier 2008-07-10 07:55:45 UTC
*** Bug 507141 has been marked as a duplicate of this bug. ***
Comment 8 Lin Ma 2008-07-10 08:35:57 UTC
(In reply to comment #6)
> I committed your patches to trunk.
Thanks Philippe.

> Should I close it now or do you want to keep this bug open so as to track all
> issues?
No, we can keep it open to track Solaris specific issues.
Comment 9 Brian Cameron 2008-07-14 08:56:29 UTC
Note that I think the minor change from bug #507141, where I suggest that the following change be made should go upstream.  This just adds "static" to the definition of "brasero_utils_is_gid_in_groups".  Sun Studio 11 compiler doesn't like it when static functions use non-static inline functions, so adding this static fixes this issue.  As Lin mentions in bug #507141, this is no longer an issue in Sun Studio 12, but it would still be nice to fix this bug so Solaris users with the older compiler (e.g. Solaris 10 users) can still build the code.
Here is the change I am speaking of:

--- brasero-0.7.0/src/brasero-utils.c-orig      2008-01-03 16:57:54.018579000 -0
600
+++ brasero-0.7.0/src/brasero-utils.c   2008-01-03 16:58:37.285554000 -0600
@@ -98,7 +98,7 @@ brasero_utils_init (void)
        g_atexit (brasero_utils_free);
 }
 
-inline gboolean
+static inline gboolean
 brasero_utils_is_gid_in_groups (gid_t gid)
 {
        gid_t *group;
Comment 10 Philippe Rouquier 2008-07-16 11:41:56 UTC
I committed an even simpler fix Brian. The offending function isn't used any more in brasero so I removed it =), which should help.
Comment 11 Lin Ma 2008-07-17 12:05:53 UTC
Created attachment 114717 [details] [review]
some fixes.

ChangeLog is updated. Please review it.
Comment 12 Philippe Rouquier 2008-07-18 14:16:18 UTC
Thanks. I committed your patch. I won't go over the details, I sent you a mail.
Comment 13 Lin Ma 2008-09-22 08:27:37 UTC
Hi Philippe, I have successfully integrated 0.8.2 into Solaris. Thanks for your help. Currently I don't have any further Solaris specific fixes, so I'd like close this bug.
Comment 14 Philippe Rouquier 2008-09-22 14:41:30 UTC
Excellent news. I'm glad to hear that.
How did you solve the privilege problem you mentioned?
Comment 15 Lin Ma 2008-09-24 12:06:55 UTC
(In reply to comment #14)
> Excellent news. I'm glad to hear that.
> How did you solve the privilege problem you mentioned?
> 

Sorry to reply so late.
To use gksu to acquire root privilege due to some backends e.g. growisofs. I should narrow down the acquired privileges in future. There is one issue that if run brasero by root will failed to connect to the user's session bus, so it will fail to get available volumes from gio, so eject will fail. I'm not sure where is the reason. But it looks a Solaris specific bug of dbus. The reason is gksu "dbus-monitor --session" works on Linux, but it will fail on Solaris.