Commit Graph
25 Commits
Author SHA1 Message Date
Khem Raj a2d9a9be5f ltrace: Upgrade to 0.8.1 and clang build errors
Drop the upstream applied patches
Add patches to fix build with clang-22
Bump PE to account for version going from 7.x to 0.8

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-04-12 16:42:04 -07:00
Khem Raj dd82970c60 ltrace: Switch to gitlab SRC_URI
The github mirror was a stopgap, now ltrace is hosted on gitlab/cespedes
drop already applied patches upstream.
Add a patch to fix VLAs

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-09-03 22:33:21 -07:00
Martin Jansa be8c765c7c *.patch: add Upstream-Status to all patches
There is new patch-status QA check in oe-core:
https://git.openembedded.org/openembedded-core/commit/?id=76a685bfcf927593eac67157762a53259089ea8a

This is temporary work around just to hide _many_ warnings from
optional patch-status (if you add it to WARN_QA).

This just added
Upstream-Status: Pending
everywhere without actually investigating what's the proper status.

This is just to hide current QA warnings and to catch new .patch files being
added without Upstream-Status, but the number of Pending patches is now terrible:

5 (26%) 	meta-xfce
6 (50%) 	meta-perl
15 (42%)        meta-webserver
21 (36%)        meta-gnome
25 (57%)        meta-filesystems
26 (43%)        meta-initramfs
45 (45%)        meta-python
47 (55%)        meta-multimedia
312 (63%)       meta-networking
756 (61%)       meta-oe

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-06-21 09:15:20 -07:00
Khem Raj ac69a01701 ltrace: Fix build with clang16
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-02-06 20:48:39 -08:00
Khem Raj 89bc6331f4 ltrace: Fix build on ppc64 with gcc12
gcc-12 has a better static analyser and finds additional use-after-free
case, addressed by removing the double free

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-04-20 10:58:01 -07:00
Khem Raj a41e283250 ltrace: Fix mips build with kernels 5.13+
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-07-13 09:39:15 -07:00
Khem Raj 07f8997356 ltrace: Remove unused static function
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-18 08:33:07 -07:00
Khem Raj abbee9b35f ltrace: Fix build on ppc64le/musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-03-13 00:56:14 -08:00
Khem Raj 7b9eb2fb17 ltrace: Fix build with gcc10
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-12-25 08:55:26 -08:00
Zang Ruochen 81f0a3c12f ltrace:Bug fix for data type length judgment
...
if (byte_size == sizeof(long)) {

        *type = is_signed ? ARGTYPE_LONG : ARGTYPE_ULONG;

        return true;

}
...

If ltrace's target command has a dbg package, ltrace will look for the debug file and analyze its contents.
Ltrace determines the type of analysis result variable. The type of the variable is longlong.
On 32-bit systems, longlong is 8 and long is 4 (same as in).
An error occurred because the ltrace code did not process a variable of length 8.

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Wang Mingyu <wangmy.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-10-21 04:44:10 -07:00
Khem Raj 720a2ffe85 ltrace: Fix build on mips
Newer kernel UAPI headers for mips have moved these needed defines
around

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-09-07 10:08:45 -07:00
Khem Raj 1a502b3086 ltrace: Fix build with clang
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-02-05 16:43:12 -08:00
Khem Raj 79ab090e2f ltrace: Fix a NULL string use
This case is likely to happen when mod == NULL so print it when
we are computing modname and symname

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-12-23 13:29:20 -08:00
Khem Raj f75b3ac720 ltrace: Fix build with musl/mips
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-09-22 22:50:45 +00:00
Khem Raj 8a542c8912 ltrace: Fix build on musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-07-14 23:44:31 +02:00
Khem Raj 27a7e20e2b ltrace: Add mips64 support
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-07-14 23:44:30 +02:00
Tomas Novotny 90524a3374 ltrace: fix build failure under icecream
The ltrace package fails to build under icecream distributed compiler
because of harmless warning emitted during preprocessing. See the patch
itself for more information.

Colleague of mine has submitted the patch but I'm afraid that the
project is dead.

Please note that icecream support in oe-core has some issues currently.
I have some local fixes and I plan to send them.

Signed-off-by: Tomas Novotny <tomas@novotny.cz>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-07-01 09:59:27 +02:00
Khem Raj 2f6193d78f ltrace: Fix FTBFS due to invalid code in ARM support
Found with gcc7

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-04-26 20:13:29 +02:00
Khem Raj fd490689fa ltrace: Fix build with aarch64 and bump to latest
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-03-11 17:56:43 +01:00
Khem Raj 831f710eca ltrace: Remove deprecated readdir_r()
New glibc >= 2.24 will remove it

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-05-06 12:38:32 +02:00
Li xin a61cb51425 ltrace: Error Fix for ARM
1) The error is as following:
     root # ltrace ls
     __libc_start_main(0xb6fbc018, 1, 0xbed8fdc4, 0xb6fd0b88PTRACE_SINGLESTEP: Input/output error
     2747 couldn't continue when handling __libc_start_main (0xb6fbbde0) at 0xb6fbbde0
   The master branch fix it.

2) remove unused patch:
     --0001-ltrace-fix-gcc-5-logical-not-parentheses.patch
     --ltrace-0.7.2-unused-typedef.patch

Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-05-06 12:38:31 +02:00
Kai Kang 31c98b41c3 ltrace: 7.2 -> 7.3
Upgrade ltrace from 7.2 to 7.3.

* update SRC_URI and SRCREV
* drop backport patch 0001-In-Linux-backend-initialize-linkmap-struct.patch
* fix error when compile with gcc 5.2

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-08-31 19:30:54 +02:00
Martin Jansa 932146a331 ltrace: fix build with -Os
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-04-13 12:55:52 +02:00
Wenzong Fan e2d07c8646 ltrace: add PACKAGECONFIG for selinux
Add PACKAGECONFIG for 'selinux', otherwise there would be warnings like
below:

WARN: ltrace: ltrace rdepends on libselinux, but it isn't a build dependency?

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-12-09 11:34:42 +01:00
Martin Jansa e0e1f8d244 ltrace: add PV and PACKAGECONFIG for libunwind
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-08-10 16:07:18 +02:00