Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Apr 1998 04:57:45 -0700 (PDT)
From:      imayoshi@ap.t.u-tokyo.ac.jp
To:        freebsd-gnats-submit@FreeBSD.ORG
Subject:   bin/6225: Perl also needs /usr/share/perl/machine/*.ph.
Message-ID:  <199804061157.EAA13865@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         6225
>Category:       bin
>Synopsis:       Perl also needs /usr/share/perl/machine/*.ph.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr  6 05:00:01 PDT 1998
>Last-Modified:
>Originator:     Takahiro IMAYOSHI
>Organization:
Univ. of Tokyo
>Release:        FreeBSD 2.2.6-STABLE i386
>Environment:
FreeBSD 2.2.6-RELEASE i386
 or
FreeBSD 2.2.6-STABLE(CVSup in Apr. 1 1998) i386
>Description:
When making world, C header files in /usr/include{,/sys} are converted
to .ph files and installed. But some well known header files also require
files in /usr/include/machine.

I think we add /usr/include/machine to default convert directories.
>How-To-Repeat:
% cat test.pl
require 'fcntl.ph';

% perl test.pl
Can't locate machine/ansi.ph in @INC (did you run h2ph?)
	at /usr/share/perl/sys/types.ph line 4
%
>Fix:
patch the following text to /usr/src/gnu/usr.bin/perl/x2p/Makefile.

--------------------
--- /usr/src/gnu/usr.bin/perl/x2p/Makefile.orig Tue Sep 17 10:14:18 1996
+++ /usr/src/gnu/usr.bin/perl/x2p/Makefile      Mon Apr  6 19:26:13 1998
@@ -17,7 +17,7 @@
                ${DESTDIR}${BINDIR}

 afterinstall:
-       (DESTDIR=${DESTDIR}; cd ${DESTDIR}/usr/include; ${BINDIR}/h2ph * sys/*)
+       (DESTDIR=${DESTDIR}; cd ${DESTDIR}/usr/include; ${BINDIR}/h2ph * sys/* machine/*)

 .include "../../Makefile.inc"
 .include <bsd.prog.mk>
--------------------

>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199804061157.EAA13865>