Sync from SUSE:ALP:Source:Standard:1.0 perl-Devel-StackTrace revision 11e4d0873180b08efd7e39088df131cc

This commit is contained in:
Adrian Schröter 2023-05-17 14:41:10 +02:00
commit 43829f927b
5 changed files with 315 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

BIN
Devel-StackTrace-2.04.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

20
cpanspec.yml Normal file
View File

@ -0,0 +1,20 @@
---
#description_paragraphs: 3
#no_testing: broken upstream
#sources:
# - source1
# - source2
#patches:
# foo.patch: -p1
# bar.patch:
#preamble: |-
# BuildRequires: gcc-c++
#post_prep: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
#post_install: |-
# sed on %{name}.files
#license: SUSE-NonFree
#skip_noarch: 1
#custom_build: -
#./Build build flags=%{?_smp_mflags} --myflag

View File

@ -0,0 +1,200 @@
-------------------------------------------------------------------
Sat May 25 05:05:57 UTC 2019 - Stephan Kulow <coolo@suse.com>
- updated to 2.04
see /usr/share/doc/packages/perl-Devel-StackTrace/Changes
2.04 2019-05-24
- Add a partial workaround for "Bizarre copy" errors (GH #11) that come when
attempting to look at arguments in the call stack. This is only a partial
fix as there are cases that can lead to a SEGV. Ultimately this needs to be
fixed in the Perl core. See
https://rt.perl.org/Public/Bug/Display.html?id=131046 for relevant
discussion. Fixed by pali. GH #21.
-------------------------------------------------------------------
Sun Nov 19 06:16:22 UTC 2017 - coolo@suse.com
- updated to 2.03
see /usr/share/doc/packages/perl-Devel-StackTrace/Changes
2.03 2017-11-18
- If all frames in the trace were skipped (via skip_frames, frame_filter,
ignore_*, etc.), then the stringified stack trace would be an empty
string. Now this has been changed to always return the message given to the
constructor or the string "Trace begun". Fixes GH #15, reported by Karen
Etheridge.
-------------------------------------------------------------------
Thu Dec 8 06:20:44 UTC 2016 - coolo@suse.com
- updated to 2.02
see /usr/share/doc/packages/perl-Devel-StackTrace/Changes
2.02 2016-12-07
- Switch to GitHub Issues.
- Some small pod fixes.
-------------------------------------------------------------------
Tue Mar 8 10:08:56 UTC 2016 - coolo@suse.com
- updated to 2.01
see /usr/share/doc/packages/perl-Devel-StackTrace/Changes
2.01 2016-03-02
- Fixed the frames method when it is called with arguments. Previously this
did not work if it was called before the method was called as a
reader. Fixed by Mark Fowler. PR #8.
-------------------------------------------------------------------
Thu Apr 16 17:25:42 UTC 2015 - coolo@suse.com
- updated to 2.00
see /usr/share/doc/packages/perl-Devel-StackTrace/Changes
2.00 2014-11-01
[BACKWARDS INCOMPATIBILITIES]
- The no_refs constructor parameter is now deprecated, and has been replace by
a new unsafe_ref_capture parameter that defaults to false, meaning no
references are captured by default. Capturing references by default caused
too many issues that couldn't be worked around, including running DESTROY
blocks multiple times on captured objects in the worst case.
- Removed support for the long-deprecated no_object_refs constructor parameter
(deprecated in 2002!).
-------------------------------------------------------------------
Fri Sep 19 12:15:46 UTC 2014 - coolo@suse.com
- updated to 1.34
- Fixed use of // operator (my use, not Graham's) in previous release.
1.33 2014-06-26
- Added a skip_frames option. This causes the stack trace to skip an arbitrary
number of frames. Patch by Graham Knopp. PR #5.
1.32 2014-05-05
- Added a filter_frames_early option to filter frames before arguments are
stringified. Added by Dagfinn Ilmari Mannsåker. PR #4.
-------------------------------------------------------------------
Mon Feb 24 06:08:43 UTC 2014 - coolo@suse.com
- updated to 1.31
- No code changes, just doc updates, including documenting the as_string()
method in Devel::StackTrace::Frame. Requested by Skef. RT #91575.
- remove Devel-StackTrace-1.27_Test_More.patch
-------------------------------------------------------------------
Tue Jun 4 08:33:17 UTC 2013 - coolo@suse.com
- updated to 1.30
- There was an eval which did not first localize $@ and $SIG{__DIE__}. This
broke Plack::Middleware::StackTrace (and possibly other tihngs).
- The Devel::StackTrace->frames() method is now read-write. This allows you to
do more complex filtering of frames than is easily possible with the
frame_filter argument to the constructor. Patch by David Cantrell.
- Allow arguments to a trace's as_string method, specifically max_arg_length
Patch by Ricardo Signes.
- Added a no_args option to the constructor in 1.26 but forgot to mention it
in Changes. Requested by Scott J. Miller. RT #71482.
-------------------------------------------------------------------
Fri Nov 18 11:08:14 UTC 2011 - coolo@suse.com
- use original .tar.gz
-------------------------------------------------------------------
Tue Feb 1 12:46:22 UTC 2011 - chris@computersalat.de
- fix deps
* created by cpanspec 1.78.03
- fix build for suse_version < 1120
o add Test_More patch
-------------------------------------------------------------------
Wed Jan 19 13:49:08 UTC 2011 - coolo@novell.com
- update to version 1.27
- Skip some tests on 5.13.8+ that are no longer relevant because of a change
in the Perl core. Reported by Andreas Koenig. RT #64828.
- The as_string method did not localize $@ and $SIG{__DIE__} before doing an
eval. Reported and tested by Marc Mims. RT #61072.
- Moved the frame object to its own file, and renamed it
Devel::StackTrace::Frame. The old package name, Devel::StackTraceFrame, is
now a subclass of the new package, to provide a backwards compatibility
shim.
- Added message and indent constructor parameters. Based on a patch by James
Laver. RT #59830.
-------------------------------------------------------------------
Wed Dec 1 09:44:32 UTC 2010 - coolo@novell.com
- switch to perl_requires macro
-------------------------------------------------------------------
Mon Mar 8 21:59:06 UTC 2010 - chris@computersalat.de
- update to version 1.22
- Apparently, overload::StrVal on older Perls (5.8.5, but not 5.8.8)
tried to call a stringification method if it existed. So now,
Devel::StackTrace just uses overload::AddrRef instead, which should
always be safe. Reported by Michael Stevens. Fixes RT #47900.
- 1.21 Jul 1, 2009
- Overloaded objects which didn't provide a stringification method
cause Devel::StackTrace to die when respect_overload was
true. Reported by Laurent Dami. RT #39533.
- Added a frame_filter option which allows for fine-grained control
over what frames are included in a trace. Based on (but expanded)
from a patch proposed by Florian Ragwitz. RT #47415.
- cleanup spec
- Header version
- License
- Provides
-------------------------------------------------------------------
Sat Jul 25 19:37:10 CEST 2009 - chris@computersalat.de
- spec mods
* removed ^----------
* removed ^#---------
-------------------------------------------------------------------
Sun Jun 28 01:06:14 CEST 2009 - chris@computersalat.de
- added perl-macros
o autogen filelist with perl_gen_filelist
- spec mods
o added header
o fixed deps
-------------------------------------------------------------------
Thu Mar 19 15:06:07 CET 2009 - lars@linux-schulserver.de
- update to 1.20:
+ many test fixes
+ bad utf-8 fixes
+ Added a max_arg_length parameter, which if set causes
Devel::StackTrace to truncate long strings when printing out a
frame. RT #33519. Patch by Ian Burrell.
-------------------------------------------------------------------
Thu Nov 01 00:00:00 CET 2007 - James Oakley <jfunk@funktronics.ca> - 1.15-1
- Initial release

View File

@ -0,0 +1,69 @@
#
# spec file for package perl-Devel-StackTrace
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: perl-Devel-StackTrace
Version: 2.04
Release: 0
%define cpan_name Devel-StackTrace
Summary: An object representing a stack trace
License: Artistic-2.0
Group: Development/Libraries/Perl
Url: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Test::More) >= 0.96
%{perl_requires}
%description
The 'Devel::StackTrace' module contains two classes, 'Devel::StackTrace'
and Devel::StackTrace::Frame. These objects encapsulate the information
that can retrieved via Perl's 'caller' function, as well as providing a
simple interface to this data.
The 'Devel::StackTrace' object contains a set of 'Devel::StackTrace::Frame'
objects, one for each level of the stack. The frames contain all the data
available from 'caller'.
This code was created to support my Exception::Class::Base class (part of
Exception::Class) but may be useful in other contexts.
%prep
%setup -q -n %{cpan_name}-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc appveyor.yml Changes CODE_OF_CONDUCT.md CONTRIBUTING.md README.md
%license LICENSE
%changelog