Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 292985 - dev-lang/perl, app-admin/perl-cleaner:Which header files should be converted by h2ph?
Summary: dev-lang/perl, app-admin/perl-cleaner:Which header files should be converted ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 177833 194600
  Show dependency tree
 
Reported: 2009-11-13 08:00 UTC by Torsten Veller (RETIRED)
Modified: 2010-07-14 06:11 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Torsten Veller (RETIRED) gentoo-dev 2009-11-13 08:00:34 UTC
#30070  perl-5.8.1-r1 failes on h2ph / gnome-xml/libxml
#49541  perl-5.8.2-r1 pkg_postinstall() failed due to h2ph problems
#68177  h2ph handling in dev-lang/perl ebuilds is incorrect
#177833 app-admin/perl-cleaner: won't do h2ph for asm-generic/
#194600 dev-lang/perl-5.8.8-r2 won't do h2ph for asm-generic/ 


perl-5.8.8 ebuilds:
===========

in src_install:
---------------

| LD_LIBRARY_PATH=. ./perl -Ilib utils/h2ph_patched \
| -a -d "${D}"/usr/$(get_libdir)/perl5/${MY_PV}/${myarch}${mythreading} <<EOF
| asm/termios.h
| syscall.h
| syslimits.h
| syslog.h
| sys/ioctl.h
| sys/socket.h
| sys/time.h
| wait.h
| EOF

in pkg_postinst:
----------------

| cd /usr/include;
| h2ph *
| h2ph -r sys/* arpa/* netinet/* bits/* security/* asm/* gnu/* linux/* gentoo*


perl-cleaner
============
also converts what's in pkg_postinst


What should we do?
==================
- Convert asm-generic/* too?
  Any problems with old linux-headers (like 2.4.*)?
- Minimise the converted headers ie only h2ph -a asm/termios.h..wait.h ?
  Debian and Fedora do this.
- <http://search.cpan.org/dist/perl/INSTALL#cd_/usr/include;_h2ph_*.h_sys/*.h>:
| Some perl scripts need to be able to obtain information
| from the system header files.
| This command will convert the most commonly used header files
| in /usr/include into files that can be easily interpreted by perl.
Comment 1 Torsten Veller (RETIRED) gentoo-dev 2010-01-13 05:58:44 UTC
(In reply to comment #0)
> in src_install:
> ---------------
> 
> | LD_LIBRARY_PATH=. ./perl -Ilib utils/h2ph_patched \
> | -a -d "${D}"/usr/$(get_libdir)/perl5/${MY_PV}/${myarch}${mythreading} <<EOF
> | asm/termios.h
> | syscall.h
> | syslimits.h
> | syslog.h
> | sys/ioctl.h
> | sys/socket.h
> | sys/time.h
> | wait.h
> | EOF

This doesn't even work.
Comment 2 Torsten Veller (RETIRED) gentoo-dev 2010-07-14 06:11:42 UTC
dev-lang/perl-5.12.1 and app-admin/perl-cleaner-2.2 convert (recursively) Perl header files for:

| asm/termios.h
| syscall.h
| syslimits.h
| syslog.h
| sys/ioctl.h
| sys/socket.h
| sys/time.h
| wait.h
| sysexits.h

Fixed for now