NetBSD Problem Report #52559

From mcy@indiana.local  Tue Sep 19 14:03:50 2017
Return-Path: <mcy@indiana.local>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 036C57A1F8
	for <gnats-bugs@www.netbsd.org>; Tue, 19 Sep 2017 14:03:50 +0000 (UTC)
Message-Id: <201709191803.v8JI3jZR014482@indiana.local>
Date: Tue, 19 Sep 2017 14:03:45 -0400 (EDT)
From: mcy@lm7.fr
Reply-To: mcy@lm7.fr
To: gnats-bugs@www.netbsd.org
Cc:
Subject: sysutils/rename: configure fails on OpenIndiana
X-Send-Pr-Version: 3.113.1
X-GNATS-Notify:

>Number:         52559
>Category:       pkg
>Synopsis:       sysutils/rename: configure fails on OpenIndiana
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 19 14:05:00 +0000 2017
>Closed-Date:    Wed Sep 20 11:11:14 +0000 2017
>Last-Modified:  Wed Sep 20 11:11:14 +0000 2017
>Originator:     Matteo Cypriani
>Release:        SunOS 5.11
>Organization:

>Environment:
System: SunOS indiana 5.11 illumos-202ca9ae46 i86pc i386 i86pc
Architecture: i86pc
Compiler: /usr/bin/gcc version 4.9.4
>Description:
The configure target fails on OpenIndiana with the default environment:

checking whether the C compiler (gcc -O2 -D_FORTIFY_SOURCE=2 -Wl,-R/usr/pkg/lib) works... no

rename configures and builds fine when running ./configure && make directly in
the source tree from the tarball.
>How-To-Repeat:
The problem arises with these two commands:

bmake configure
bmake configure CC=gcc

CC=gcc is the default anyway, but interestingly configure works fine with:

bmake configure CC=/usr/bin/gcc
>Fix:
A workaround is to use CC=/usr/bin/gcc like above. Another one is to remove the
following line from work/.cwrapper/config/cc:

transform=-D_FORTIFY_SOURCE=2

I'm not sure what the proper fix would be on the package.

>Release-Note:

>Audit-Trail:
From: "Jonathan Perkin" <jperkin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/52559 CVS commit: pkgsrc/sysutils/rename
Date: Wed, 20 Sep 2017 11:03:14 +0000

 Module Name:	pkgsrc
 Committed By:	jperkin
 Date:		Wed Sep 20 11:03:14 UTC 2017

 Modified Files:
 	pkgsrc/sysutils/rename: Makefile distinfo
 	pkgsrc/sysutils/rename/patches: patch-aa patch-rename.c

 Log Message:
 rename: Various fixes to resolve PR#52559

 - Add LICENSE.
 - Use INSTALLATION_DIRS.
 - Honour pkgsrc CFLAGS and remove broken BUILDLINK_TRANSFORM.
 - Add patch comments.

 Bump PKGREVISION for the LICENSE change and in case any CFLAGS were not
 honoured correctly.


 To generate a diff of this commit:
 cvs rdiff -u -r1.3 -r1.4 pkgsrc/sysutils/rename/Makefile \
     pkgsrc/sysutils/rename/distinfo
 cvs rdiff -u -r1.1.1.1 -r1.2 pkgsrc/sysutils/rename/patches/patch-aa
 cvs rdiff -u -r1.1 -r1.2 pkgsrc/sysutils/rename/patches/patch-rename.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: jperkin@NetBSD.org
State-Changed-When: Wed, 20 Sep 2017 11:11:14 +0000
State-Changed-Why:
Fixed, thanks for the report!


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.