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 135139 - Add NetBSD support to gnome-cd
Add NetBSD support to gnome-cd
Status: RESOLVED FIXED
Product: gnome-media
Classification: Deprecated
Component: Gnome-CD
2.5.x
Other All
: Normal major
: 2.7.0
Assigned To: gnome media maintainers
gnome media maintainers
Depends on:
Blocks:
 
 
Reported: 2004-02-22 18:12 UTC by Julio Merino
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to add NetBSD support (3.86 KB, patch)
2004-02-22 18:16 UTC, Julio Merino
needs-work Details | Review
New patch to add NetBSD support (w/o breaking FreeBSD) (3.89 KB, patch)
2004-02-23 14:04 UTC, Julio Merino
none Details | Review

Description Julio Merino 2004-02-22 18:13:32 UTC
The attached patch adds NetBSD support to gnome-cd.  I'm not sure who did 
it in the first place, but I think he was René Hexel. 
 
I'd suggest renaming freebsd-cdrom.[ch] to bsd-cdrom.[ch] to avoid 
confusion, as well as the CDROM_HOST_FREEBSD variable used in configure.  
But I'll leave this up to you ;) 
 
(Note that this patch has been in NetBSD's pkgsrc for a long time, so it 
has been tested by several people).
Comment 1 Julio Merino 2004-02-22 18:16:08 UTC
Created attachment 24659 [details] [review]
Patch to add NetBSD support
Comment 2 Ted Gould 2004-02-23 06:58:25 UTC
I think that this:

-		if (ioctl (cdrom->fd, CDIOREADTOCENTRY, &tocentry) < 0) {
+		if (ioctl (cdrom->fd, CDIOREADTOCENTRYS, &tocentries) < 0) {

Needs and #ifdef around it, right?  I don't have BSD to test this file
at all, but I don't think this variable is defined unless __FREEBSD__
is not defined.
Comment 3 Julio Merino 2004-02-23 14:03:47 UTC
You are right.  That part of the patch is just wrong, because it's 
removing some code still needed by FreeBSD, and adding some that 
won't even compile (where 'some code' = 'one line' ;). 
 
I've attached a new patch with the #ifdef around that line.  Hope 
it's right now. 
Comment 4 Julio Merino 2004-02-23 14:04:35 UTC
Created attachment 24691 [details] [review]
New patch to add NetBSD support (w/o breaking FreeBSD)
Comment 5 Ronald Bultje 2004-04-22 17:30:56 UTC
I propose to apply this to 2.7.x right after branching off 2.6.x. And yes, I'll
rename freebsd->bsd as well.
Comment 6 Thomas Vander Stichele 2004-05-09 17:35:37 UTC
commited to cvs with relevant changes