From owner-freebsd-questions@FreeBSD.ORG Sun Nov 2 09:13:30 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6DCBC16A4CE for ; Sun, 2 Nov 2003 09:13:30 -0800 (PST) Received: from mailout.informatik.tu-muenchen.de (mailout.informatik.tu-muenchen.de [131.159.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4705843FCB for ; Sun, 2 Nov 2003 09:13:29 -0800 (PST) (envelope-from barner@in.tum.de) Received: by zi025.glhnet.mhn.de (Postfix, from userid 1000) id 98AD06C; Sun, 2 Nov 2003 18:13:27 +0100 (CET) Date: Sun, 2 Nov 2003 18:13:27 +0100 From: Simon Barner To: William O'Higgins Message-ID: <20031102171327.GA356@zi025.glhnet.mhn.de> References: <20031102070050.GA28349@sillyrabbi.dyndns.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cNdxnHkX5QqsyA0e" Content-Disposition: inline In-Reply-To: <20031102070050.GA28349@sillyrabbi.dyndns.org> User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-new at informatik.tu-muenchen.de cc: freebsd-questions@freebsd.org Subject: Re: hacking broken ports X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Nov 2003 17:13:30 -0000 --cNdxnHkX5QqsyA0e Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > I was trying to build mplayer tonight, and I ran into a problem with > net/liveMedia. The port that I've got calls for the build done on > 10.24.2003. This file was unavailable on *any* of the listed mirrors, > with the closest match being one built on 10.30.2003. I got around this > problem by putting the file into /usr/ports/distfiles, and then > modifying two files in /usr/ports/net/liveMedia; Makefile and distfile. > I found that there was only on reference to the filename in the > Makefile, so I changed it, and then I generated an MD5 on the file that > I had and put it into distfile. After all of that foolishness mplayer > built just fine. >=20 > My question is this; am I on the right track, or am I going to screw > something up if I keep using this slash-and-burn method? I'm new to > FBSD (and *NIX), but this method seemed like it'd work. I'd just hate > to do something that's going to bite me in the ass later on. No, this is just the way how ports are updated by their maintainers. Let me add some additional remarks: Before you fix/update a port you should check the GNATS data base if somebody has already released a patch (otherwise it would just be a waste of your efforts and time): http://www.freebsd.org/cgi/query-pr-summary.cgi?query The best thing would be -of course- if you read the Porter's Handbook http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/ and shared your solution with others (i.e. fix the port for you and send a problem report). > Also, what do I have to do to the permissions of /dev/dvd so that I can > open a DVD in userspace. Right now I have to sudo mplayer to watch a > movie, and that seems silly. Thanks. I suppose /dev/dvd is a symlink to one of your DVD drives. I think adjusting the group permissions (I believe you need rw for DVDs) for that device and putting you into the right right group should be fine. In general, I perfer granting access rights to a user group instead of running a process as root (even with sudo). Regards, Simon --cNdxnHkX5QqsyA0e Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/pTs2Ckn+/eutqCoRAvh+AJ4qo/Juls0s9fW5SdLeb3GiZ/U/UgCePoCE nH75gVGWliV2VgwCdt7SZJU= =J1KF -----END PGP SIGNATURE----- --cNdxnHkX5QqsyA0e--