NetBSD Problem Report #49957

From www@NetBSD.org  Tue Jun  9 15:10:19 2015
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 1B8CEA65B7
	for <gnats-bugs@gnats.NetBSD.org>; Tue,  9 Jun 2015 15:10:19 +0000 (UTC)
Message-Id: <20150609151017.C1A6DA65BC@mollari.NetBSD.org>
Date: Tue,  9 Jun 2015 15:10:17 +0000 (UTC)
From: joern.clausen@uni-bielefeld.de
Reply-To: joern.clausen@uni-bielefeld.de
To: gnats-bugs@NetBSD.org
Subject: textproc/groff and GNU prefix
X-Send-Pr-Version: www-1.0

>Number:         49957
>Category:       pkg
>Synopsis:       textproc/groff and GNU prefix
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 09 15:15:00 +0000 2015
>Originator:     Joern Clausen
>Release:        current
>Organization:
University of Bielefeld
>Environment:
Solaris 11.2/i86, GCC 4.8.2 (via Oracle IPS)
>Description:
I'd like to install textproc/groff on Solaris 11.2, because pkgtools/pkgdepgraph needs the "an" macros.

After removing the CFLAGS.SunOS line from Makefile (see pkg/46273), the package compiles.

Packaging/installation fails with

=> Creating binary package /opt/pkgsrc/pkg-hrz/pkgsrc/textproc/groff/work.pkgsrc-sol11i86/.packages/groff-1.22.3.tgz
pkg_create: can't stat `/opt/pkgsrc/pkg-hrz/pkgsrc/textproc/groff/work.pkgsrc-sol11i86/.destdir/opt/pkg-hrz/20150608/bin/chem'
pkg_create: can't stat `/opt/pkgsrc/pkg-hrz/pkgsrc/textproc/groff/work.pkgsrc-sol11i86/.destdir/opt/pkg-hrz/20150608/bin/eqn'
...

Instead of the requested binary "chem", the given directory contains "gchem". While the build process actually created "chem", packaging renamed it:

/opt/pkg-hrz/20150608/bin/bsdinstall -c -o pkgsrc -g software -m 755 chem /opt/pkgsrc/pkg-hrz/pkgsrc/textproc/groff/work.pkgsrc-sol11i86/.destdir/opt/pkg-hrz/20150608/bin/gchem;
>How-To-Repeat:

>Fix:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.