Subject: pkg/36050: makedepend fails in -current on Linux 2.6
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <uli@habel.name>
List: pkgsrc-bugs
Date: 03/21/2007 14:25:00
>Number:         36050
>Category:       pkg
>Synopsis:       makedepend fails in -current on Linux 2.6
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 21 14:25:00 +0000 2007
>Originator:     Ulrich Habel
>Release:        Linux 2.6
>Organization:
http://habel.name
>Environment:
Linux spiff 2.6.17-11-generic #2 SMP Thu Feb 1 19:52:28 UTC 2007 i686 GNU/Linux
>Description:
When try to build the package devel/makedepend on Linux it fails with the following error:

===> Installing for makedepend-1.0.0
/bin/bash ./mkinstalldirs /usr/pkg/bin
  /usr/bin/install -c -s -o root -g root -m 555 makedepend /usr/pkg/bin/makedepend
/bin/bash ./mkinstalldirs /usr/pkg/man/man1
 /usr/bin/install -c -o root -g root -m 444 makedepend.1x /usr/pkg/man/man1/makedepend.1x
=> Automatic manual page handling
pkg_create: can't stat `/usr/pkg/man/man1/makedepend.1'
=> Registering installation for makedepend-1.0.0
pkg_admin: makedepend-1.0.0: File `/usr/pkg/man/man1/makedepend.1' is in +CONTENTS but not on filesystem!
===> Building binary package for makedepend-1.0.0
Creating package /usr/pkgsrc/packages/All/makedepend-1.0.0.tgz
Using SrcDir value of /usr/pkg
Registering build depends: digest>=20010302 pkg-config>=0.19 xproto>=7.0.9.
pkg_create: can't stat `/usr/pkg/man/man1/makedepend.1'
tar: Unable to access man/man1/makedepend.1 (No such file or directory)
tar: WARNING! These file names were not selected:
man/man1/makedepend.1
pkg_create: /usr/pkg/bin/tar command failed with code 1
ERROR: pkg_create -K pkg failed (2)
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/devel/makedepend
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/devel/makedepend
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/devel/makedepend



The missing manpage has the wrong suffix - it's

/usr/pkg/man/man1/makedepend.1x

on Linux.

>How-To-Repeat:
try to build a package from devel/makedepend
>Fix:
This patch sets the APP_MAN_SUFFIX as environment in the Makefile of devel/makedepend to the correct value so when configure checks the environment on Linux it doesn't set APP_MAN_SUFFIX=1x

After the patch the package builds correctly on Linux.


--- Makefile.orig	2007-03-21 15:02:30.000000000 +0100
+++ Makefile	2007-03-21 15:01:21.000000000 +0100
@@ -16,6 +16,9 @@
 GNU_CONFIGURE=		yes
 USE_TOOLS+=		pkg-config
 
+CONFIGURE_ENV+=		APP_MAN_SUFFIX=1
+
+
 .include "../../x11/xproto/buildlink3.mk"
 
 .include "../../mk/bsd.pkg.mk"