Richard Purdie [Wed, 3 Jun 2020 15:01:02 +0000 (16:01 +0100)]
buildhistory: Add simplistic file move detection
We'd like to use buildhistory more during patch review however its
proving hard, particularly where whole subtrees of files move,
such as a kernel version upgrade, or where a software module moves
include directory.
This adds file rename matching which covers our common case of library
moves, kernel upgrades and more.
A new test case is also added so that someone in the future can change
the code and test the logic is still doing the expected things.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Kai Kang [Fri, 5 Jun 2020 09:07:19 +0000 (17:07 +0800)]
avahi-dnsconfd: rdepends on avahi-daemon
Systemd service avahi-dnsconfd.service requires avahi-daemon.socket
and avahi-daemon.service which are from avahi-daemon. So make
avahi-dnsconfd rdepends on avahi-daemon.
Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Khem Raj [Wed, 10 Jun 2020 05:10:28 +0000 (22:10 -0700)]
stress-ng: Fix build on musl
Define daddr_t if not provided by system headers
Fixes
./stress-ng.h:3755:2: error: unknown type name 'daddr_t'; did you mean 'caddr_t'?
daddr_t f_tfree;
^~~~~~~
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Joshua Watt [Tue, 9 Jun 2020 17:16:31 +0000 (12:16 -0500)]
wic: Fix --extra-space argument handling
467f84e12b ("wic: Add --offset argument for partitions") broke the
--extra-space argument handling in wic. Fix the option and add a unit
test for the argument.
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Chen Qi [Mon, 8 Jun 2020 01:36:33 +0000 (09:36 +0800)]
vim: restore the 'chmod -x' workaround in do_install
These workarounds are removed because a previous patch
solve the host path reference for gawk and perl, and it skips
the do_package_qa issue by setting the INSANE_SKIP. But it
introduces regression for do_rootfs. The dependencies are
calculated and will require packages like python, perl, gawk
and csh. The error is like below.
Error:
Problem: conflicting requests
- nothing provides /bin/csh needed by vim-tools-8.2-r0.corei7_64
- nothing provides /usr/bin/nawk needed by vim-tools-8.2-r0.corei7_64
- nothing provides /usr/bin/python needed by vim-tools-8.2-r0.corei7_64
So we keep the previous patch which solve the host path reference
problem and restore the long-used 'chmod -x' workaround here.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Mingli Yu [Tue, 9 Jun 2020 07:27:20 +0000 (15:27 +0800)]
python3-setuptools: add missing rdepends for python3-pkg-resources
Add missing rdepends for python3-pkg-resources to fix below error:
# python3
[snip]
import pkg_resources
[snip]
ModuleNotFoundError: No module named 'plistlib'
ModuleNotFoundError: No module named 'email'
Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This release contains the following fixes and enhancements:
xtables-save/xtables-restore:
- Fix parser in `--noflush' mode incorrectly rejecting chain definitions
and empty lines.
- Fix crash when restoring or dumping while other ruleset changes happen
in parallel.
iptables-apply:
- Install the script along with `make install'.
- Introduce parameters `-c' (run command) and `-w' (save successfully
applied rules to file).
- Use `mktemp' instead of `tempfile' for temporary files.
iptables-translate:
- Support `time' match and `NOTRACK' target.
- Fix for special interface names `*', `+' and `eth++'.
ebtables-nft:
- Full among match support, including sets with mixed MAC and MAC+IP
entries.
extensions:
- connlabel: Numeric labels were rejected if a connlabel.conf existed in
the system.
- IDLETIMER: Introduce `--alarm' option.
libxtables:
- Introduce xtables_fini() to properly deinit the library and close any
loaded shared objects.
nfnl_osf:
- Fix lockup after loading the first line from fingerprints file.
- Improve error handling, don't silently exit when deleting a
non-existing fingerprint.
General:
- Fixes for undefined behaviour.
- Replace a few unsafe calls to strcpy().
- Fix some warnings when compiling with clang.
- Various fixes for valgrind-detected problems such as memory leaks and
reachable memory at program exit.
Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Kai Kang [Sun, 7 Jun 2020 13:21:57 +0000 (21:21 +0800)]
wpa-supplicant: remove service templates from SYSTEMD_SERVICE
Remove service templates wpa_supplicant-nl80211@.service and
wpa_supplicant-wired@.service from SYSTEMD_SERVICE that they should NOT
be started/stopped by calling 'systemctl' in postinst and prerm scripts.
Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
build-sysroots: add sysroot paths with native binaries to PATH
staging_populate_sysroot_dir() collects postinsts from the sysroot
and executes them. These postinsts, in turn, may call binaries that
are only available from the sysroot. This works fine with recipe-specific
sysroots, as all necessary paths are already in PATH, but breaks down
in this recipe which imitates the old global sysroot way but doesn't adjust
the PATH to include the binary paths from global sysroot.
Exception: subprocess.CalledProcessError: Command '/home/akanavin/build/tmp/sysroots/x86_64/usr/bin/postinst-docbook-xml-dtd4-native-xmlcatalog' returned non-zero exit status 127.
Subprocess output:
/home/akanavin/build/tmp/sysroots/x86_64/usr/bin/postinst-docbook-xml-dtd4-native-xmlcatalog: 5: /home/akanavin/build/tmp/sysroots/x86_64/usr/bin/postinst-docbook-xml-dtd4-native-xmlcatalog: xmlcatalog: not found
/home/akanavin/build/tmp/sysroots/x86_64/usr/bin/postinst-docbook-xml-dtd4-native-xmlcatalog: 8: /home/akanavin/build/tmp/sysroots/x86_64/usr/bin/postinst-docbook-xml-dtd4-native-xmlcatalog: xmlcatalog: not found
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
License-Update: changed license file path on Debian systems Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
License-Update: copyright years, gpl2 text updated to latest official Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
License-Update: added more entries to WHENCE, all redistributable Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Andreas Müller [Fri, 5 Jun 2020 15:29:26 +0000 (17:29 +0200)]
harfbuzz: upgrade 2.6.4 -> 2.6.7
* Seems they stopped maintaining freedesktop downloads so we missed few versions.
To stay tuned add UPSTREM_CHECKs.
* License checksum was changed by credits & date changes [1]
Paul Barker [Fri, 5 Jun 2020 09:39:56 +0000 (10:39 +0100)]
archiver: Speed up tests
When running tests locally without the advantage of a populated sstate
cache, the archiver tests can take an unnecessarily long time. Using
different target recipes can speed things up a lot by reducing the
number of dependencies that are built.
For the test case test_archiver_srpm_mode we can still test the
conditions described in bug #11121 by using a target recipe that is
known to inherit the nopackages class as well as a more normal recipe,
instead of having to compute all the depepndencies of core-image-sato.
Jacob Kroon [Tue, 26 May 2020 07:36:23 +0000 (09:36 +0200)]
features_check: Factorize code for checking features
The DISTRO/MACHINE/COMBINED features should be treated identically, so
convert the expanded code to a loop. This fixes some of the COMBINED error
messages which were previously referring to MACHINE features. There
should be no functional changes.
Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Ming Liu [Wed, 3 Jun 2020 11:56:01 +0000 (13:56 +0200)]
u-boot: support merging .cfg files for UBOOT_CONFIG
U-boot recipe supports .cfg files in SRC_URI, but they would be merged
to .config during do_configure only when UBOOT_MACHINE is set, we
should also support merging .cfg files for UBOOT_CONFIG.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Ming Liu <ming.liu@toradex.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Mingli Yu [Thu, 4 Jun 2020 08:13:39 +0000 (16:13 +0800)]
python3-magic: add the missing rdepends
Add the missing rdepends to fix below error:
# python3
[snip]
>>> import magic
[snip]
ModuleNotFoundError: No module named 'ctypes'
ModuleNotFoundError: No module named 'tempfile'
Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Changqing Li [Thu, 4 Jun 2020 03:28:12 +0000 (11:28 +0800)]
cups.inc: remove template service from SYSTEMD_SERVICE
this template service need to triggered by org.cups.cups-lpd.socket,
which will assigned an instance id for org.cups.cups-lpd@.service,
like org.cups.cups-lpd@0.service. add this in SYSTEMD_SERVICE will
cause post scriptlet fail as:
Failed to start org.cups.cups-lpd@.service: Unit name org.cups.cups-lpd@.service is missing the instance name.
See system logs and 'systemctl status org.cups.cups-lpd@.service' for details.
Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Stefan Agner [Wed, 3 Jun 2020 19:50:11 +0000 (19:50 +0000)]
initramfs-framework: check successful mount using mountpoint
Instead of checking for existence of /dev in the mounted file system use
mountpoint to check if a root file system has been mounted. This allows
to use the rootfs module for OSTree based rootfs as well, where the file
system rootfs does not have any of the regular directories (at least
when using the modern layout).
Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
There are cases where one doesn't want ldconfig on target (e.g. for
read-only root filesystems, it's rather pointless), yet one still
needs ld.so.conf to be present at image build time:
When some recipe installs libraries to a non-standard location, and
dutifully drops in a file in /etc/ld.so.conf.d/foo.conf, we need the
ld.so.conf containing the
include /etc/ld.so.conf.d/*.conf
stanza to get those other locations picked up.
So change the packaging logic so that there's always an ld.so.conf
present when the build-time ldconfig runs.
The ld.so.conf and ld.so.conf.d/*.conf files don't take up much
room (at least not compared to the 700K binary ldconfig), and they
might be needed in case ldconfig is installable, so leave them
alone.
In case of a read-only rootfs, one could add some logic to remove them
if one really wants to shave those few dozens of bytes off.
While here, fix typos in the bb.note (add spaces) so one can just
copy-paste the line from the log-file and redo the command.
Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Paul Barker [Wed, 3 Jun 2020 20:07:38 +0000 (21:07 +0100)]
oe-selftest: Recursively patch test case paths
This ensures that builddir is updated correctly to point to the new
selftest build directory when we're given a list of test suites instead
of a list of test cases.
Signed-off-by: Paul Barker <pbarker@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Paul Barker [Wed, 3 Jun 2020 20:03:48 +0000 (21:03 +0100)]
archiver: Fix test case for srpm archiver mode
We can't assume that rpm packaging will always be enabled when running
oe-selftest. In particular when using nodistro instead of poky this is
not enabled by default.
Signed-off-by: Paul Barker <pbarker@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Junling Zheng [Wed, 3 Jun 2020 14:08:41 +0000 (22:08 +0800)]
security_flags: Remove stack protector flag from LDFLAGS
SECURITY_LDFLAGS contains stack protector flag inappropriately, which
has already be contained in SECURITY_CFLAGS. Let's remove it from
SECURITY_LDFLAGS.
Signed-off-by: Junling Zheng <zhengjunling@huawei.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Wang Mingyu [Wed, 3 Jun 2020 10:52:01 +0000 (18:52 +0800)]
valgrind: upgrade 3.15.0 -> 3.16.0
0001-gcc10-arm64-build-needs-__getauxval-for-linking-with.patch
0001-tests-Make-pthread_detatch-call-portable-across-plat.patch
0004-pth_atfork1.c-Define-error-API-for-musl.patch
removed since they are included in 3.16.0
refresh 0004-Fix-out-of-tree-builds.patch
-License-Update:
before:
You should have received a copy of the GNU General Public
License along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307, USA.
after:
You should have received a copy of the GNU General Public License
along with this program; if not, see <http://www.gnu.org/licenses/>.
Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Debians init-system-helpers bundle an own, perl written update-rc.d which
doesn't fulfill embedded/cross-build requirements as our own in
meta/recipes-core/update-rc.d
does. To avoid unnecessary conflicts or questions, do not bundle it by
default. Whoever wants it is invited to have an .bbappend.
Signed-off-by: Jens Rehsack <sno@netbsd.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Check the status before start it to avoid duplicates.
the use of a script {/usr/sbin/}service is introduced - maybe earlier
provided by systemd, nowadays mostly by init-system-helpers from
debian project.
For the very first shot, maybe discussions and improvements based
on that script collection, use just the init-system-helpers-service
in initscripts/mountnfs.sh to avoid problems mounting NFS in later
boot stage.
Signed-off-by: Jens Rehsack <sno@netbsd.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Alex Kiernan [Tue, 2 Jun 2020 14:51:20 +0000 (15:51 +0100)]
systemd: upgrade v245.5 -> v245.6
Commits:
aa0cb635f1f6 network: L2TP fix crash 9774347b5775 Fix typo. 2cac801f0f37 stat-util: trivial empty_or_null() tweaks b054e69bf98e Check ambient set against bounding set prior to applying ambient set bed695375abc udev: when the BSD lock on a block device is taken, don't complain 66fcfdfde7d9 core: add forgotten return in error path 05dd19fad320 shared/efi-loader: remove check that uses absolute tick value 753a71ad1d0e gpt: include homed GPT partition type in well-known partition table 366872204933 units: don't set PrivateNetwork= in systemd-homed.service 2bca2d77d37d resolved-dns-query: remove dns_query_candidate_is_routable a3f60204325a sd-network: fix inverted error message a7a9fe3c930d network: allow empty assignment to PreferredLifetime= 8df6fc1241d1 Update resolvectl zsh completion c1a83277d086 shared: treat generator units as vendor units 1f382d818dd0 tree-wide: fix bad errno checks 667c2076838f bus-message: immediately reject messages with invalid type 116a8eadb6ad bus-message: fix negative offset with ~empty message 4d5779d886d0 load-fragment: fix a typo c8b6de003a07 NEWS: retroactively document Family= cf6b8e6ec524 man: fix dir name in sysctl.d(5) 6d009b7a25b1 journalctl,elsewhere: make sure --file=foo fails with sane error msg if foo is not readable cf786ef1643e makefs: log about OOM condition 0b1839822f9e blockdev: propagate one more unexpected error d78ce949d001 repart: don't insist on coming up on partition label ourselves 9e1363fcc65f journal: fix dropping first record during upload to remote journal 50cb4e418dab meson: initialize time-epoch to reproducible builds compatible value 76abe079b79a limit-util: quieten a very common debug message that is misleading b3e484a3b133 shared: fix integer overflow in calendarspec 0c29eea9691d repart: suppress complaints about lack of BLKRRPART when operating on regular file 3db52f5ed840 repart: explain when we exit early and don't do a thing d99cba3aaa8c mount: introduce mount_is_nofail() helper 7bc4bcea15aa mount: default startup dependencies and default network ones are orthogonal 7fe617fa5381 mount: introduce mount_add_default_ordering_dependencies() e1c091b6d4c5 automount: fix handling of default dependencies for automount units ae05a137c9d4 mount: let pid1 alone handle the default dependencies for mount units f1fb1971767d mount: mount unit activated by automount unit should be only ordered against the automount unit c9bcc69703c1 generator: don't generate device dependencies for extrinsic mounts ebac09ea0a4e fstab-util: introduce fstab_is_extrinsic() a20e4ea0ed98 device: drop refuse_after 2799fffac1eb man: drop some left-over mentions of StandardOutput=syslog 144aff9c3beb sd-netlink: remove unused RTNL_WQUEUE_MAX define 34ca8df8e131 test: Add return 0 to main() function (even it is not strictly necessary) 6e03f328a939 network: 'cur' variable cannot be null, so simplify code 8d0c97f6ca3c tree-wide: Initialize _cleanup_ variables if needed 4f174e49aef8 netlink: Fix assert condition on n_containers 3905ce532c86 journald: Increase stdout buffer size sooner, when almost full 5a37eb7c6155 core: don't bind varlink socket if running in test mode 33fff72ce665 pam_systemd: also print debug lines when ending a session ba9af79ccbab pam_systemd_home: use correct macro for converting ptr to fd 619923548961 Fix misuse of PAM_PROMPT_ECHO_OFF in systemd-homed c180a2c4520e shared/ethtool-util: hush gcc warnings about array bounds 1addba4aac47 core: fix compilation with gcc -O3 9c46b97161c7 random-util: use ERRNO_IS_NOT_SUPPORTED() macro d85f9093d2f5 tmpfiles: clarify that "!" lines are filtered before collisions are checked 2fac966a5ca3 man: mention the exclamation mark and minus sign literally, to make things searchable 4f61be3373e3 man: clarify that exit status name mappings are unaffected by SuccessExitStatus= b747d74a4102 seccomp-util: add new syscalls from kernel 5.6 to syscall filter table c30d8caf8b3d tree-wide: Replace assert() by assert_se() when there is side effect b6e8e3be7e48 networkctl: use uint64_t for link speed throughout be66ce60891d tree-wide: use CMSG_SPACE() (and not CMSG_LEN()) to allocate control buffers 1cb197798a40 man: suffix pam options with "=" where arg is required too a5fe01d3da4c test: Use assert_se() where variables are only checked by assert 6960efd19892 tree-wide: Fix, replace assert() by assert_se() when there is side effect 93c1b0307496 tree-wide: Mark as _unused_ variables that are only used in assert() c7679d7a9f01 tree-wide: Workaround -Wnonnull GCC bug 073b257fd760 man: bring example PAM snippet of pam_systemd and pam_systemd_home back in sync 855291a81ca6 man: highlight relevant lines in pam_systemd_home.so example PAM snippet f89ad7c0fdd9 login: include pam_systemd_home.so in the default PAM snippet we ship for user@.service 9357f9466f80 test: Skip test-boot-timestamps on permission denied cad4ebe14e9e sysusers: be extra careful when locking accounts 551e6f233a52 shared/install: print name of offending file in error c6a2e5123206 systemctl: fix --root support in querying presets 6f1eedbfdda5 systemctl: fix hint when 'systemctl help' is given 925521df7c86 shared/unit-file: fix resolution of absoulute symlinks with --root 756ba362e873 man: mention that ProtectSystem= also takes care of /efi 4f77cf43b5de man: systemd.service: systemd-analyze exit-codes -> exit-status 7c6ea7a0534c man: expand on the star…end/repetition time expressions e06b9407928c calendarspec: be more graceful with two kinds of calendar expressions f3dd0b476d9d calendarspec: minor simplification 3581c16d5681 shutdown: fix spacing in shutdown error message 9556255349ff nspawn: mount custom paths before writing to /etc 37447b7e78ad repart: fix partition maximum size segfault 7f231ba503e7 link: Add units and fix typo in (Rx|Tx)BufferSize= manpage. Clean up the implementation slightly e75d2cdb0b22 main: bump RLIMIT_MEMLOCK by physical RAM size e16b9a1e31bf nspawn: be more careful with creating/chowning directories to overmount 765d184a6976 homectl: say "home area" in more places c11bff4fa72b userdbctl: make --help fit in 80 columns 0e56c2ef3fe3 shell-completion/zsh: update systemd-analyze completions 2bb580f9942d zsh: fix disable/enable completion 607a19a30936 cgroup-util: check for SYSFS_MAGIC when detecting cgroup format ddb3c38efce1 stat-util: no need to open a file to check fs type bd8842304c87 sysusers,tmpfiles: always mention error when failing to replace specifiers bdea9b65d21a sysusers: add accidentally forgotten 'return' 17b059774dd4 man: document binfmt's new --unregister switch 560380d8ec94 binfmt: also unregister binfmt entries from unit 80835d9c51bd binfmt: modernize code a bit a1745741b82f shutdown: unregister all binfmt_misc entries before entering shutdown loop b637445950c8 shared: add common helper for unregistering all binfmt entries 0215625e9927 home: fix strv NUL termination 038988baa14e networkd: don't do lldp rx nor tx on bond devices 9512d576d9f3 sd-bus: Fix typo in sd_bus_message_append_array docs 63cef71dd068 shared: add NULL callback check in one more place 6b91ca22a2e5 core: fix unused variable warning when !HAVE_SECCOMP f7c1c79c576d udev: prepare memory for extra NUL termination for NULSTR 69e0ef0d99ec tree-wide: use recvmsg_safe() at various places cd0a84d4e956 socket-util: add recvmsg_safe() wrapper that handles MSG_CTRUNC 2bb48c704b8d sd-bus: work around ubsan warning c147bba1fb4a shared: Don't try calling NULL callback in bus_wait_for_units_clear f907491463ac run: don't wait for start job to complete when running interactively anyway d3d1550a5d98 man: Fix typo "multiplied with" -> "multiplied by" ae5a9f27c5e5 core: make sure we don't get confused when setting TERM for a tty fd a07d3eaf7657 man: document that VirtualEthernetExtra= has nothing to do with Bridge= 35fe81078eb1 core: add debug log when a job in the activation queue is not runnable a0cd882be891 core: add log_get_max_level check optimization in log_unit_full 2a6ad1093c3c util: return the correct correct wd from inotify helpers 9ec244c5c121 core: minor error code handling fixes a799283c91f6 man: document how to get the boot menu with zero time-out 7263e86c8dd8 resolved: return org.freedesktop.resolve1.DnsError.NXDOMAIN on LLMNR resolution failure 6eab4c2b3ece man: use manpages.ubuntu.com for resolvconf(8) link 75ccec5cde54 man: add a note that resolvconf updates /etc/resolv.conf in specific circumstances 3e3a31743a45 resolvectl: fix indentation of hexdump'ed packets 6576058fab75 journald: add configuration option for enabling/disabling audit during journald startup 52c5909f15ff man/systemd-service: clarify env variable expansion ac08df59c0db resolved: fix typo in an unused function and add comment
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Doxygen in meta-oe has recently been extended for nativesdk. Doxygen is
often used together with mscgen which in turn depends indirectly on
tiff (via gd library).
Signed-off-by: Christian Eggers <ceggers@arri.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Joshua Watt [Tue, 2 Jun 2020 13:42:05 +0000 (08:42 -0500)]
wic: Add --offset argument for partitions
Add support for an --offset argument when defining a partition. Many
SoCs require that boot partitions be located at specific offsets. Prior
to this argument, most WKS files were using the --align attribute to
specify the location of these fixed partitions but this is not ideal
because in the event that the partition couldn't be placed in the
specified location, wic would move it to the next sector with that
alignment, often preventing the device from booting. Unlike the --align
argument, wic will fail if a partition cannot be placed at the exact
offset specified with --offset.
Changes in V2:
* Fixed a small typo that prevented test_fixed_size_error from passing
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Hongxu Jia [Wed, 3 Jun 2020 06:55:31 +0000 (14:55 +0800)]
rpm: fix rpm -Kv xxx.rpm failed if signature header is larger than 64KB
Since commits [Place file signatures into the signature header where they
belong][1] applied, run `rpm -Kv **.rpm' failed if signature header
is larger than 64KB. Here are steps:
1) A unsigned rpm package, the size is 227560 bytes
$ ls -al xz-src-5.2.5-r0.corei7_64.rpm
-rw-------. 1 mockbuild 1000 227560 Jun 3 09:59
2) Sign the rpm package
$ rpmsign --addsign ... xz-src-5.2.5-r0.corei7_64.rpm
3) The size of signed rpm is 312208 bytes
$ ls -al xz-src-5.2.5-r0.corei7_64.rpm
-rw-------. 1 mockbuild 1000 312208 Jun 3 09:48
4) Run `rpm -Kv' failed with signature hdr data out of range
$ rpm -Kv xz-src-5.2.5-r0.corei7_64.rpm
xz-src-5.2.5-r0.corei7_64.rpm:
error: xz-src-5.2.5-r0.corei7_64.rpm: signature hdr data: BAD, no. of
bytes(88864) out of range
>From 1) and 3), the size of signed rpm package increased
312208 - 227560 = 84648, so the check of dl_max (64KB,65536)
is not enough.
As [1] said:
This also means the signature header can be MUCH bigger than ever
before,so bump up the limit (to 64MB, arbitrary something for now)