NetBSD Problem Report #58986

From www@netbsd.org  Sun Jan 12 08:35:43 2025
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id AC71E1A923A
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 12 Jan 2025 08:35:43 +0000 (UTC)
Message-Id: <20250112083541.E8AEB1A923B@mollari.NetBSD.org>
Date: Sun, 12 Jan 2025 08:35:41 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: devel/py-pysvn hard-codes /usr/pkg
X-Send-Pr-Version: www-1.0

>Number:         58986
>Category:       pkg
>Synopsis:       devel/py-pysvn hard-codes /usr/pkg
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 12 08:40:00 +0000 2025
>Originator:     Taylor R Campbell
>Release:        current
>Organization:
The PyBSD Subversion
>Environment:
>Description:
===> Configuring for py310-pysvn-1.9.22nb3  
=> Substituting "path" in setup_configure.py                 
Info: Configure for python 3.10.16 in exec_prefix /pkg/2024Q4
Info: Using C compiler cc   
Info: Using C++ compiler g++
Info: Checking for PyCXX include in ../Import/pycxx-7.1.9/CXX/Version.hxx
Info: Found  PyCXX include in /tmp/pkgbuild/2024Q4/devel/py-pysvn/work/pysvn-1.9.22/Import/pycxx-7.1.9
Info: Checking for PyCXX Source in /tmp/pkgbuild/2024Q4/devel/py-pysvn/work/pysvn-1.9.22/Import/pycxx-7.1.9/Src/cxxsupport.cxx
Info: Found   PyCXX Source in /tmp/pkgbuild/2024Q4/devel/py-pysvn/work/pysvn-1.9.22/Import/pycxx-7.1.9/Src
Info: Checking for SVN include in /usr/include/subversion-1/svn_client.h      
Info: Checking for SVN include in /usr/local/include/subversion-1/svn_client.h
Info: Checking for SVN include in /usr/pkg/include/subversion-1/svn_client.h
Info: Checking for SVN include in /usr/include/subversion-1/svn_client.h      
Info: Checking for SVN include in /usr/local/include/subversion-1/svn_client.h
Info: Checking for SVN include in /usr/pkg/include/subversion-1/svn_client.h
Error: Cannot find SVN include svn_client.h - use --svn-inc-dir

$ grep -r -n /usr/pkg .
./Source/setup_configure.py:1094:                            '/usr/pkg/lib',                         # netbsd
./Source/setup_configure.py:1198:                        '/usr/pkg/include/subversion-1',        # netbsd
./Source/setup_configure.py:1203:                        '/usr/pkg/bin',                         # netbsd
./Source/setup_configure.py:1210:                        '/usr/pkg/lib',                         # netbsd
./Source/setup_configure.py:1217:                        '/usr/pkg/include/apr-1',               # netbsd
./Source/setup_configure.py:1230:                        '/usr/pkg/lib',                         # netbsd

>How-To-Repeat:
1. bootstrap pkgsrc into a prefix other than /usr/pkg, e.g. /opt/pkg or ~/pkg
2. build devel/py-pysvn
>Fix:
1. patch to use @LOCALBASE@/include, @LOCALBASE@/lib, &c.
2. SUBST for @LOCALBASE@

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2025 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.