Commit Graph

53 Commits

Author SHA1 Message Date
谢炜 fa99a09eb3 add component config 2022-06-01 18:17:37 +08:00
谢炜 1531a6b9f2 no change rebuild 2022-06-01 18:07:52 +08:00
openKylinBot dd8f68f5f5 changed debian/source/format to native 2022-05-14 02:41:17 +08:00
openKylinBot fd0ae444ef apply patches 2022-05-14 02:41:17 +08:00
openKylinBot 8cb0c3f395 format patches 2022-05-14 02:41:17 +08:00
Manuel Mausz 34111d2329 (perl #134169) mg.c reset endptr after use
Perl_grok_atoUV has been changed so endptr constraints the input. Thus we need to reset the endptr after every use.

Bug: https://rt.perl.org/Public/Bug/Display.html?id=134169
Bug-Debian: https://bugs.debian.org/941985
Origin: backport, http://perl5.git.perl.org/perl.git/commitdiff/79e302e6c3f815bf4cb72a5bacc3012595970db9

Gbp-Pq: Topic fixes
Gbp-Pq: Name gid-parsing.diff
2022-05-14 02:41:16 +08:00
Niko Tyni 1ca5f5e60d Use "editor" as the default perlbug editor, as per Debian policy
Bug-Debian: https://bugs.debian.org/922609

Gbp-Pq: Topic debian
Gbp-Pq: Name perlbug-editor.diff
2022-05-14 02:41:16 +08:00
Dagfinn Ilmari Mannsåker 5bdbd9a6b4 Avoid mangling /bin non-perl shebangs on merged-/usr systems
If the shebang is absolute and exists in PATH, but was not the first
one found, leave it alone if it's actually the same file as first one.

This avoids packages built on merged-/usr systems with /usr/bin before
/bin in the path breaking when installed on systems without merged
/usr.  See e.g. https://bugs.debian.org/913637.

Origin: backport, 9766f9c5ff
Bug: https://github.com/Perl-Toolchain-Gang/ExtUtils-MakeMaker/pull/330
Bug-Debian: https://bugs.debian.org/913637

Gbp-Pq: Topic fixes
Gbp-Pq: Name eumm-usrmerge.diff
2022-05-14 02:41:16 +08:00
Niko Tyni b884651d9b Disable debugperl stack extension checks for binary compatibility with perl
When an XS module is built without -DDEBUGGING but the interpreter is,
the debugging stack high-water mark checking on the interpreter side
doesn't work properly. This makes /usr/bin/debugperl less useful than
it could be as it can no longer use many XS module packages.

Patch the check away for now. We hope upstream will provide a Configure
option for this in the future.

Bug: https://rt.perl.org/Ticket/Display.html?id=133327
Bug-Debian: https://bugs.debian.org/902779

Gbp-Pq: Topic debian
Gbp-Pq: Name disable-stack-check.diff
2022-05-14 02:41:16 +08:00
Dominic Hargreaves 0892c256e6 Point users to Debian packages of deprecated core modules
Bug-Debian: http://bugs.debian.org/747628

Gbp-Pq: Topic debian
Gbp-Pq: Name deprecate-with-apt.diff
2022-05-14 02:41:16 +08:00
Niko Tyni 4d2d4e02d0 Regenerate Configure et al. after probe unit changes
Bug-Debian: https://bugs.debian.org/762638

Gbp-Pq: Topic debian
Gbp-Pq: Name configure-regen.diff
2022-05-14 02:41:16 +08:00
Brendan O'Dea d85118e8cd Tweak @INC ordering for Debian
Our order is:

    etc (for config files)
    site (5.8.1)
    vendor (all)
    core (5.8.1)
    site (version-indep)
    site (pre-5.8.1)

The rationale being that an admin (via site), or module packager
(vendor) can chose to shadow core modules when there is a newer
version than is included in core.

(later updates by Niko Tyni)

Gbp-Pq: Topic debian
Gbp-Pq: Name mod_paths.diff
2022-05-14 02:41:16 +08:00
Brendan O'Dea 11e3a84c07 Prune the list of libraries wanted to what we actually need.
Bug-Debian: http://bugs.debian.org/128355

We want to keep the dependencies on perl-base as small as possible,
and some of the original list may be present on buildds (see Bug#128355).

(Backported to metaconfig unit probes by Niko Tyni)

Gbp-Pq: Topic debian
Gbp-Pq: Name prune_libs.diff
2022-05-14 02:41:16 +08:00
Niko Tyni 7d0af5fd6b Fix perldoc terminal escapes when sensible-pager is less
This is a temporary fix while upstream is reworking the
pager handling.

Bug: https://rt.cpan.org/Public/Bug/Display.html?id=120229
Bug-Debian: https://bugs.debian.org/870340

Gbp-Pq: Topic debian
Gbp-Pq: Name perldoc-pager.diff
2022-05-14 02:41:16 +08:00
Niko Tyni ed0785a2fb Also lower the optimization level of op.c and opmini.c on sh4
This amends
 debian/hppa_op_optimize_workaround.diff
 debian/hppa_opmini_optimize_workaround.diff

Bug-Debian: https://bugs.debian.org/869373

Gbp-Pq: Topic debian
Gbp-Pq: Name sh4_op_optimize_workaround.diff
2022-05-14 02:41:16 +08:00
Niko Tyni d35f2edf1a Lower the optimization level of opmini.c on hppa
This further amends debian/hppa_op_optimize_workaround.diff to affect
miniperl too.

Bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81538
Bug-Debian: https://bugs.debian.org/869122

Gbp-Pq: Topic debian
Gbp-Pq: Name hppa_opmini_optimize_workaround.diff
2022-05-14 02:41:16 +08:00
Johan Vromans fe22898c68 Fix issue #122068.
Origin: backport, 2d16f355e2
Bug: https://rt.cpan.org/Ticket/Display.html?id=122068
Bug-Debian: https://bugs.debian.org/864544

Gbp-Pq: Topic fixes
Gbp-Pq: Name getopt-long-4.diff
2022-05-14 02:41:16 +08:00
Niko Tyni d5a007d8bb Generate man pages with UTF-8 characters
This fixes totally incorrectly rendered manual pages like
perlunicook and perltw.

TODO: should probably be a Configure option for proper upstreaming.

Bug-Debian: https://bugs.debian.org/840211

Gbp-Pq: Topic debian
Gbp-Pq: Name installman-utf8.diff
2022-05-14 02:41:16 +08:00
Niko Tyni 2a072a7014 Temporarily lower the optimization of op.c on hppa due to gcc-6 problems
This fixes a crash in ext/XS-APItest/t/customop.t

It's currently unclear if the problem is with the code or the
gcc-6 optimizer.

Bug-Debian: https://bugs.debian.org/838613

Gbp-Pq: Topic debian
Gbp-Pq: Name hppa_op_optimize_workaround.diff
2022-05-14 02:41:16 +08:00
Dominic Hargreaves 6d328c16cb CPAN: Add link to main CPAN web site
Bug: https://github.com/andk/cpanpm/pull/96
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=367291

Gbp-Pq: Topic fixes
Gbp-Pq: Name cpan_web_link.diff
2022-05-14 02:41:16 +08:00
Dominic Hargreaves 3907fad6c2 Math::Trig: document angle units
Bug: https://rt.cpan.org/Ticket/Display.html?id=114106
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=731505

Gbp-Pq: Topic fixes
Gbp-Pq: Name math_complex_doc_angle_units.diff
2022-05-14 02:41:16 +08:00
Dominic Hargreaves 3048cbb3a6 Math::Trig: add missing SEE ALSO
Bug: https://rt.cpan.org/Ticket/Display.html?id=114105
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=697568

Gbp-Pq: Topic fixes
Gbp-Pq: Name math_complex_doc_see_also.diff
2022-05-14 02:41:16 +08:00
Dominic Hargreaves 1c5295c414 Math::Trig: clarify definition of great_circle_midpoint
Bug: https://rt.cpan.org/Ticket/Display.html?id=114104
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=697567

Gbp-Pq: Topic fixes
Gbp-Pq: Name math_complex_doc_great_circle.diff
2022-05-14 02:41:16 +08:00
Niko Tyni 83e701c4da Fix t/op/stat.t failures on hurd
We already do this on GNU/kFreeBSD, and GNU/Hurd seems to need same
treatment.

Bug-Debian: https://bugs.debian.org/822735

Gbp-Pq: Topic debian
Gbp-Pq: Name hurd-softupdates.diff
2022-05-14 02:41:16 +08:00
Niko Tyni 34d46bec93 Fix POD errors in Memoize
Bug: https://rt.cpan.org/Public/Bug/Display.html?id=89441
Author: Dominic Hargreaves <dom@cpan.org>

Gbp-Pq: Topic fixes
Gbp-Pq: Name memoize-pod.diff
2022-05-14 02:41:16 +08:00
Niko Tyni 53610cd691 Fix a scoping issue with "no autodie" and the "system" sub
Don't queue nonexisting subs for reinstalling later when
exiting the 'no autodie' scope.

FIXME: if the original sub 'can be undef for "CORE::" subs', does this
break for those? Is that the case when $symbol =~ /::/, as guarded for
on L566?

Bug: https://github.com/pjf/autodie/issues/69
Bug-Debian: https://bugs.debian.org/798096
Origin: upstream, c1b4fc4a31

Gbp-Pq: Topic fixes
Gbp-Pq: Name autodie-scope.diff
2022-05-14 02:41:16 +08:00
Steven Chamberlain ce4d8cf5df Work around Debian Bug#796798
kFreeBSD 10 (possibly only with softupdates enabled) may defer
calculating the mtime for more than 2 seconds.  Work around this
with a stat() call to calculate the mtime immediately.

(Modified to only stat() on kfreebsd by Niko Tyni)

Bug-Debian: https://bugs.debian.org/796798

Gbp-Pq: Topic debian
Gbp-Pq: Name kfreebsd-softupdates.diff
2022-05-14 02:41:16 +08:00
Niko Tyni 78178e391a Make EU::MakeMaker honour MANnEXT settings in generated manpage headers
This was inherited from early changes by Brendan O'Dea, previously
(accidentally) in debian/prefix_changes.diff and before that in
debian/extutils_hacks.diff

Bug-Debian: https://bugs.debian.org/247370

Gbp-Pq: Topic debian
Gbp-Pq: Name makemaker-manext.diff
2022-05-14 02:41:16 +08:00
Niko Tyni d0774998c3 Pass LD settings through to subdirectories
[rt.cpan.org #28632] fixed most issues with passing LD down to
subdirectory Makefile.PL files. However, there are some distributions
(including Wx, Par::Packer, and Verilog-Perl) that explicitly set
LD. Those still can't be overridden from the command line. Adding LD to
the PASTHRU list fixes this.

Bug-Debian: https://bugs.debian.org/758471

Gbp-Pq: Topic debian
Gbp-Pq: Name makemaker-pasthru.diff
2022-05-14 02:41:16 +08:00
Jonathan Nieder b1521a81d3 Memoize::Storable: respect 'nstore' option not respected
Memoize(3perl) says:

                tie my %cache => 'Memoize::Storable', $filename, 'nstore';
                memoize 'function', SCALAR_CACHE => [HASH => \%cache];

        Include the ‘nstore’ option to have the "Storable" database
        written in ‘network order’.  (See Storable for more details
        about this.)

In fact the "nstore" option does no such thing.  Option parsing looks
like this:

        @options{@_} = ();

$self->{OPTIONS}{'nstore'} is accordingly set to undef.  Later
Memoize::Storable checks if the option is true, and since undef is
not true, the "else" branch is always taken.

        if ($self->{OPTIONS}{'nstore'}) {
                Storable::nstore($self->{H}, $self->{FILENAME});
        } else {
                Storable::store($self->{H}, $self->{FILENAME});
        }

Correcting the condition to (exists $self->{OPTIONS}{'nstore'}) fixes
it.

Noticed because git-svn, which uses the 'nstore' option for its
on-disk caches, was producing

        Byte order is not compatible at ../../lib/Storable.pm

when run using a perl with a different integer size (and hence
byteorder).

Reported by Tim Retout (RT#77790)

Bug-Debian: http://bugs.debian.org/587650
Bug: https://rt.cpan.org/Public/Bug/Display.html?id=77790
Forwarded: https://rt.cpan.org/Public/Bug/Display.html?id=77790

Gbp-Pq: Topic fixes
Gbp-Pq: Name memoize_storable_nstore.diff
2022-05-14 02:41:16 +08:00
Niko Tyni e1f7372956 Fix CPAN::FirstTime defaults with nonexisting site dirs if a parent is writable
The site directories do not exist on a typical Debian system.  The build
systems will create them when necessary, so there's no need for a prompt
suggesting local::lib if the first existing parent directory is writable.

Also, writability of the core directories is not interesting as we
explicitly tell CPAN not to touch those with INSTALLDIRS=site.

Bug-Debian: http://bugs.debian.org/688842

Gbp-Pq: Topic debian
Gbp-Pq: Name cpan-missing-site-dirs.diff
2022-05-14 02:41:16 +08:00
Dominic Hargreaves 70d32b50b6 Invoke x-terminal-emulator rather than xterm in perl5db.pl
In Debian systems, xterm might not exist or might not be the preferred
terminal emulator. Use x-terminal-emulator instead

Bug-Debian: http://bugs.debian.org/668490
Forwarded: not-needed

Gbp-Pq: Topic debian
Gbp-Pq: Name perl5db-x-terminal-emulator.patch
2022-05-14 02:41:16 +08:00
Andreas Marschke 66418b2cd2 Configure CPAN::Distribution with correct name of html2text
Bug-Debian: http://bugs.debian.org/640479

If you use cpan from Debian you usually wind up trying to read online
documentation through it. Unfortunately cpan can't find the
html2text.pl script even though it is installed using the Debian
package 'html2text'.

Please see the attached patch for a quick fix of this issue.

[Maintainer's note: html2text in Debian is not the same implementation
as the html2text.pl which is expected, but should provide similar
functionality].

Gbp-Pq: Topic debian
Gbp-Pq: Name find_html2text.diff
2022-05-14 02:41:16 +08:00
Niko Tyni 57ccfe3283 Document that CCFLAGS should include $Config{ccflags}
Bug: https://rt.cpan.org/Public/Bug/Display.html?id=68613
Bug-Debian: http://bugs.debian.org/628522

Compiling XS extensions without $Config{ccflags} can break the
binary interface on some platforms.

Gbp-Pq: Topic fixes
Gbp-Pq: Name document_makemaker_ccflags.diff
2022-05-14 02:41:15 +08:00
Niko Tyni 05a2ff4ab1 List packaged patches in patchlevel.h
Origin: vendor
Bug-Debian: http://bugs.debian.org/567489

The list of packaged patches is in patchlevel-debian.h, which is generated
from the debian/patches/ directory when building the package.

Gbp-Pq: Topic debian
Gbp-Pq: Name patchlevel.diff
2022-05-14 02:41:15 +08:00
Niko Tyni 60779b8cb6 Squelch locale warnings in Debian package maintainer scripts
Bug-Debian: http://bugs.debian.org/508764

The system locales are rather frequently out of sync with the C library
during package upgrades, causing a huge amount of useless Perl locale
warnings. Squelch them when running package maintainer scripts, detected
by the DPKG_RUNNING_VERSION environment variable.

Any real locale problem will show up after the system upgrade too, and
the warning will be triggered normally again at that point.

Gbp-Pq: Topic debian
Gbp-Pq: Name squelch-locale-warnings.diff
2022-05-14 02:41:15 +08:00
Niko Tyni 74980b5352 Make perlivp skip include directories in /usr/local
Bug-Debian: http://bugs.debian.org/510895

On Sat, Jan 10, 2009 at 12:37:18AM +1100, Brendan O'Dea wrote:
> On Wed, Jan 7, 2009 at 12:21 AM, Niko Tyni <ntyni@debian.org> wrote:

> > We could create the directories in a postinst script, but I'm not sure
> > I see the point. They will be created automatically when installing
> > CPAN modules.
>
> The directories are intentionally not created, as this way they are
> excluded from the search path at start-up, saving a bunch of wasted
> stats at use/require time in the common case that the user has not
> installed any local packages.  As Niko points out, they will be
> created as required.

Signed-off-by: Niko Tyni <ntyni@debian.org>

Gbp-Pq: Topic debian
Gbp-Pq: Name perlivp.diff
2022-05-14 02:41:15 +08:00
Brendan O'Dea f3ab191bb5 Set location of libnet.cfg to /etc/perl/Net as /usr may not be writable.
Gbp-Pq: Topic debian
Gbp-Pq: Name libnet_config_path.diff
2022-05-14 02:41:15 +08:00
Brendan O'Dea d40289dc8d Remove standard libs from LD_RUN_PATH as per Debian policy.
Gbp-Pq: Topic debian
Gbp-Pq: Name ld_run_path.diff
2022-05-14 02:41:15 +08:00
Brendan O'Dea fe1837ba3b Debian policy doesn't install .packlist files for core or vendor.
Gbp-Pq: Topic debian
Gbp-Pq: Name instmodsh_doc.diff
2022-05-14 02:41:15 +08:00
Brendan O'Dea 0c06d07ea8 Postpone LD_LIBRARY_PATH evaluation to the binary targets.
Modify the setting of LD_LIBRARY_PATH to append pre-existing values at the
time the rule is evaluated rather than when the Makefile is created.

This is required when building packages with dpkg-buildpackage and fakeroot,
since fakeroot (which now sets LD_LIBRARY_PATH) is not used for the "build"
rule where the Makefile is created, but is for the clean/binary* targets.

Gbp-Pq: Topic debian
Gbp-Pq: Name fakeroot.diff
2022-05-14 02:41:15 +08:00
Brendan O'Dea b1109f43f4 Don't install .packlist or perllocal.pod for perl or vendor
Gbp-Pq: Topic debian
Gbp-Pq: Name no_packlist_perllocal.diff
2022-05-14 02:41:15 +08:00
Niko Tyni 13b07a7b03 EU:MM: set location of libperl.a under /usr/lib
The Debian packaging moves libperl.a a couple of levels up from the
CORE directory to match other static libraries.

Gbp-Pq: Topic debian
Gbp-Pq: Name extutils_set_libperl_path.diff
2022-05-14 02:41:15 +08:00
Brendan O'Dea 42ffe1c291 Set umask approproately for site install directories
Policy requires group writable site directories

Gbp-Pq: Topic debian
Gbp-Pq: Name writable_site_dirs.diff
2022-05-14 02:41:15 +08:00
Brendan O'Dea b64fa1e137 Respect umask during installation
This is needed to satisfy Debian policy regarding group-writable
site directories.

Gbp-Pq: Topic fixes
Gbp-Pq: Name respect_umask.diff
2022-05-14 02:41:15 +08:00
Brendan O'Dea c79d8615de Note that libperl-dev package is required for embedded linking
Bug-Debian: http://bugs.debian.org/186778

Gbp-Pq: Topic debian
Gbp-Pq: Name libperl_embed_doc.diff
2022-05-14 02:41:15 +08:00
Brendan O'Dea 9744e548a4 Remove Errno version check due to upgrade problems with long-running processes.
Bug-Debian: http://bugs.debian.org/343351

Remove version check which can cause problems for long running
processes embedding perl when upgrading to a newer version,
compatible, but built on a different machine.

Gbp-Pq: Topic debian
Gbp-Pq: Name errno_ver.diff
2022-05-14 02:41:15 +08:00
Brendan O'Dea f3b88dcbf5 Tweak enc2xs to follow symlinks and ignore missing @INC directories.
Bug-Debian: http://bugs.debian.org/290336

- ignore missing directories,
- follow symlinks (/usr/share/perl/5.8 -> 5.8.4).
- filter "." out when running "enc2xs -C", it's unnecessary and causes
  issues with follow => 1 (see #603686 and [rt.cpan.org #64585])

Gbp-Pq: Topic debian
Gbp-Pq: Name enc2xs_inc.diff
2022-05-14 02:41:15 +08:00
Brendan O'Dea 82878211a9 Replace generic man(1) instructions with Debian-specific information.
Indicate that the user needs to install the perl-doc package.

Gbp-Pq: Topic debian
Gbp-Pq: Name doc_info.diff
2022-05-14 02:41:15 +08:00
Brendan O'Dea d04dcc0844 Remove overly restrictive DB_File version check.
Bug-Debian: http://bugs.debian.org/340047

Package dependencies ensure the correct library is linked at run-time.

Gbp-Pq: Topic debian
Gbp-Pq: Name db_file_ver.diff
2022-05-14 02:41:15 +08:00