NetBSD Problem Report #45600
From kre@munnari.OZ.AU Fri Nov 11 11:45:14 2011
Return-Path: <kre@munnari.OZ.AU>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id E78FA63BEB2
for <gnats-bugs@gnats.NetBSD.org>; Fri, 11 Nov 2011 11:45:13 +0000 (UTC)
Message-Id: <201111111145.pABBj3SS006587@jade.coe.psu.ac.th>
Date: Fri, 11 Nov 2011 18:45:04 +0700 (ICT)
From: kre@munnari.OZ.AU
To: gnats-bugs@gnats.NetBSD.org
Subject: sysutils/boxbackup-{client,server} build failure NetBSD 5 (and 4) (+FIX)
X-Send-Pr-Version: 3.95
>Number: 45600
>Category: pkg
>Synopsis: sysutils/boxbackup-{client,server} build failure NetBSD 5 (and 4) (+FIX)
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Nov 11 11:50:00 +0000 2011
>Closed-Date: Mon Sep 02 14:48:45 +0000 2019
>Last-Modified: Mon Sep 02 14:48:45 +0000 2019
>Originator: Robert Elz
>Release: NetBSD 5.0 (also NetBSD 4.0) (pkgsrc current 2011-11-11)
>Organization:
Prince of Songkla University
>Environment:
System: NetBSD jade.coe.psu.ac.th 5.1 NetBSD 5.1 (JADE-1.12-20101117) #5: Wed Nov 17 05:30:55 ICT 2010 kre@jade.coe.psu.ac.th:/usr/obj/5.1/kernels/i386/JADE i386
Architecture: i386
Machine: i386
>Description:
The (package, not pkgsrc) Makefiles for sysutils/boxbackup-client
and sysutils/boxbackup use a make feature (-C) not found in
NetBSD 5 (or earlier) versions of make.
Why anyone would ever do
make -C docs htmlguide/man-html/bbackupd.html
instead of
cd docs && make htmlguide/man-html/bbackupd.html
which this package does, I don't want to attempt to contemplate.
It (along with the -C option to make) is just plain stupid, but
that's what it does...
>How-To-Repeat:
Use a NetBSD 5.0 or NetBSD 4.0 (or anything earlier) system to
attempt to build sysutils/boxbackup-client (or ...-server)
I use pkg_comp with NetBSD 5.0 (and/or NetBSD 4.0) sets installed
and libkver to properly (mostly) simulate the correct execution
environment.
(The NetBSD 5 uses X11_TYPE=native, NetBSD 4 uses X1_TYPE=modular,
bot use USE_DESTDIR=no .. none of that is relevant to this PR).
In that environment expect to see ...
mkdir -p parcels/boxbackup-0.11.1-backup-client-netbsdelf
cp -p LICENSE-GPL.txt parcels/boxbackup-0.11.1-backup-client-netbsdelf
mkdir -p parcels/boxbackup-0.11.1-backup-client-netbsdelf
cp -p LICENSE-DUAL.txt parcels/boxbackup-0.11.1-backup-client-netbsdelf
make -C docs htmlguide/man-html/bbackupd.html
usage: make [-BeikNnqrstWX] [-D variable] [-d flags] [-f makefile]
[-I directory] [-J private] [-j max_jobs] [-m directory] [-T file]
[-V variable] [variable=value] [target ...]
*** Error code 2
Stop.
make: stopped in /pkg_comp/obj/pkgsrc/sysutils/boxbackup-client/5/boxbackup-0.11.1
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/sysutils/boxbackup-client
*** Error code 1
Stop.
>Fix:
Apply the patch below. Note this patch assumes that someone
actually takes the patch that's in PR 42704 (since Jan 2010)
and applies it... Without that, this patch won't help.
Adding patches/patch-* files to each package to remove the
uses of make -C would also fix the problem. Using gmake
would probably work as well (but I haven't tested either of
those methods, this one worked fine for me, I have the patch
from PR 42704 applied, and have had since Jan 2010...)
Note this patch applies in pkgsrc/sysutils as it patches the
Makefiles for both boxbackup-client and boxbackup-server.
Index: boxbackup-client/Makefile
===================================================================
RCS file: /cvsroot/NetBSD/pkgsrc/sysutils/boxbackup-client/Makefile,v
retrieving revision 1.7
diff -u -r1.7 Makefile
--- boxbackup-client/Makefile 7 Nov 2011 12:04:34 -0000 1.7
+++ boxbackup-client/Makefile 11 Nov 2011 11:22:23 -0000
@@ -18,6 +18,7 @@
GNU_CONFIGURE= yes
USE_LANGUAGES= c++
USE_TOOLS+= perl:run
+USE_TOOLS+= bmake
REPLACE_PERL+= bin/bbackupd/bbackupd-config
Index: boxbackup-server/Makefile
===================================================================
RCS file: /cvsroot/NetBSD/pkgsrc/sysutils/boxbackup-server/Makefile,v
retrieving revision 1.7
diff -u -r1.7 Makefile
--- boxbackup-server/Makefile 7 Nov 2011 12:05:17 -0000 1.7
+++ boxbackup-server/Makefile 11 Nov 2011 11:24:06 -0000
@@ -21,6 +21,7 @@
GNU_CONFIGURE= yes
USE_LANGUAGES= c++
USE_TOOLS+= perl:run
+USE_TOOLS+= bmake
REPLACE_PERL+= bin/bbstored/bbstored-certs bin/bbstored/bbstored-config
REPLACE_PERL+= lib/raidfile/raidfile-config
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->drochner
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Wed, 23 Nov 2011 07:59:17 +0000
Responsible-Changed-Why:
Over to updater.
Responsible-Changed-From-To: drochner->packages
Responsible-Changed-By: spz@NetBSD.org
Responsible-Changed-When: Sun, 29 Apr 2018 07:59:50 +0000
Responsible-Changed-Why:
drochner is inactive
Responsible-Changed-From-To: packages->pkg-manager
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Sun, 29 Apr 2018 08:17:05 +0000
Responsible-Changed-Why:
Proper role account
State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Mon, 02 Sep 2019 14:48:45 +0000
State-Changed-Why:
Wont fix issues relating to netbsd-5 (today).
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.