1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
Commit Graph

103 Commits

Author SHA1 Message Date
Erwin Lansing
50513d5d52 Add support for DESTDIR part I.
This commit should largele be a NOOP as it only adds support
for DESTDIR undefined. This does allow us to start testing
ports with DESTDIR set, but this is as of yet not supported.

Although this has been extensively tested on pointyhat, this
is a very intrusive change and some cases may have been
overlooked. Please contact Gabor and me if you find any.

PR:             100555
Submitted by:   gabor
Sponsored by:   Google Summer of Code 2006
2006-08-04 12:34:50 +00:00
Edwin Groothuis
c92c635b24 SHA256ify
Approved by: krion@
2006-01-22 12:42:24 +00:00
Edwin Groothuis
0416031c9b Replace ugly "@unexec rmdir %D... 2>/dev/null || true" with @dirrmtry
Approved by:    krion@
PR:             ports/88711 (related)
2006-01-22 02:20:05 +00:00
Bill Fenner
0938506f64 Don't use "." in MASTER_SITE_SUBDIR; it only applies to URLs with
%SUBDIR% in them, and the site that needed the "." doesn't.

Approved by:	Anton Berezin <tobez@tobez.org> (MAINTAINER)
2005-10-10 15:38:16 +00:00
Anton Berezin
89bfc04210 Fix LATEST_LINK issues.
Nudged by:	krion
2005-05-03 10:45:08 +00:00
Anton Berezin
6195f98c1f If one of locale-related variables set to a bad value in the user's
environment (like da_DK.ISO_8859-15 as opposed to da_DK.ISO8859-15 on
-CURRENT), perl ports cannot be built.  While this condition clearly is
an operator error, it is still no excuse for the build failure.

Fix that by cleaning locale-related variables for configure and build
steps.  No plist changes, no portrevision bump.

Reported by:	Flemming Jacobsen <fj quite-at batmule maybe-dot dk>
2005-02-14 10:17:07 +00:00
Anton Berezin
e2611e24e0 Update bsd.port.mk's notion of the perl version (to 5.8.6) [1].
Use more correct OSVERSION threshold to distinguish between
base system perl and perl from ports - the right value is 500036 [1].

Also, simplify OSVERSION-related logic in lang/perl5 and lang/perl5.8.
Now it goes as follows:

- for lang/perl5.8, if there is perl in the base system, install
  use.perl script, use a helpful pkg-message, and do not automatically
  update symlinks;
- for lang/perl5.8, if there is no perl in the base system, do not
  install use.perl script, and update symlinks automatically;
- for lang/perl5, always install use.perl;
- for lang/perl5, never update symlinks automatically;
- for lang/perl5, vary produced pkg-message depending on the presence of
  the base system perl.

Bump PORTREVISION for both lang/perl5 and lang/perl5.8.

[1] Approved by:	portmgr
2005-02-02 09:34:05 +00:00
Anton Berezin
8cf9cd521f The separation of p5 ports' manual pages and perl's own manual pages was
done incorrectly.  Fix that.
2005-02-01 20:58:37 +00:00
Anton Berezin
4400a5e985 Update to 5.6.2. Also:
- redirect output from h2ph to /dev/null [1];
- fix File::Path insecure file/directory permissions [2];
  this resolves CAN-2004-0452
  (http://vuxml.freebsd.org/c418d472-6bd1-11d9-93ca-000a95bc6fae.html);
- for OSVERSION < 500036, create symlinks in /usr/bin not only for
  perl and suidperl, but also for a2p, c2ph, find2perl, h2ph, h2xs,
  perlbug, perlcc, perldoc, pl2pm, pod2html, pod2latex, pod2man,
  pod2text, s2p, and splain;  perl and suidperl are still enough for
  more recent FreeBSD versions [3];
- clean up created symlinks upon deinstallation [4];
- try to cleanup symlinks created by older versions of lang/perl5 and
  lang/perl5.8, during both installation and deinstallation [5];
- added support for DISABLE_BSDPAN environment variable [6];
- be explicit about use.perl usage after installation of 4.X systems,
  and on systems where lang/perl5.8 is prefered to lang/perl5; the exact
  range is OSVERSION < 500036 || OSVERSION >= 502100 [7];
- respect __MAKE_CONF partially (the build-time value is used) [8];
- use.perl is now the same as pkg-install is now the same as
  pkg-deinstall;  apart from the changes already mentioned above, this
  is a shell script now;
- use.perl's logic is also simplified in several ways [9];
- fix a BSDPAN bug [10];
- create and remove %%SITE_PERL%%/%%PERL_ARCH%%/auto, just
  like  lang/perl5.8 does, to silent pointyhat [11];
- apply a patch to handle daylight saving time correctly in
  POSIX::strftime [12];
- the port now creates and uses shared libperl.so, as lang/perl5.8 port
  does;
- move MAN3 manual pages under ${PREFIX}/lib/perl5/${PERL_VER}/perl, as
  to avoid conflict with some of the p5 ports;
- do not build suidperl by default any longer;  one should use
  ENABLE_SUIDPERL to do that;
- move out manpage list to a separate Makefile.man;
- in general, the port layout is made much more similar to lang/perl5.8,
  including.

Outstanding issues: Module::Build support for BSDPAN, SU_CMD support (PR
70831), PR 64963 (partially), and anything else that I forgot.

[1] Nudged by: krion
[2] Reported by: nectar
    Patch from: Chris Turner @ RedHat
[3] PR: 55760, 57151, 58406
[4] Requested by: kris
    PR: 54262
[5] PR: 51281, 51539
[6] PR: 57134
[7] PR: 60736
[8] PR: 74431
[9] Perl version submitted by des, implemented in sh
[10] Reported by: Alexander Nagilum <freebsd %at% nagilum de>
[11] PR: 71390
[12] PR: 74042, perl bug 18238
2005-02-01 13:36:41 +00:00
Trevor Johnson
8232e82f85 SIZEify (maintainer timeout) 2004-03-31 03:12:58 +00:00
Joe Marcus Clarke
3302f9e6ed Respect OSVERSION in the pkg-install script. This allows package building
tinderboxes to do the righ thing reagrding Perl in a chroot/jail environment
regardless of the underlying host OS version.

Approved by:	perl (tobez)
2004-03-05 21:38:03 +00:00
David E. O'Brien
573c510881 Fix the perl builds. 2004-03-01 15:38:43 +00:00
David E. O'Brien
8ae891fb97 Fix "pkg_add -r perl" for 5.2-CURRENT (and later). This will now install
perl 5.8 for 5.2-CURRENT.

Approved by:	perl
2004-03-01 08:54:11 +00:00
Joe Marcus Clarke
53415a7114 Use the correct pkg-message on recent versions of -CURRENT.
Reported by:	bento via kris
2004-02-05 06:11:16 +00:00
Joe Marcus Clarke
77789c2033 Don't run use.perl port by default on recent versions of -CURRENT. 2004-02-04 19:21:31 +00:00
Joe Marcus Clarke
19d711380e Don't run use.perl port by default on recent versions of -CURRENT. 2004-02-04 19:14:29 +00:00
Joe Marcus Clarke
c4816a48cc Build the DynaLoader with -fPIC to fix some build problems on amd64.
Submitted by:	tobez
Approved by:	portmgr (implicit)
2003-12-03 06:14:42 +00:00
Ying-Chieh Liao
c634b4bb83 utilize SITE_PERL
PR:		58166
Submitted by:	Cheng-Lung Sung <clsung@dragon2.net>
2003-10-24 12:05:09 +00:00
Anton Berezin
8c1a9ff695 Add a patch to properly escape generated action attribute in
CGI::start_form.  The escape code is taken from CGI.pm v.3.00.

PR:		57391
Reported by:	IIJIMA Hiromitsu <delmonta@ht.sakura.ne.jp>
2003-09-30 08:33:57 +00:00
Sergey A. Osokin
f37f7775e3 Make portlint(1) happy by changing strip to ${STRIP_CMD}
Submitted by:	Oleg Karachevtsev <ok@etrust.ru>
PR:		56998
2003-09-24 09:37:11 +00:00
Maxim Sobolev
b9fde6414d Respect global CC settings.
Approved by:	maintainer
2003-04-28 10:53:21 +00:00
Anton Berezin
8d6ace0a7b Under certain conditions, perl's configure script could pick a directory
other than ${LOCALBASE}/bin to install its scripts (h2ph, perldoc, and
friends) to.  Fix that.

PR:		51350
Reported by:	Oliver Brandmueller <ob@gruft.de>
2003-04-24 13:19:21 +00:00
Anton Berezin
880a91bea2 Patch Safe.pm (see
http://use.perl.org/articles/02/10/06/1118222.shtml?tid=5).

Reported by:	kuriyama
2003-04-21 14:27:37 +00:00
Ade Lovett
7e52725f2a Clear moonlight beckons.
Requiem mors pacem pkg-comment,
And be calm ports tree.

E Nomini Patri, E Fili, E Spiritu Sancti.
2003-03-07 06:14:21 +00:00
Jun Kuriyama
acbd0d2e3f Cleanup extra directories.
Approved by:	tobez (maintainer)
2003-02-18 13:38:21 +00:00
Ying-Chieh Liao
27ebc7aa15 chase gdbm lib version 2003-01-03 08:26:35 +00:00
Bruce A. Mah
80afc7818f On recent 5-CURRENT, there is no Perl wrapper. It is therefore possible
that /usr/bin/perl5 doesn't exist, which violates some of use.perl's
assumptions.  Take care of this case. [1]

Also in the case of a recent 5-CURRENT, automatically perform
"use.perl port" during package/port installation.  This helps the
installation of sysinstall's new "Perl distribution", in that
sysinstall doesn't need to do this explicitly as Yet Another Special
Case. [2]

PORTREVISION bump after all this good stuff.

Requested by:	bmah [1], jhb [2]
Submitted by:	tobez (port MAINTAINER)
Approved by:	portmgr (kris)
2002-12-04 16:50:04 +00:00
Anton Berezin
5a1e2b69e5 Make perl's configure be aware of gcc command line syntax change from
-Acpu(i386) to -Acpu=i386 and similar.

The patch is from Perlland:
http://archive.develooper.com/perl5-porters@perl.org/msg79350.html

While at it, add $ FreeBSD $ to the rest of the patches.

Reported by:	kuriyama
2002-11-01 14:43:46 +00:00
Anton Berezin
011d664279 Fix a bug in perl 5.6.1 described in
http://archive.develooper.com/perl5-porters@perl.org/msg58812.html

with a patch from

http://archive.develooper.com/perl5-porters@perl.org/msg58819.html

While we normally do not fix non-FreeBSD problems with 3rd party
software, it is expected that perl 5.6.1 will be used widely for some
time to come, and the bug is bad enough to grant the inclusion of the
patch here.
2002-10-29 15:47:13 +00:00
Maxim Sobolev
4fe6852b8f Due to popular demant into each port which might be inserted into dependency
list by bsd.port.mk insert anti foot-shooting device, which prevents
infinite fork loop when the user defines corresponding USE_XXX in global
make.conf, command line or environment.

Similar devices should probably be inserted into ports that might be inserted
into dependency list by others bsd.foo.mk files (bsd.ruby.mk, bsd.python.mk
and so on.)
2002-09-14 13:32:06 +00:00
Anton Berezin
09fdc375e2 Add two knobs:
WITH_PERL_MALLOC - to compile with perl's own malloc, as opposed to the
freebsd system malloc.  Some might find this useful, since perl's malloc
is marginally faster in typical cases, and orders of magnitude faster in
degenerate cases.  Use with care.

WITH_GDBM - to compile with gdbm support.

Requested by:	netchild (WITH_PERL_MALLOC),
		Joachim Leidinger <jojo@blackpoint.de> (WITH_GDBM)
2002-07-28 08:25:07 +00:00
Anton Berezin
6bab76381c 1. Merge from src/contrib/perl5/lib/ExtUtils/Attic/Install.pm rev. 1.2:
Force installs. This is to allow (semi-)automatic garbage removal by
      "find /usr/libdata -ctime -N -delete".

Well - substitute /usr/libdata with /usr/local/lib/perl5 here.

Requested by:	sheldonh

2. Do not link with libbind even if Configure detects it.  A particular
reason for that is that perl's getpw* stop working with NIS.

Reported by:	Russell Cattelan <cattelan@thebarn.com>
2002-07-10 16:06:00 +00:00
Anton Berezin
70a016b66f During deinstallation, for *.ph files, replace find | xargs rm with
find -delete, for obvious reasons.  No PORTREVISION bump.
2002-06-16 13:03:18 +00:00
Anton Berezin
c482b493eb Fix manpath.config patching in case there is no system perl manpath
(read: -current).  No PORTREVISION bump.
2002-06-16 12:40:13 +00:00
Anton Berezin
5596d33392 1. Do not do rm -rf as a mean to deinstall this port. Instead, apart
from normal rmdir'ing and unexec rmdir'ing, do a find | xargs rm for
   generated .ph files, since those will differ in different versions of
   FreeBSD just like .h files may not be the same.

2. Install.pm is broken in 5.6.1 and leads to the wrong .packlist
   generation, which, in turn, breaks BSDPAN.  Fix that.

3. Extend use.perl to patch /etc/manpath.config so that manpages for
   modules installed by this and other p5- ports are be available.

PR:		39108 (item 1)
Reported by:	Dan Nelson <dan@dan.emsphone.com> (item 1)
2002-06-16 12:28:01 +00:00
Doug Barton
a0aacea454 Bump PORTREVISION to take the new version of use.perl into account.
Requested by: tobez
2002-06-09 11:26:23 +00:00
Doug Barton
3c1a97543c Update to better handle life as it is now in -current.
Approved by:	tobez (MAINTAINER)
2002-06-09 11:24:22 +00:00
Anton Berezin
900f472193 Put SITEARCH and SITELIB paths in front of ARCHLIB and PRIVLIB in the
@INC array. This takes care of the infamous problem of updating the
packages already in the perl distribution. With this change, no tricks
are any longer necessary for such p5 ports, except the usual tweaking of
INSTALLDIRS in Makefile.PL. This last one can also be taken care of by
an appropriate BSDPAN modifications, but until we have the `natural'
@INC order in the 4.X base system perl, it is meaningless.

Do not include iconv.h and do not link with libiconv. Iconv is not used
by perl in any way currently, but it used to link it if found.

Fix perl on freebsd/sparc64.

PR:		33212 (iconv), 37605 (iconv), 38813 (sparc64)
Reported by:	Vivek Khera <khera@kciLink.com> (iconv),
		Martin Nilsson <martin@gneto.com> (iconv)
Submitted by:	jake (sparc64)
2002-06-02 21:22:25 +00:00
Anton Berezin
2a28064fd9 Use a cleaner, documented way to obtain the path of BSDPAN. This fixes
the problems with threaded perl build.  The threaded perl is curently
unsupported by this port but seems to work fine with this fix applied.

Reported by:	Jens Fallesen <jens@fallesen.dk>
2002-05-24 10:39:00 +00:00
Anton Berezin
c1875f8c3a Make make depend to work with the new gcc (the new preprocessor outputs
more stuff than the old one, which confuses makedepend script in the
distribution).

PORTREVISION is not bumped since there was no functionality change.

Reported-by:	too many to list here
2002-05-21 11:27:15 +00:00
Anton Berezin
eff8393c6c 1. Speed up the fetch stage by using groups of MASTER_SITES.
2. Remove the dependency on perl (rather important for this port).
3. Make the script this port installs use the version of perl from ports.

Reported-by:	(item 2) Juriy Goloveshkin <j@gu.ru>, Mark Huizer <xaa@timewasters.nl>
2002-05-20 00:03:07 +00:00
Anton Berezin
fb226407ee Unforbid the port for the use of general FreeBSD public.
Compile perl with BSDPAN support, both -current and -stable.  The
version of BSDPAN used here coincides accidentally with the one present
in the -current system perl, but is installed in a different place.

Provide a script, use.perl, to facilitate switching of the perl used by
default between the system perl and this port.  Also print a message
describing the usage of use.perl (this works for the port and for the
package built from it).  The switching to the port version is done by
removing /usr/bin/perl and /usr/bin/suidperl (they both have link count
>1, so this is reversible), and making them to be symlinks to the
corresponding binaries in $PREFIX/bin.  Also, assignments of the correct
values of PERL_VER, PERL_VERSION, and PERL_ARCH are appended to
/etc/make.conf.  Last, NOPERL=yes is appended to /etc/make.conf, so that
the changes made will survive system upgrades from source.  The
switching to the system version is more or less a reverse of the process
described above.

Set and use PERL_ARCH which is independed from the one used by the
system perl.

Fix the port for post-malloc.h -current.

Fix a small bogon when PREFIX was used in pkg-install (PKG_PREFIX should
have been used instead).

Reviewed by:	markm, joe
2001-12-19 17:05:05 +00:00
Anton Berezin
1deec72d79 Make this port do the same thing whether databases/gdbm is installed or
not - do not install GDBM_File extension.

PR:		29884
2001-08-20 13:51:14 +00:00
Anton Berezin
dc7016253b Fix wrong directory name.
PR:		28462
OK'ed by:	markm
2001-06-29 16:43:51 +00:00
Anton Berezin
64c3280234 Take over maintainership.
OK'ed by:	markm
2001-06-12 19:36:32 +00:00
Mark Murray
47329499f6 Update for Perl 5.6.1.
As before, this is a "guru only" port. If you know what you are
doing, go ahead and use it. If not - HANDS OFF!

Perl 5.6.1 will be committed to "base" FreeBSD in a week or 2.
2001-04-10 19:57:49 +00:00
Mark Murray
797ed92386 Upgrade this to perl5.6.0 for _knowledgeable_ folks in STABLE who
really want it.

This is still marked FORBIDDEN as there may be all sorts of horrible
incompatabilities with the perl5 in "base", but folks who are willing
to override this and experiment are welcome.

Consider this to be only partially supported. I'll happily commit
patches and fixes, but I don't want to answer too many questions.

Sorry!
2001-03-22 15:17:46 +00:00
Jimmy Olgeni
f7c07bb0b0 Some style fixes in the lang category (usual round of spaces -> tabs) 2001-02-05 15:04:13 +00:00
Chris Piazza
cfadbd9d63 Correct the COMMENT
PR:		18638
Submitted by:	Daniel S. Lewart <d-lewart@uiuc.edu>
2000-05-19 07:45:34 +00:00
Bill Fumerola
ccf4c430e0 ftp.cdrom.com -> ftp.freesoftware.com, adjusting paths as I go. 2000-05-14 05:40:52 +00:00