Commit Graph

22 Commits

Author SHA1 Message Date
Hieu Van Nguyen
0e2ed14c7a
libmtp: enable stack memory protection
Add 0002-util-mtp-hotplug.c-Enable-stack-memory-protection.patch:
Use "return 0" instead of "exit(0)" to let the program exit normally
by returning from the main function. This allows the compiler to
perform necessary cleanup operations, including stack canary checks.

Signed-off-by: Hieu Van Nguyen <hieu2.nguyen@lge.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-30 08:24:31 -07:00
Alexandre Truong
6750fa90a3
libmtp: include UPSTREAM_CHECK_* to fix UNKNOWN_BROKEN status
Adding UPSTREAM_CHECK_URI and UPSTREAM_CHECK_REGEX fix
UNKNOWN_BROKEN status from running devtool check-upgrade-status.

The next version of the package can be found from upstream
sources.

Signed-off-by: Alexandre Truong <alexandre.truong@smile.fr>
Reviewed-by: Yoann Congal <yoann.congal@smile.fr>
2024-07-24 08:56:38 -07:00
alperak
2584d79f80
libmtp: upgrade 1.1.20 -> 1.1.21
Changelog:

Bugs fixed:

- Fix LIBMTP_STORAGE_SORTBY_MAXSPACE not working (copy-paste mistake)
- fix warnings regarding mismatched parameter docs
- fix comment above sort_storage_bysort_storage_by
- Revert "ptp_pack_string: check string length for no iconv situation"
- remove dependency on ptp.h
- fixed paste error vendor/product id
- libusb-glue: check return value of ptp_init_send_memory_handler
- ptp_pack_string: check string length for no iconv situation
- ptp-pack: fix ucs2str overflow

Features:

- add a LIBMTP_FreeMemory function that wraps free()
- added functions to get device by serial number
- added serial number of device to output of 'mtp-files'
- added optional serial number parameter to 'mtp-getfile'
- added optional serial number parameter to 'mtp-delfile'
- feat: Add LIBMTP_Get_Children() to read the list of raw IDs of a folder.
- merge a patch from google https://source.chromium.org/chromiumos/chromiumos/codesearch/+/main:src/third_party/chromiumos-overlay/media-libs/libmtp/files/libmtp-1.1.20-10_remove_nexus_s_from_device_list.patch

New devices:

- add Garmin Forerunner 955 + mtp-detect log
- added SHARP S7-SH https://sourceforge.net/p/libmtp/bugs/1914/
- added another Lenovo Tab TB-X306F id fixes #116
- added tolino vsiion 6 reader https://sourceforge.net/p/libmtp/bugs/1921/
- added FLIR C5 camera
- added iBasso DX170 DAP, fixes #125
- added Lenovo Tab P11 fixes #127
- aded Sony NW-A105 fixes //github.com//issues/130
- added Honor Any-NX1 #135
- added gopro hero11 black #136
- removed a dup of a Mediatek MT65xx devices https://sourceforge.net/p/libmtp/bugs/1922/
- rename some LG devices to match reality better
- rename 3 blackberry to correct vendor/product names
- added realme Phone
- updated some mediatek id names, removed some duplicates
- adjusted various id names https://sourceforge.net/p/libmtp/bugs/1926/
- fixed order, https://sourceforge.net/p/libmtp/bugs/1931/
- some more brand renames. https://sourceforge.net/p/libmtp/bugs/1930/
- adjust some device naming https://sourceforge.net/p/libmtp/bugs/1932/
- added Vivo V19 (fixes #143)
- added Garmin Forerunner 255S Music
- rename and merge, also reshuffle to sorting ... fixes https://sourceforge.net/p/libmtp/bugs/1933/
- added Garmin Forerunner 255M smartwatch, fixes #150

Signed-off-by: alperak <alperyasinak1@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-11-17 11:38:24 -08:00
Khem Raj
6f1f432af3 libmtp: Always enable largefile support
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-08-13 07:05:31 -07:00
Khem Raj
0e46331835 libmtp: Upgrade to 1.1.20
Use github for downloading the release artifacts.
This has support for new devices

https://github.com/libmtp/libmtp/releases/tag/v1.1.20

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-07-24 06:28:56 -07:00
Gianfranco
a9e6d16e66 libmtp: Add doxygen-native dependency in case documentation build is enabled in PACKAGECONFIG. This fixes a FTBFS due to missing dependency.
Signed-off-by: Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
Signed-off-by: Gianfranco Costamagna <locutusofborg@debian.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-05-20 10:59:47 -07:00
wangmy
fb16244c4a libmtp: upgrade 1.1.18 -> 1.1.19
License-Update: Copyright Marcus Meissner <marcus@jet.franken.de> year updated to 2018

Changelog:
==========
- Lots of USB ids added, especially Garmin devices
- use a local libusb context, not the global one
- various bugfixes

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-04-12 09:28:25 -07:00
Khem Raj
14c7d8a0d7 recipes: Update LICENSE variable to use SPDX license identifiers
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-04 17:41:45 -08:00
Martin Jansa
c61dc077bb Convert to new override syntax
This is the result of automated script (0.9.1) conversion:

oe-core/scripts/contrib/convert-overrides.py .

converting the metadata to use ":" as the override character instead of "_".

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2021-08-03 10:21:25 -07:00
zangrc
ab1d310f58 libmtp: upgrade 1.1.17 -> 1.1.18
Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-10-23 10:20:24 -07:00
Wang Mingyu
f953932ef7 libmtp: upgrade 1.1.16 -> 1.1.17
Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-02-27 17:55:23 -08:00
Andreas Müller
a4fc057760 libmtp: upgrade 1.1.5 -> 1.1.16 and rework
* fixes gvfs with libmtp in PACKAGECONFIG:
  | Cross dependency libmtp found: NO found '1.1.5' but need: '>= 1.1.12'
  |
  | meson.build:436:2: ERROR:  Invalid version of dependency, need 'libmtp' ['>= 1.1.12'] found '1.1.5'.
* license checksum changed by change of copyright year
* Do not pin udev rules to old version -> let native binary create them
* Install udev rules to /lib/udev (as before the update) otherwise they are
  ignored

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-12-02 11:05:02 -08:00
Mark Hatle
a827e09338 libmtp: remove 'mtp-tools' from PACKAGES
mtp-tools is a 'rename' of the ${PN}-bin, so it should not be in the
PACKAGES value.  If it is, it will result in either an error during packaging
or an indeterminate package.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2017-09-13 11:13:20 +02:00
Armin Kuster
51c3205dc8 libmtp: fix build issue
DEBUG: Executing shell function BUILDSPEC
| error: line 109: %package -n mtp-tools: package mtp-tools already exists

Yes, there are two entries in libmtp.spec. Under packages-split, mtp-tools is empty but
libmtp-bin is not.

Removed PKG_${PN}-bin , this alignes how Debian split its packages

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-09-07 10:57:37 +02:00
Ross Burton
21f10c11f3 meta-oe: use bb.utils.contains() instead of base_contains()
base_contains() is a compatibility wrapper and may warn in the future, so
replace all instances with bb.utils.contains().

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-04-28 10:38:38 +02:00
Yi Zhao
8f7ee00291 meta-oe: fix the install dir for udev rules and files
When enable multilib, some packages try to install udev rules and
related files into /lib64/udev/ directory. But these files should
be installed in /lib/udev/ directory even on multilib.
Use ${nonarch_base_libdir} instead of ${base_libdir} to fix it.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
2015-06-23 12:40:10 +02:00
Khem Raj
a67fd78dc0 libmtp: Fix build with glibc 2.20
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-10-04 00:28:29 +02:00
Richard Purdie
f5580b13df fuse/libmtp/tcsh/enca: Add missing explict gettext-native dependency
This is needed for the AM_ICONV macro and friends.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-07-15 14:53:31 +02:00
Richard Purdie
74783ca190 libmtp: add missing dependency on virtual/libiconv
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-06-21 13:06:13 +02:00
Charles Oram
17ce4c6ac0 libmtp: Fix 'Makefile.am: No such file or directory' build error.
* skip_udev_rules_generation() needs to reference Makefile.am in the recipe
  source directory.

Signed-off-by: Charles Oram <charles@oram.co.nz>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-05-15 12:59:48 +02:00
Martin Jansa
4d62e7f575 recipes: Remove PR = r0 from all recipes
* Remove all PR = "r0" from all .bb files in meta-oe repo. This was done
  with the command sed -e '/^PR.*=.*r0\"/d' meta*/recipes*/*/*.bb -i

* We've switching to the PR server, PR bumps are no longer needed and
  this saves people either accidentally bumping them or forgetting to
  remove the lines (r0 is the default anyway).

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-11-01 15:33:16 +01:00
Fahad Usman
b8a4545487 libmtp: add new recipe
this was initially written by 'Christopher Larson'

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Fahad Usman <fahad_usman@mentor.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-06-20 12:29:55 +02:00