From owner-freebsd-ports@FreeBSD.ORG Tue Nov 2 18:13:08 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2E17916A4CE for ; Tue, 2 Nov 2004 18:13:08 +0000 (GMT) Received: from relay02.roc.ny.frontiernet.net (relay02.roc.ny.frontiernet.net [66.133.131.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id CEC2543D54 for ; Tue, 2 Nov 2004 18:13:07 +0000 (GMT) (envelope-from drew@mykitchentable.net) Received: from filter02.roc.ny.frontiernet.net (filter02.roc.ny.frontiernet.net [66.133.131.177]) by relay02.roc.ny.frontiernet.net (Postfix) with ESMTP id 4DFFEFEA3 for ; Tue, 2 Nov 2004 18:13:07 +0000 (UTC) Received: from relay02.roc.ny.frontiernet.net ([66.133.131.35]) [66.133.131.177]) (amavisd-new, port 10024) with LMTP id 15190-46-95 for ; Tue, 2 Nov 2004 18:13:07 +0000 (UTC) Received: from blacklamb.mykitchentable.net (67-137-46-138.dsl2.elk.ca.frontiernet.net [67.137.46.138]) by relay02.roc.ny.frontiernet.net (Postfix) with ESMTP id 8D2A410078 for ; Tue, 2 Nov 2004 18:13:02 +0000 (UTC) Received: from [165.107.42.151] (unknown [165.107.42.151]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by blacklamb.mykitchentable.net (Postfix) with ESMTP id 7F6CC3BF38E for ; Tue, 2 Nov 2004 10:12:35 -0800 (PST) Message-ID: <4187CE00.8040900@mykitchentable.net> Date: Tue, 02 Nov 2004 10:12:16 -0800 From: Drew Tomlinson User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: ports@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20040701 (2.0) (Debian) at filter02.roc.ny.frontiernet.net Subject: Extreme Newbie Help With Modifying Bacula Port to Get 1.36.0 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Nov 2004 18:13:08 -0000 I've never created or modified a port so I'm a complete newbie. I'm using bacula 1.34.6 which is the current version in the ports tree. However my HP DLT30 (DLT2000) tape drive isn't working properly with the software. I posted to the bacula list and have been directed to upgrade to the current version of 1.36.0. So I thought, why don't I learn about ports? After all, it shouldn't be to hard to modify a Makefile to get a newer version and then I could share my updates with the port maintainer. I've picked through the Porters Handbook and bsd.port.mk and found that I needed to change "PORTVERSION=" from "1.34.6" to "1.36.0". Then I found that I had to run "make makesum" to create the distinfo file. Now when I run "portupgrade -f bacula", it fails during patching (output follows). I suspect that the line numbers have changed and I need to create a new diff (something I've never done before). I suspect I need to make a copy of the appropriate file in the source code, make these changes to it, and then run diff with the appropriate switches. However I have no idea what file I might be looking for. Can anyone nudge me in the right direction? Am I close? Thanks, Drew blacklamb# portupgrade -f bacula ---> Upgrading 'bacula-1.34.6_2' to 'bacula-1.36.0_2' (sysutils/bacula) ---> Building '/usr/ports/sysutils/bacula' with make flags: WITH_MYSQL=yes ===> Cleaning for mysql-client-3.23.58_3 ===> Cleaning for libtool-1.5.10 ===> Cleaning for bacula-1.36.0_2 =======> ATTENTION <======= ###################################################### ===> Please read the file ===> /usr/local/share/doc/bacula/ReleaseNotes ===> for the upgrade procedure! ===> IF YOU IGNORE THIS you may !! LOSE DATA !! ###################################################### ===> Note that there is a pthreads problem, which leads to the loss of 500kB ===> of data at the end of an tape. This is corrected in newer versions of FreeBSD ===> READ /var/tmp/usr/ports/sysutils/bacula/work/bacula-1.36.0/platforms/freebsd/pthreads-fix.txt You may use the following build options (or make config): WITH_CLIENT_ONLY=yes if you only want the file daemon. WITH_WXCONSOLE=yes if you only want a wxGTK based GUI console. WITH_GNOMECONSOLE=yes if you only want a GNOME based GUI console. WITH_MTX=yes if you want to use mtx instead of chio for autochanger control. ===> Using mysql as the bacula database. ===> Found saved configuration for bacula-1.32f4 ===> Extracting for bacula-1.36.0_2 >> Checksum OK for bacula-1.36.0.tar.gz. ===> Patching for bacula-1.36.0_2 ===> Applying FreeBSD patches for bacula-1.36.0_2 1 out of 1 hunks failed--saving rejects to scripts/Makefile.in.rej >> Patch patch-scripts-Makefile.in failed to apply cleanly. >> Patch(es) patch-autoconf-Make.common.in applied cleanly. *** Error code 1 Stop in /usr/ports/sysutils/bacula. ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade21360.0 make WITH_MYSQL=yes ** Fix the problem and try again. ** Listing the failed packages (*:skipped / !:failed) ! sysutils/bacula (bacula-1.34.6_2) (patch error) ---> Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed