]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
4 years agoinetutils: Fix build with -fno-common
Khem Raj [Wed, 5 Aug 2020 17:50:08 +0000 (10:50 -0700)]
inetutils: Fix build with -fno-common

Fixes errors like

telnetd/state.c:69: multiple definition of `not42'; utility.o:/usr/src/debug/inetutils/1.9.4-r0/build/telnetd/../../inetutils-1.9.4/telnetd/utility.c:66: first defined here
| clang-11: error: linker command failed with exit code 1 (use -v to see invocation)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agokernel-devicetree: Fix intermittent build failures caused by DTB builds
Tyler Hicks [Wed, 5 Aug 2020 16:56:12 +0000 (11:56 -0500)]
kernel-devicetree: Fix intermittent build failures caused by DTB builds

Fix a build-time race condition that resulted in intermittent build
failures in the do_assemble_fitimage task. The race condition involved
the do_assemble_fitimage task reading the vmlinux file while the
do_compile_kernelmodules task was re-writing the vmlinux file.

This can be seen with an aarch64 image build that uses a 5.4 based
kernel and sets KERNEL_DEVICETREE. The problem is that the do_compile
snippet that the kernel-devicetree class appends did not specify the
full kernel build environment when building the DTB(s) from the kernel
tree. This resulted in CONFIG_CC_CAN_LINK=y being removed from the
kernel config file just before the do_compile task completed. The
CONFIG_CC_CAN_LINK=y line was then re-inserted into the kernel config
file as part of the do_compile_kernelmodules task.

In some cases, this resulted in the do_compile_kernelmodules task to
re-link vmlinux which sometimes occured at the same time that the
do_assemble_fitimage task was attempting to use vmlinux. The
do_assemble_fitimage task would fail with the following error message:

 aarch64-poky-linux-objcopy:vmlinux: file format not recognized

We can use the pine-a64-lts machine, from the meta-pine64 layer, to show
that the kernel config file was changed between do_compile and
do_compile_kernelmodules:

 $ C=tmp/work/pine_a64_lts-poky-linux/linux-pine64/5.7+gitAUTOINC+ae03bade3b-r0/linux-pine_a64_lts-standard-build/.config
 $ bitbake -c do_kernel_configcheck virtual/kernel
 ...
 $ md5sum $C; grep CC_CAN_LINK $C
 32b133cf8a749a91f698a7ca8616c84f  ...
 CONFIG_CC_CAN_LINK=y

 $ bitbake -c do_compile virtual/kernel
 ...
 $ md5sum $C; grep CC_CAN_LINK $C
 2fd2ec2a66eecc329dcb5afaf005eada  ...

 $ bitbake -c do_compile_kernelmodules virtual/kernel
 ...
 $ md5sum $C; grep CC_CAN_LINK $C
 32b133cf8a749a91f698a7ca8616c84f  ...
 CONFIG_CC_CAN_LINK=y

With this change, the do_compile snippet appended by the
kernel-devicetree class does not modify the kernel config. The kernel
config is unchanged across the do_compile and do_compile_kernelmodules
tasks and do_compile_kernelmodules will not attempt to re-link vmlinux.

Signed-off-by: Tyler Hicks <tyhicks@linux.microsoft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agodhcp: Use -fcommon compiler option
Khem Raj [Wed, 5 Aug 2020 06:14:49 +0000 (23:14 -0700)]
dhcp: Use -fcommon compiler option

This ensures -fcommon is still used when compiler defaults to
-fno-common in gcc10 and clang11

Fixes
dhcp-4.4.2/server/mdb.c:70: multiple definition of `dhcp_type_host'; dhcpd-omapi.o:/usr/src/debug/dhcp/4.4.2-r0/dhcp-4.4.2/server/omapi.c:50: first defined here

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolibunwind: Backport a fix for -fno-common option to compile
Khem Raj [Wed, 5 Aug 2020 16:52:15 +0000 (09:52 -0700)]
libunwind: Backport a fix for -fno-common option to compile

defaults for gcc is to use -fno-common this ensures that it keeps
building with gcc -fno-common

Fixes
src/arm/Ginit.c:60: multiple definition of `_U_dyn_info_list'; mi/.libs/dyn-info-list.o:/usr/src/debug/libunwind/1.4.0-r0/build/src/../../libunwind-1.4.0/src/mi/dyn-info-list.c:28: first defined here

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolinux-yocto/5.4: update to v5.4.54
Bruce Ashfield [Wed, 5 Aug 2020 12:47:36 +0000 (08:47 -0400)]
linux-yocto/5.4: update to v5.4.54

Updating linux-yocto/5.4 to the latest korg -stable release that comprises
the following commits:

    58a12e3368db Linux 5.4.54
    c15d59b94511 ath9k: Fix regression with Atheros 9271
    e6eb815beccc ath9k: Fix general protection fault in ath9k_hif_usb_rx_cb
    6d4448ca54bc dm integrity: fix integrity recalculation that is improperly skipped
    2ca71b807383 ASoC: topology: fix tlvs in error handling for widget_dmixer
    a4fd00dd8299 ASoC: topology: fix kernel oops on route addition error
    e60e53e685d9 ASoC: qcom: Drop HAS_DMA dependency to fix link failure
    8f64dc9e1d49 ASoC: rt5670: Add new gpio1_is_ext_spk_en quirk and enable it on the Lenovo Miix 2 10
    697bd3e4aa4b x86, vmlinux.lds: Page-align end of ..page_aligned sections
    c89af82f64a0 parisc: Add atomic64_set_release() define to avoid CPU soft lockups
    d1bab3cf71dd drm/amd/powerplay: fix a crash when overclocking Vega M
    33ab3f2dc444 drm/amdgpu: Fix NULL dereference in dpm sysfs handlers
    c3de96686db9 mmc: sdhci-of-aspeed: Fix clock divider calculation
    615f44e04792 io-mapping: indicate mapping failure
    40c5836b4a48 khugepaged: fix null-pointer dereference due to race
    95750e1edbcd mm: memcg/slab: fix memory leak at non-root kmem_cache destroy
    db949f60d983 mm/memcg: fix refcount error while moving and swapping
    549bfc142706 mm/mmap.c: close race between munmap() and expand_upwards()/downwards()
    5835e6d5988f Makefile: Fix GCC_TOOLCHAIN_DIR prefix for Clang cross compilation
    23e8b741c8a1 vt: Reject zero-sized screen buffer size.
    028b478f2231 fbdev: Detect integer underflow at "struct fbcon_ops"->clear_margins.
    bf331efc8ea4 /dev/mem: Add missing memory barriers for devmem_inode
    3c52751df236 serial: 8250_mtk: Fix high-speed baud rates clamping
    af811869db06 serial: 8250: fix null-ptr-deref in serial8250_start_tx()
    fb8d832978bb serial: tegra: fix CREAD handling for PIO
    c76a1dacc28d staging: comedi: addi_apci_1564: check INSN_CONFIG_DIGITAL_TRIG shift
    178a09b0fb0d staging: comedi: addi_apci_1500: check INSN_CONFIG_DIGITAL_TRIG shift
    7ee8d78bc12b staging: comedi: ni_6527: fix INSN_CONFIG_DIGITAL_TRIG support
    747558b1c737 staging: comedi: addi_apci_1032: check INSN_CONFIG_DIGITAL_TRIG shift
    c9afe420c53a staging: wlan-ng: properly check endpoint types
    a44c859323c2 tty: xilinx_uartps: Really fix id assignment
    f32718cfa5db iwlwifi: mvm: don't call iwl_mvm_free_inactive_queue() under RCU
    3e84602475f7 Revert "cifs: Fix the target file was deleted when rename failed."
    86894c3797ed usb: xhci: Fix ASM2142/ASM3142 DMA addressing
    1d91547f2fc8 usb: xhci-mtk: fix the failure of bandwidth allocation
    93f1e16af4a5 binder: Don't use mmput() from shrinker function.
    35728cac176a RISC-V: Upgrade smp_mb__after_spinlock() to iorw,iorw
    5345ede4acde drivers/perf: Prevent forced unbinding of PMU drivers
    0821295b23cc asm-generic/mmiowb: Allow mmiowb_set_pending() when preemptible()
    90e78ec7d725 x86: math-emu: Fix up 'cmp' insn for clang ias
    679fe09188c1 arm64: Use test_tsk_thread_flag() for checking TIF_SINGLESTEP
    7fc7942f52cf drivers/perf: Fix kernel panic when rmmod PMU modules during perf sampling
    347f735ca82b ALSA: hda/realtek - fixup for yet another Intel reference board
    30a17b51d80d hwmon: (scmi) Fix potential buffer overflow in scmi_hwmon_probe()
    76361edb5559 platform/x86: asus-wmi: allow BAT1 battery name
    41a7fdf90ce2 platform/x86: ISST: Add new PCI device ids
    ace6e8b448b9 hwmon: (nct6775) Accept PECI Calibration as temperature source for NCT6798D
    6627a265c598 drm/amdgpu: fix preemption unit test
    ffb5604d2043 drm/amdgpu/gfx10: fix race condition for kiq
    c04a48251314 hwmon: (adm1275) Make sure we are reading enough data for different chips
    a2a380bd4575 usb: cdns3: trace: fix some endian issues
    103a90ad4e64 usb: cdns3: ep0: fix some endian issues
    89fe6eba178d usb: gadget: udc: gr_udc: fix memleak on error handling path in gr_ep_init()
    74ec2cc5bfff usb: dwc3: pci: add support for the Intel Jasper Lake
    c4c6363b8e68 usb: dwc3: pci: add support for the Intel Tiger Lake PCH -H variant
    4f5eb2735fa3 Input: elan_i2c - only increment wakeup count on touch
    186d3fe73e27 Input: synaptics - enable InterTouch for ThinkPad X1E 1st gen
    460c0dafea92 dmaengine: ioat setting ioat timeout as module parameter
    493aed3263ca dmaengine: fsl-edma: fix wrong tcd endianness for big-endian cpu
    6a3015ae35f5 hwmon: (aspeed-pwm-tacho) Avoid possible buffer overflow
    01d7bd8903d8 regmap: dev_get_regmap_match(): fix string comparison
    bbc0b6e18405 spi: mediatek: use correct SPI_CFG2_REG MACRO
    126a0ab6b83b ARM: dts: n900: remove mmc1 card detect gpio
    80fed4024c39 Input: add `SW_MACHINE_COVER`
    db886ec71fe4 dmaengine: tegra210-adma: Fix runtime PM imbalance on error
    5cbe437d5968 HID: apple: Disable Fn-key key-re-mapping on clone keyboards
    2c179ece3bfb HID: steam: fixes race in handling device list.
    5d273c566f7b HID: alps: support devices with report id 2
    08696a4ac9f6 HID: i2c-hid: add Mediacom FlexBook edge13 to descriptor override
    9ab9cfcc2d8f scripts/gdb: fix lx-symbols 'gdb.error' while loading modules
    22508bc315eb scripts/decode_stacktrace: strip basepath from all paths
    1e63d569fd2d serial: exar: Fix GPIO configuration for Sealevel cards based on XR17V35X
    a86abef1558a geneve: fix an uninitialized value in geneve_changelink()
    89b4f204ba43 bonding: check return value of register_netdevice() in bond_newlink()
    93bb40b79e84 i2c: i2c-qcom-geni: Fix DMA transfer race
    58637b3027db i2c: rcar: always clear ICSAR to avoid side effects
    e8b86b4d87e3 enetc: Remove the mdio bus on PF probe bailout
    9f2c2928b939 nfsd4: fix NULL dereference in nfsd/clients display code
    a44625dc0bd3 Revert "PCI/PM: Assume ports without DLL Link Active train links in 100 ms"
    9e3e96aa9a2e net: ethernet: ave: Fix error returns in ave_init
    eb2c32de1ce6 ipvs: fix the connection sync failed in some cases
    592614918431 qed: suppress false-positives interrupt error messages on HW init
    641bd96bd0ac qed: suppress "don't support RoCE & iWARP" flooding on HW init
    8d416c038a91 netdevsim: fix unbalaced locking in nsim_create()
    99a5e865cbe4 net: dsa: microchip: call phy_remove_link_mode during probe
    4997b311c01e net: hns3: fix error handling for desc filling
    107ea66643bd net: ag71xx: add missed clk_disable_unprepare in error path of probe
    34e93385c416 ionic: fix up filter locks and debug msgs
    42f5c49f7bbb ionic: use offset for ethtool regs data
    eac87543368c mlxsw: destroy workqueue when trap_register in mlxsw_emad_init
    9b52f23ad648 bonding: check error value of register_netdevice() immediately
    d11a27411c65 net: smc91x: Fix possible memory leak in smc_drv_probe()
    a2cdb4ebd84e drm: sun4i: hdmi: Fix inverted HPD result
    988e5d2179e4 ieee802154: fix one possible memleak in adf7242_probe
    7bf93c95a9b9 net: dp83640: fix SIOCSHWTSTAMP to update the struct with actual configuration
    e2e31a0bf7a1 ASoC: Intel: bytcht_es8316: Add missed put_device()
    613e7c52aaaa RDMA/mlx5: Use xa_lock_irq when access to SRQ table
    d0d394c71604 ax88172a: fix ax88172a_unbind() failures
    ad49d766612e vsock/virtio: annotate 'the_virtio_vsock' RCU pointer
    f826efa1c381 hippi: Fix a size used in a 'pci_free_consistent()' in an error handling path
    570b1c92cb48 fpga: dfl: fix bug in port reset handshake
    c73188295841 fpga: dfl: pci: reduce the scope of variable 'ret'
    57393e695a10 bnxt_en: Fix completion ring sizing with TPA enabled.
    9cc322773b20 bnxt_en: Fix race when modifying pause settings.
    38a66f3cdab4 btrfs: fix page leaks after failure to lock page for delalloc
    b04805a7e8a5 btrfs: fix mount failure caused by race with umount
    e333df0e4ac6 btrfs: fix double free on ulist after backref resolution failure
    f668e822950d ASoC: rt5670: Correct RT5670_LDO_SEL_MASK
    0f87dabe4415 ALSA: info: Drop WARN_ON() from buffer NULL sanity check
    aad343d571ae ALSA: hda/realtek: Fixed ALC298 sound bug by adding quirk for Samsung Notebook Pen S
    ee2f6a6b39be uprobes: Change handle_swbp() to send SIGTRAP with si_code=SI_KERNEL, to fix GDB regression
    ee08663380ff btrfs: reloc: clear DEAD_RELOC_TREE bit for orphan roots to prevent runaway balance
    044ca910276b btrfs: reloc: fix reloc root leak and NULL pointer dereference
    cb1225707041 SUNRPC reverting d03727b248d0 ("NFSv4 fix CLOSE not waiting for direct IO compeletion")
    02140e85d8e4 drm/amd/display: Check DMCU Exists Before Loading
    722c6e954c90 dmabuf: use spinlock to access dmabuf->name
    44838b956304 ARM: dts: imx6qdl-gw551x: fix audio SSI
    593221ce16af ARM: dts: imx6qdl-gw551x: Do not use 'simple-audio-card,dai-link'
    36f735554572 irqdomain/treewide: Keep firmware node unconditionally allocated
    8676732c3337 fuse: fix weird page warning
    96002e7485be drivers/firmware/psci: Fix memory leakage in alloc_init_cpu_groups()
    d0e40e510aa7 dm: use bio_uninit instead of bio_disassociate_blkg
    0ff9fce4abee scsi: dh: Add Fujitsu device to devinfo and dh lists
    3959567d870d scsi: mpt3sas: Fix error returns in BRM_status_show
    0c1337e94a54 drm/nouveau/i2c/g94-: increase NV_PMGR_DP_AUXCTL_TRANSACTREQ timeout
    fb50c5cf2105 net: sky2: initialize return of gm_phy_read
    b4397143da53 ALSA: hda/hdmi: fix failures at PCM open on Intel ICL and later
    e50116e51281 drivers/net/wan/lapbether: Fixed the value of hard_header_len
    0eced7636001 scsi: mpt3sas: Fix unlock imbalance
    0edfdefc0a9c xtensa: update *pos in cpuinfo_op.next
    df5b65f5df3e xtensa: fix __sync_fetch_and_{and,or}_4 declarations
    806ffec1a93a scsi: scsi_transport_spi: Fix function pointer check
    65c835ebe2cd mac80211: allow rx of mesh eapol frames with default rx key
    f55550d566e4 pinctrl: amd: fix npins for uart0 in kerncz_groups
    de0d953ee787 gpio: arizona: put pm_runtime in case of failure
    52083907ebfa gpio: arizona: handle pm_runtime_get_sync failure case
    4f80cb2c787f soc: qcom: rpmh: Dirt can only make you dirtier, not cleaner

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agokernel/yocto: allow dangling KERNEL_FEATURES
Bruce Ashfield [Mon, 3 Aug 2020 12:30:27 +0000 (08:30 -0400)]
kernel/yocto: allow dangling KERNEL_FEATURES

KERNEL_FEATURES are explicitly checked by the kern-tools, and trigger
and error when not present. This is since the KERNEL_FEATURES are
specified by layers or BSPs as elements that are requied for correct
operation.

That being said, in order to support more kernel recipes that are using
fragments, but not necessarily the yocto kernel-cache for meta-data,
this change introduces: KERNEL_DANGLING_FEATURES_WARN_ONLY

As you'd expect, when set, missing kernel features only print a
message and warn that runtime issues may occur, but otherwise allow
the kernel configuration and build process to continue.

This was noticed/required when meta-virtualization adopted a more
generic kernel bbappend (to serve the needs of more layers in the
ecosystem), but also specifies some KERNEL_FEATURES. If layers using
a recipe derived from kernel-yocto, but not the main kernel-cache,
used meta-virtualization and error would be thrown due to missing
features. We now can both allow them to continue, and also provide
a more useful message to resolve the issue.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolinux-yocto/5.4: fix perf build with binutils 2.35
Bruce Ashfield [Mon, 3 Aug 2020 12:30:26 +0000 (08:30 -0400)]
linux-yocto/5.4: fix perf build with binutils 2.35

Integrating the following commit(s) to linux-yocto/5.4:

    1fe4ee7f680c libtraceevent: Fix build with binutils 2.35

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolinux-yocto/5.4: update to v5.4.53
Bruce Ashfield [Mon, 3 Aug 2020 12:30:25 +0000 (08:30 -0400)]
linux-yocto/5.4: update to v5.4.53

Updating linux-yocto/5.4 to the latest korg -stable release that comprises
the following commits:

    d811d29517d1 Linux 5.4.53
    e6c19fa5b6c6 gpio: pca953x: disable regmap locking for automatic address incrementing
    411c80267541 drm/i915/gvt: Fix two CFL MMIO handling caused by regression.
    517708c47c66 iommu/vt-d: Make Intel SVM code 64-bit only
    41389f739a5e ionic: export features for vlans to use
    5d7e2852d7e6 spi: sprd: switch the sequence of setting WDG_LOAD_LOW and _HIGH
    1245a1e0e1c3 rxrpc: Fix trace string
    07253d24cda3 libceph: don't omit recovery_deletes in target_copy()
    d2ccad3c9ce9 block: fix get_max_segment_size() overflow on 32bit arch
    310d75f274d5 block: fix splitting segments on boundary masks
    f2e57ed2f3f8 drm/i915/gt: Ignore irq enabling on the virtual engines
    64a17e1da02a drm/amdgpu/sdma5: fix wptr overwritten in ->get_wptr()
    9f8d3d2f79ba genirq/affinity: Handle affinity setting on inactive interrupts correctly
    6aae92ed2c42 sched/fair: handle case of task_h_load() returning 0
    b5b774918816 sched: Fix unreliable rseq cpu_id for new tasks
    5c2450ac7c7a arm64: compat: Ensure upper 32 bits of x0 are zero on syscall return
    ed766e740cc9 arm64: ptrace: Consistently use pseudo-singlestep exceptions
    bdb71132992b arm64: ptrace: Override SPSR.SS when single-stepping is enabled
    d3b7bacd1115 thermal/drivers/cpufreq_cooling: Fix wrong frequency converted from power
    025cec59aa17 thermal: int3403_thermal: Downgrade error message
    0ab6b541c6f8 misc: atmel-ssc: lock with mutex instead of spinlock
    746930d17d14 dmaengine: fsl-edma-common: correct DSIZE_32BYTE
    5f3fcbf5b57f dmaengine: mcf-edma: Fix NULL pointer exception in mcf_edma_tx_handler
    9464956544be dmaengine: fsl-edma: Fix NULL pointer exception in fsl_edma_tx_handler
    8fd0d8536805 intel_th: Fix a NULL dereference when hub driver is not loaded
    55d7092cc8f5 intel_th: pci: Add Emmitsburg PCH support
    905f20f4946a intel_th: pci: Add Tiger Lake PCH-H support
    5c698cc5b6f4 intel_th: pci: Add Jasper Lake CPU support
    c5ce2060f487 powerpc/pseries/svm: Fix incorrect check for shared_lppaca_size
    93d1e96b98b2 powerpc/book3s64/pkeys: Fix pkey_access_permitted() for execute disable pkey
    d6a76f8eee21 hwmon: (emc2103) fix unable to change fan pwm1_enable attribute
    9125d5762590 riscv: use 16KB kernel stack on 64-bit
    c28501385945 timer: Fix wheel index calculation on last level
    6c2388e2a12b timer: Prevent base->clk from moving backward
    e9506de7b305 scsi: megaraid_sas: Remove undefined ENABLE_IRQ_POLL macro
    acd3901a62f6 uio_pdrv_genirq: fix use without device tree and no interrupt
    17268122ba5e uio_pdrv_genirq: Remove warning when irq is not specified
    97f1aecb80e9 Input: elan_i2c - add more hardware ID for Lenovo laptops
    1fb81fe5e180 Input: i8042 - add Lenovo XiaoXin Air 12 to i8042 nomux list
    62dd03054918 mei: bus: don't clean driver pointer
    72648019cd52 Revert "zram: convert remaining CLASS_ATTR() to CLASS_ATTR_RO()"
    4dd2ad686704 fuse: Fix parameter for FS_IOC_{GET,SET}FLAGS
    e8f32a9f5aeb fuse: use ->reconfigure() instead of ->remount_fs()
    f96ce4be463a fuse: ignore 'data' argument of mount(..., MS_REMOUNT)
    09b696bd2149 ovl: fix unneeded call to ovl_change_flags()
    93f75b0f0d3b ovl: relax WARN_ON() when decoding lower directory file handle
    6270654c7de9 ovl: inode reference leak in ovl_is_inuse true case.
    4996065307c8 ovl: fix regression with re-formatted lower squashfs
    2cd065b91681 serial: mxs-auart: add missed iounmap() in probe failure and remove
    752641ba871a virtio: virtio_console: add missing MODULE_DEVICE_TABLE() for rproc serial
    8f4c040f45b9 Revert "tty: xilinx_uartps: Fix missing id assignment to the console"
    1bc2c30d861c virt: vbox: Fix guest capabilities mask check
    78d85ca8300e virt: vbox: Fix VBGL_IOCTL_VMMDEV_REQUEST_BIG and _LOG req numbers to match upstream
    cc894ec456c1 USB: serial: option: add Quectel EG95 LTE modem
    4eaf06c9bd35 USB: serial: option: add GosunCn GM500 series
    dcc1df3cdb04 USB: serial: ch341: add new Product ID for CH340
    dff0a4f024fc USB: serial: cypress_m8: enable Simply Automated UPB PIM
    18059e953e1f USB: serial: iuu_phoenix: fix memory corruption
    72596d0b2acd usb: gadget: function: fix missing spinlock in f_uac1_legacy
    01512075a387 usb: chipidea: core: add wakeup support for extcon
    3dd890afedbf usb: dwc2: Fix shutdown callback in platform
    4f0addeba0c0 USB: c67x00: fix use after free in c67x00_giveback_urb
    bd422c7fb477 ALSA: hda/realtek - Enable Speaker for ASUS UX563
    63d318f05e67 ALSA: hda/realtek - Enable Speaker for ASUS UX533 and UX534
    e7bafe0c94cc ALSA: hda/realtek: Enable headset mic of Acer TravelMate B311R-31 with ALC256
    4181b271908a ALSA: hda/realtek: enable headset mic of ASUS ROG Zephyrus G14(G401) series with ALC289
    246b9693026a ALSA: hda/realtek - change to suitable link model for ASUS platform
    71319db6f3b1 ALSA: usb-audio: Fix race against the error recovery URB submission
    25fd7ee3baeb ALSA: line6: Sync the pending work cancel at disconnection
    91a6d4049c58 ALSA: line6: Perform sanity check for each URB creation
    212425802dc6 HID: quirks: Ignore Simply Automated UPB PIM
    c0188ab5bc31 HID: quirks: Always poll Obins Anne Pro 2 keyboard
    e93ab4628452 HID: magicmouse: do not set up autorepeat
    bc94605df1f9 HID: logitech-hidpp: avoid repeated "multiplier = " log messages
    7c4e6cfd922c slimbus: core: Fix mismatch in of_node_get/put
    93b57bf835d2 clk: qcom: gcc: Add missing UFS clocks for SM8150
    cb7b7928310f clk: qcom: gcc: Add GPU and NPU clocks for SM8150
    cc490ea23f33 mtd: rawnand: oxnas: Release all devices in the _remove() path
    f8a2658d0fd7 mtd: rawnand: oxnas: Unregister all devices on error
    4682749ce329 mtd: rawnand: oxnas: Keep track of registered devices
    8463054e3d4e mtd: rawnand: brcmnand: fix CS0 layout
    ee73c81e386d mtd: rawnand: brcmnand: correctly verify erased pages
    e9f5e16f3228 mtd: rawnand: timings: Fix default tR_max and tCCS_min timings
    f1ad0fc9de60 mtd: rawnand: marvell: Fix probe error path
    be953ad71ce9 mtd: rawnand: marvell: Use nand_cleanup() when the device is not yet registered
    5f59ce425f78 mtd: rawnand: marvell: Fix the condition on a return code
    eec70178983f RDMA/mlx5: Verify that QP is created with RQ or SQ
    6b1aaceb0dab soc: qcom: rpmh-rsc: Allow using free WAKE TCS for active request
    e65ee5ad8903 soc: qcom: rpmh-rsc: Clear active mode configuration for wake TCS
    9e56b18ca5a3 soc: qcom: rpmh: Invalidate SLEEP and WAKE TCSes before flushing new data
    9edb7370f893 soc: qcom: rpmh: Update dirty flag only when data changes
    033f56f7d3d6 perf stat: Zero all the 'ena' and 'run' array slot stats for interval mode
    c2e29cac6d89 PCI/PM: Call .bridge_d3() hook only if non-NULL
    d950d2e79f0f habanalabs: Align protection bits configuration of all TPCs
    d79e57db4544 apparmor: ensure that dfa state tables have entries
    b7d9b78ab901 soc: qcom: socinfo: add missing soc_id sysfs entry
    8eeebe37c64e arm: dts: mt7623: add phy-mode property for gmac2
    742b79562142 copy_xstate_to_kernel: Fix typo which caused GDB regression
    319c3c7980c7 regmap: debugfs: Don't sleep while atomic for fast_io regmaps
    f62d7f91afa2 keys: asymmetric: fix error return code in software_key_query()
    c5acd9395d41 arm64: dts: spcfpga: Align GIC, NAND and UART nodenames with dtschema
    2e224b5d3149 ARM: dts: socfpga: Align L2 cache-controller nodename with dtschema
    c8a4452da9f4 xprtrdma: fix incorrect header size calculations
    a75a8aabb2f4 Revert "thermal: mediatek: fix register index error"
    cc3188b3bab2 ARM: dts: Fix dcan driver probe failed on am437x platform
    408ef501b894 fuse: don't ignore errors from fuse_writepages_fill()
    9b810684b1da NFS: Fix interrupted slots by sending a solo SEQUENCE operation
    dc92d84b371f clk: AST2600: Add mux for EMMC clock
    0392f18139aa clk: mvebu: ARMADA_AP_CPU_CLK needs to select ARMADA_AP_CP_HELPER
    36e6ac265fc0 staging: comedi: verify array index is correct before using it
    62013d49bcf6 usb: gadget: udc: atmel: fix uninitialized read in debug printk
    e435865c783f spi: spi-sun6i: sun6i_spi_transfer_one(): fix setting of clock rate
    f979982feb03 dmaengine: dmatest: stop completed threads when running without set channel
    e6b46f01d995 dmaengine: dw: Initialize channel before each transfer
    a6fe5dde5343 iio: adc: ad7780: Fix a resource handling path in 'ad7780_probe()'
    28be430bbf13 bus: ti-sysc: Do not disable on suspend for no-idle
    47ba42786d14 bus: ti-sysc: Fix sleeping function called from invalid context for RTC quirk
    5a23897f7a41 bus: ti-sysc: Fix wakeirq sleeping function called from invalid context
    b2c7d6ce2d5e arm64: dts: meson-gxl-s805x: reduce initial Mali450 core frequency
    cbd8c92a8d51 arm64: dts: meson: add missing gxl rng clock
    1d08f59081e5 phy: sun4i-usb: fix dereference of pointer phy0 before it is null checked
    684a5568df11 dmaengine: sh: usb-dmac: set tx_result parameters
    f5c6ebd5146e soundwire: intel: fix memory leak with devm_kasprintf
    7005a4885a29 iio:health:afe4404 Fix timestamp alignment and prevent data leak.
    ba3788d243cf ALSA: usb-audio: Add registration quirk for Kingston HyperX Cloud Flight S
    1510d8ab7bc9 bus: ti-sysc: Use optional clocks on for enable and wait for softreset bit
    7637bba4c621 ACPI: video: Use native backlight on Acer TravelMate 5735Z
    0a330aa202c9 Input: mms114 - add extra compatible for mms345l
    75ff2767e85c ALSA: usb-audio: Add quirk for Focusrite Scarlett 2i2
    695fcb612bf1 ALSA: usb-audio: Add registration quirk for Kingston HyperX Cloud Alpha S
    18f2cbb28730 ACPI: video: Use native backlight on Acer Aspire 5783z
    dc1e4db658a6 ALSA: usb-audio: Rewrite registration quirk handling
    592b179fa149 mmc: sdhci: do not enable card detect interrupt for gpio cd type
    e60b02922876 doc: dt: bindings: usb: dwc3: Update entries for disabling SS instances in park mode
    54100aa32f66 ALSA: usb-audio: Create a registration quirk for Kingston HyperX Amp (0951:16d8)
    35aef79e81a1 Input: goodix - fix touch coordinates on Cube I15-TC
    9c16b5e8b5d9 ALSA: usb-audio: Add support for MOTU MicroBook IIc
    d70a6425a6e2 bus: ti-sysc: Detect EDMA and set quirk flags for tptc
    d09e12709acd arm64: dts: g12-common: add parkmode_disable_ss_quirk on DWC3 controller
    234021eaddcb bus: ti-sysc: Detect display subsystem related devices
    e7e98dd42aae bus: ti-sysc: Handle module unlock quirk needed for some RTC
    e2c37939a795 bus: ti-sysc: Consider non-existing registers too when matching quirks
    f7280837df83 bus: ti-sysc: Rename clk related quirks to pre_reset and post_reset quirks
    69fbdbb4fa0c scsi: sr: remove references to BLK_DEV_SR_VENDOR, leave it enabled
    23a609417361 drm/sun4i: tcon: Separate quirks for tcon0 and tcon1 on A20
    de6d9aa5f7c1 ARM: at91: pm: add quirk for sam9x60's ulp1
    4301497fdc68 HID: quirks: Remove ITE 8595 entry from hid_have_special_driver
    1c96af59a904 mmc: mmci: Support any block sizes for ux500v2 and qcom variant
    cf911ee9f49d ARM: OMAP2+: use separate IOMMU pdata to fix DRA7 IPU1 boot
    3ea583b09537 ARM: OMAP2+: Add workaround for DRA7 DSP MStandby errata i879
    8d158e3453eb ARM: OMAP4+: remove pdata quirks for omap4+ iommus
    370cc95c00ae net: sfp: add some quirks for GPON modules
    17918c99abc1 net: sfp: add support for module quirks
    11a6ff1df31e Revert "usb/xhci-plat: Set PM runtime as active on resume"
    4cf55dcd4fa4 Revert "usb/ehci-platform: Set PM runtime as active on resume"
    add6b48ad376 Revert "usb/ohci-platform: Fix a warning when hibernating"
    267516d7009e net: ethernet: mvneta: Add back interface mode validation
    beee39d71e87 net: ethernet: mvneta: Do not error out in non serdes modes
    131ab7a0cdb8 net: macb: call pm_runtime_put_sync on failure path
    fefc7580af39 of: of_mdio: Correct loop scanning logic
    3f2f3edcc075 net: dsa: bcm_sf2: Fix node reference count
    cb2801017057 spi: spi-fsl-dspi: Fix lockup if device is shutdown during SPI transfer
    baf22f66c9cf iio:health:afe4403 Fix timestamp alignment and prevent data leak.
    5f8fe8ab4463 iio:pressure:ms5611 Fix buffer element alignment
    5a6378911f22 iio:humidity:hts221 Fix alignment and data leak issues
    74953efffb3d iio: pressure: zpa2326: handle pm_runtime_get_sync failure
    4ecff6ee264f iio: mma8452: Add missed iio_device_unregister() call in mma8452_probe()
    b4172e024d48 iio: core: add missing IIO_MOD_H2/ETHANOL string identifiers
    ead750685280 iio: magnetometer: ak8974: Fix runtime PM imbalance on error
    0b16921edc61 iio:humidity:hdc100x Fix alignment and data leak issues
    7cc8cad2bef9 iio:magnetometer:ak8974: Fix alignment and data leak issues
    4c7924060fe0 arm64/alternatives: don't patch up internal branches
    77a181fba1e5 i2c: eg20t: Load module automatically if ID matches
    27874115b059 gfs2: read-only mounts should grab the sd_freeze_gl glock
    827139ad9db5 tpm_tis: extra chip->ops check on error path in tpm_tis_core_init
    a8f13826f9c6 arm64/alternatives: use subsections for replacement sequences
    91e81d2262e7 cifs: prevent truncation from long to int in wait_for_free_credits
    43046f786714 dt-bindings: mailbox: zynqmp_ipi: fix unit address
    ea9d6016b1a4 m68k: mm: fix node memblock init
    560dbf34dec8 m68k: nommu: register start of the memory with memblock
    c3adbd37c054 blk-mq-debugfs: update blk_queue_flag_name[] accordingly for new flags
    9025a5589c03 thermal/drivers: imx: Fix missing of_node_put() at probe time
    c4db485dd3f2 x86/fpu: Reset MXCSR to default in kernel_fpu_begin()
    d2bfb9eb439c drm/exynos: fix ref count leak in mic_pre_enable
    f886b67c6b28 drm/exynos: Properly propagate return value in drm_iommu_attach_device()
    0885be75f1be drm/msm/dpu: allow initialization of encoder locks during encoder init
    5d6891a5a627 drm/msm: fix potential memleak in error branch
    f608a77e0cc9 arm64: arch_timer: Disable the compat vdso for cores affected by ARM64_WORKAROUND_1418040
    86e3c7c70c63 arm64: arch_timer: Allow an workaround descriptor to disable compat vdso
    71d65a3fc628 arm64: Introduce a way to disable the 32bit vdso
    36d60eba862d ip: Fix SO_MARK in RST, ACK and ICMP packets
    38b122c0af04 cgroup: Fix sock_cgroup_data on big-endian.
    94886c86e833 cgroup: fix cgroup_sk_alloc() for sk_clone_lock()
    171644727abf tcp: md5: allow changing MD5 keys in all socket states
    8ee263bd11af tcp: md5: refine tcp_md5_do_add()/tcp_md5_hash_key() barriers
    30d015f5ecd9 vlan: consolidate VLAN parsing code and limit max parsing depth
    f40c3a8438fc tcp: md5: do not send silly options in SYNCOOKIES
    1c8bad567b5d tcp: md5: add missing memory barriers in tcp_md5_do_add()/tcp_md5_hash_key()
    f52293aefe18 tcp: make sure listeners don't initialize congestion-control state
    7eec9f331223 tcp: fix SO_RCVLOWAT possible hangs under high mem pressure
    9b7fd81cf9b6 sched: consistently handle layer3 header accesses in the presence of VLANs
    aafe9dd13f42 net: usb: qmi_wwan: add support for Quectel EG95 LTE modem
    edbde451bf3f net_sched: fix a memory leak in atm_tc_init()
    d55dad8b1d89 net: dsa: microchip: set the correct number of ports
    64d782212646 net: Added pointer check for dst->ops->neigh_lookup in dst_neigh_lookup_skb
    a70a667736ed llc: make sure applications use ARPHRD_ETHER
    73e42f4d2d13 l2tp: remove skb_dst_set() from l2tp_xmit_skb()
    f8646548ee46 ipv6: Fix use of anycast address with loopback
    75270f819666 ipv6: fib6_select_path can not use out path for nexthop objects
    1418b60e998b ipv4: fill fl4_icmp_{type,code} in ping_v4_sendmsg
    7b42410d3556 genetlink: remove genl_bind
    aef7a9e21aa6 bridge: mcast: Fix MLD2 Report IPv6 payload length check
    587ccf092e28 net: rmnet: fix lower interface leak
    d06c17fcd7c0 net: atlantic: fix ip dst and ipv6 address filters
    de93c1c104ac crypto: atmel - Fix build error of CRYPTO_AUTHENC
    1f21bb70d7b1 crypto: atmel - Fix selection of CRYPTO_AUTHENC
    c57b1153a58a Linux 5.4.52
    1a70857590f7 s390/maccess: add no DAT mode to kernel_write
    627d15eecb61 s390: Change s390_kernel_write() return type to match memcpy()
    d64dc6118a0f pwm: jz4740: Fix build failure
    d13a78d13d2c perf scripts python: exported-sql-viewer.py: Fix unexpanded 'Find' result
    64e8b913c30b perf scripts python: exported-sql-viewer.py: Fix zero id in call tree 'Find' result
    2038998170b0 perf scripts python: exported-sql-viewer.py: Fix zero id in call graph 'Find' result
    e51a811c242e perf scripts python: export-to-postgresql.py: Fix struct.pack() int argument
    299ffecbd530 dm writecache: reject asynchronous pmem devices
    49a7ac29f6a0 blk-mq: consider non-idle request as "inflight" in blk_mq_rq_inflight()
    2dfd182451d9 s390/mm: fix huge pte soft dirty copying
    0d62bc7e960f s390/setup: init jump labels before command line parsing
    e6de7cbbcacb ARC: elf: use right ELF_ARCH
    854827a2697a ARC: entry: fix potential EFA clobber when TIF_SYSCALL_TRACE
    37634f502b53 mmc: meson-gx: limit segments to 1 when dram-access-quirk is needed
    b9fe45efa671 dm: use noio when sending kobject event
    ede24894e8bf drm/amdgpu: don't do soft recovery if gpu_recovery=0
    ef8164f03a86 drm/radeon: fix double free
    026f830e0ba3 btrfs: fix double put of block group with nocow
    808b2b3ea85a btrfs: fix fatal extent_buffer readahead vs releasepage race
    5a046d75acf7 Revert "ath9k: Fix general protection fault in ath9k_hif_usb_rx_cb"
    baef8d1027b0 bpf: Check correct cred for CAP_SYSLOG in bpf_dump_raw_ok()
    e5541c6347b7 kprobes: Do not expose probe addresses to non-CAP_SYSLOG
    314ac273f005 module: Do not expose section addresses to non-CAP_SYSLOG
    0d5d9413a692 module: Refactor section attr into bin attribute
    2a6c8d3d0dd0 kallsyms: Refactor kallsyms_show_value() to take cred
    79aaeec71271 KVM: arm64: Fix kvm_reset_vcpu() return code being incorrect with SVE
    a494529add3f KVM: x86: Mark CR4.TSD as being possibly owned by the guest
    d29a79fa7559 KVM: x86: Inject #GP if guest attempts to toggle CR4.LA57 in 64-bit mode
    3f108b168002 KVM: x86: bit 8 of non-leaf PDPEs is not reserved
    388429498641 KVM: arm64: Annotate hyp NMI-related functions as __always_inline
    b956ec9afc2e KVM: arm64: Stop clobbering x0 for HVC_SOFT_RESTART
    a20aa35b839a KVM: arm64: Fix definition of PAGE_HYP_DEVICE
    9b742b6a3b78 ALSA: hda/realtek: Enable headset mic of Acer Veriton N4660G with ALC269VC
    8254cddab9a4 ALSA: hda/realtek: Enable headset mic of Acer C20-820 with ALC269VC
    c6fbfa6dd96b ALSA: hda/realtek - Enable audio jacks of Acer vCopperbox with ALC269VC
    615313fe4294 ALSA: hda/realtek - Fix Lenovo Thinkpad X1 Carbon 7th quirk subdevice id
    92b598132eec ALSA: usb-audio: Add implicit feedback quirk for RTX6001
    caead988fe61 ALSA: usb-audio: add quirk for MacroSilicon MS2109
    02b2f10e5c9f ALSA: hda - let hs_mic be picked ahead of hp_mic
    3496a18a1c3b ALSA: opl3: fix infoleak in opl3
    4a215725dec7 IB/hfi1: Do not destroy link_wq when the device is shut down
    607fbc27d75f IB/hfi1: Do not destroy hfi1_wq when the device is shut down
    6a882fb7232d mlxsw: pci: Fix use-after-free in case of failed devlink reload
    c9dcb4929ce2 mlxsw: spectrum_router: Remove inappropriate usage of WARN_ON()
    f62f896a56a2 net: macb: fix call to pm_runtime in the suspend/resume functions
    ad396c483dd5 net: macb: mark device wake capable when "magic-packet" property present
    5d744ee94b49 net: macb: fix wakeup test in runtime suspend/resume routines
    15442ef56405 bnxt_en: fix NULL dereference in case SR-IOV configuration fails
    65fb9bbee611 net/mlx5e: Fix 50G per lane indication
    ce27893535ca net/mlx5: Fix eeprom support for SFP module
    f277e0be69d4 qed: Populate nvm-file attributes while reading nvm config partition.
    e89b828ae357 IB/mlx5: Fix 50G per lane indication
    97d6855ac57d cxgb4: fix all-mask IP address comparison
    2a4c5ff12f42 nbd: Fix memory leak in nbd_add_socket
    06cee3572ed5 arm64: kgdb: Fix single-step exception handling oops
    9e8f4623e292 RDMA/siw: Fix reporting vendor_part_id
    1c54d0d9c4e6 ALSA: compress: fix partial_drain completion state
    175b5aa7b964 net: hns3: fix use-after-free when doing self test
    ab8c4fd863f4 net: hns3: add a missing uninit debugfs when unload driver
    5c0192d28513 smsc95xx: avoid memory leak in smsc95xx_bind
    81ed1f9fd0b3 smsc95xx: check return value of smsc95xx_reset
    3959bf65fe48 perf intel-pt: Fix PEBS sample for XMM registers
    da4b6eff382b perf intel-pt: Fix recording PEBS-via-PT with registers
    9ca67a453273 perf report TUI: Fix segmentation fault in perf_evsel__hists_browse()
    2d15663304f5 netfilter: conntrack: refetch conntrack after nf_conntrack_update()
    d9b8206e5323 net: dsa: microchip: set the correct number of ports
    fd3a612d9828 IB/sa: Resolv use-after-free in ib_nl_make_request()
    b0259e7056b1 net: cxgb4: fix return error value in t4_prep_fw
    92002d59ecee net: mvneta: fix use of state->speed
    4f412ae89e78 netfilter: ipset: call ip_set_free() instead of kfree()
    b709a08bc4d7 bpf, sockmap: RCU dereferenced psock may be used outside RCU block
    2000bb546525 bpf, sockmap: RCU splat with redirect and strparser error or TLS
    4625f4d5e4bf drm/mediatek: Check plane visibility in atomic_update
    a062088e675f nl80211: don't return err unconditionally in nl80211_start_ap()
    d63806c30706 gpio: pca953x: Fix GPIO resource leak on Intel Galileo Gen 2
    137e7782bddd gpio: pca953x: Override IRQ for one of the expanders on Galileo Gen 2
    91f8d05b4b56 net: qrtr: Fix an out of bounds read qrtr_endpoint_post()
    1128ed7e1dd0 sched/core: Check cpus_mask, not cpus_ptr in __set_cpus_allowed_ptr(), to fix mask corruption
    4e9631a90830 x86/entry: Increase entry_stack size to a full page
    010f93079a26 nvme-rdma: assign completion vector correctly
    074ae0cd8407 block: release bip in a right way in error path
    b1b252d8d9c5 usb: dwc3: pci: Fix reference count leak in dwc3_pci_resume_work
    2485b6afadd7 scsi: mptscsih: Fix read sense data size
    10533390da7c ARM: imx6: add missing put_device() call in imx6q_suspend_init()
    15fa5dfaa4e8 cifs: update ctime and mtime during truncate
    9c732cccb04b s390/kasan: fix early pgm check handler execution
    a9c816494dc2 drm: panel-orientation-quirks: Use generic orientation-data for Acer S1003
    fcab0d2f1b91 drm: panel-orientation-quirks: Add quirk for Asus T101HA panel
    b7556e7ca381 iommu/vt-d: Don't apply gfx quirks to untrusted devices
    1a570b8faea4 powerpc/kvm/book3s64: Fix kernel crash with nested kvm & DEBUG_VIRTUAL
    4e4ddeee7aff ibmvnic: continue to init in CRQ reset returns H_CLOSED
    ce4a93b9e607 i40e: protect ring accesses with READ- and WRITE_ONCE
    2e5a3586ca27 ixgbe: protect ring accesses with READ- and WRITE_ONCE
    203cfe694e9d net: ethernet: mvneta: Add 2500BaseX support for SoCs without comphy
    996bd0778a37 net: ethernet: mvneta: Fix Serdes configuration for SoCs without comphy
    8f23c0dcd096 spi: spidev: fix a potential use-after-free in spidev_release()
    010de5718162 spi: spidev: fix a race between spidev_release and spidev_remove
    44b6e192e05f ALSA: hda: Intel: add missing PCI IDs for ICL-H, TGL-H and EKL
    04197a8184e7 ASoC: SOF: Intel: add PCI ID for CometLake-S
    b1589bb5b04e drm: mcde: Fix display initialization problem
    408ddca5c737 gpu: host1x: Detach driver on unregister
    d78a975525f3 drm/tegra: hub: Do not enable orphaned window group
    dbe5fef1c2b1 drm/ttm: Fix dma_fence refcnt leak when adding move fence
    6bfa3b616c52 ARM: dts: omap4-droid4: Fix spi configuration and increase rate
    3965fe7c0a77 perf/x86/rapl: Fix RAPL config variable bug
    5f121ba6b625 perf/x86/rapl: Move RAPL support to common x86 code
    14e8708fffee regmap: fix alignment issue
    2ec3c8329aca spi: spi-fsl-dspi: Fix lockup if device is removed during SPI transfer
    6b64220baf4a spi: spi-fsl-dspi: Adding shutdown hook
    eb676bef0224 KVM: s390: reduce number of IO pins to 1

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agomeson.bbclass: add a cups-config entry
Alexander Kanavin [Tue, 4 Aug 2020 08:25:49 +0000 (10:25 +0200)]
meson.bbclass: add a cups-config entry

This is required by newer meson versions in cross builds, as
acknowledgement that the tool in PATH is ok to use.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agonet-tools: fix upstream version check
Alexander Kanavin [Sat, 1 Aug 2020 21:23:35 +0000 (23:23 +0200)]
net-tools: fix upstream version check

There is no tag other than ancient 1.60, so bypass
the check for now.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolibcap: update 2.36 -> 2.41
Alexander Kanavin [Sat, 1 Aug 2020 21:23:34 +0000 (23:23 +0200)]
libcap: update 2.36 -> 2.41

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agomesa: update 20.1.2 -> 20.1.4
Alexander Kanavin [Sat, 1 Aug 2020 21:23:33 +0000 (23:23 +0200)]
mesa: update 20.1.2 -> 20.1.4

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agologrotate: update 3.16.0 -> 3.17.0
Alexander Kanavin [Sat, 1 Aug 2020 21:23:32 +0000 (23:23 +0200)]
logrotate: update 3.16.0 -> 3.17.0

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agovala: update 0.48.6 -> 0.48.7
Alexander Kanavin [Sat, 1 Aug 2020 21:23:31 +0000 (23:23 +0200)]
vala: update 0.48.6 -> 0.48.7

Remove patch, as issue fixed upstream.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agorsync: update 3.2.1 -> 3.2.2
Alexander Kanavin [Sat, 1 Aug 2020 21:23:30 +0000 (23:23 +0200)]
rsync: update 3.2.1 -> 3.2.2

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoglib-2.0: correct build with latest meson
Alexander Kanavin [Sat, 1 Aug 2020 21:23:29 +0000 (23:23 +0200)]
glib-2.0: correct build with latest meson

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agonasm: update 2.14.02 -> 2.15.03
Alexander Kanavin [Sat, 1 Aug 2020 21:23:28 +0000 (23:23 +0200)]
nasm: update 2.14.02 -> 2.15.03

Remove backported patches, rebase the rest.

Switch to using (mostly) standard autotools build.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agomeson: update 0.54.3 -> 0.55.0
Alexander Kanavin [Sat, 1 Aug 2020 21:23:27 +0000 (23:23 +0200)]
meson: update 0.54.3 -> 0.55.0

Rebase patches.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agogo: update 1.14.4 -> 1.14.6
Alexander Kanavin [Sat, 1 Aug 2020 21:23:26 +0000 (23:23 +0200)]
go: update 1.14.4 -> 1.14.6

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agognu-config: update to latest revision
Alexander Kanavin [Sat, 1 Aug 2020 21:23:25 +0000 (23:23 +0200)]
gnu-config: update to latest revision

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agokbd: update 2.2.0 -> 2.3.0
Alexander Kanavin [Sat, 1 Aug 2020 21:23:24 +0000 (23:23 +0200)]
kbd: update 2.2.0 -> 2.3.0

Drop ptest support: upstream has rewritten the tests in GNU autotest,
which is another m4 monstrosity entirely incompatible with the idea of
installing tests to the target system.

All dropped patches are either merged upstream, or made for ptest.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agosysvinit: update 2.96 -> 2.97
Alexander Kanavin [Sat, 1 Aug 2020 21:23:23 +0000 (23:23 +0200)]
sysvinit: update 2.96 -> 2.97

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agosudo:upgrade 1.9.1 -> 1.9.2
zangrc [Fri, 31 Jul 2020 17:22:40 +0000 (01:22 +0800)]
sudo:upgrade 1.9.1 -> 1.9.2

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agostress-ng:upgrade 0.11.15 -> 0.11.17
zangrc [Fri, 31 Jul 2020 17:22:39 +0000 (01:22 +0800)]
stress-ng:upgrade 0.11.15 -> 0.11.17

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoconf/machine: set UBOOT_MACHINE for qemuarm and qemuarm64
Ross Burton [Fri, 31 Jul 2020 12:56:33 +0000 (13:56 +0100)]
conf/machine: set UBOOT_MACHINE for qemuarm and qemuarm64

These machines support booting U-Boot, so set the machine appropriately.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoltp: remove OOM tests from runtest/mm
Matthew [Thu, 30 Jul 2020 03:56:36 +0000 (23:56 -0400)]
ltp: remove OOM tests from runtest/mm

Remove the OOM tests, since they might cause oeqa ssh
connection lost.

[YOCTO #13802]

Signed-off-by: Mingde (Matthew) Zeng <matthew.zeng@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolib/package_manager: Fix missing imports
Richard Purdie [Thu, 30 Jul 2020 22:01:06 +0000 (23:01 +0100)]
lib/package_manager: Fix missing imports

The package_manager code rearranging had some issues with module imports that
were now missing. Fix all the ones I could spot from quick inspection.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoqemumips: Use 34Kf CPU emulation
Khem Raj [Wed, 29 Jul 2020 02:28:52 +0000 (19:28 -0700)]
qemumips: Use 34Kf CPU emulation

Few years ago we switched to using mips32r2 tunings for qemumips however
the default CPU emulation still remained 24Kf which is not optimal for
mips32r2 ISA for qemu [1], therefore switch to recommended 32Kf for CPU
emulation when running qemu in system mode

Boot time to console is ~1s faster with this setting, hopefully this
should speed up qemumips in general

[1] https://www.qemu.org/docs/master/system/target-mips.html#preferred-cpu-models-for-mips-hosts

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolibwpe: update to 1.7.1
Oleksandr Kravchuk [Wed, 29 Jul 2020 08:46:23 +0000 (10:46 +0200)]
libwpe: update to 1.7.1

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agonativesdk-rpm: adjust RPM_CONFIGDIR paths dynamically
hongxu [Wed, 29 Jul 2020 08:22:06 +0000 (01:22 -0700)]
nativesdk-rpm: adjust RPM_CONFIGDIR paths dynamically

While installing/extracting SDK to a non-default dir(not /opt),
run rpm failed:
$ python3 -c "import rpm"
|error: Unable to open /opt/windriver/wrlinux-graphics/20.31/sysroots/
x86_64-wrlinuxsdk-linux/usr/lib/rpm/rpmrc for reading: No such file or
directory.

This patch adds a flexible way to configure RPM_CONFIGDIR in SDK.

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agopbzip2: extend for nativesdk
Yi Zhao [Wed, 29 Jul 2020 07:12:57 +0000 (15:12 +0800)]
pbzip2: extend for nativesdk

Make pzip2 available in nativesdk to speedup file compression.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoflex: Refresh patch
zangrc [Wed, 29 Jul 2020 01:31:22 +0000 (09:31 +0800)]
flex: Refresh patch

The patch changes the same file twice which causes issues with some patch
tools (not used in YP by default). Refresh the patch to clean this up
anyway.

RP: Tweak commit message
Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolib/oe/reproducible.py: Fix git HEAD check
Joshua Watt [Tue, 28 Jul 2020 16:14:26 +0000 (11:14 -0500)]
lib/oe/reproducible.py: Fix git HEAD check

The check for a git HEAD still wasn't quite correct because it was using
the .git directory as the current working directory. Instead, it should
be passed as the --git-dir argument when running git. Running `git
rev-parse HEAD` in a .git directory with no HEAD reports 'HEAD' and
exits with success but then 'git log' will fail, which is not what we
want.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoRevert "lib/oe/log_colorizer.py: add LogColorizerProxyProgressHandler"
Richard Purdie [Wed, 29 Jul 2020 10:33:56 +0000 (11:33 +0100)]
Revert "lib/oe/log_colorizer.py: add LogColorizerProxyProgressHandler"

This reverts commit 312fb3c86a3d84e60867b132666c01859f73ceb2 as this
wasn't meant to merge as yet.

4 years agolib/oe/log_colorizer.py: add LogColorizerProxyProgressHandler
Chris Laplante [Tue, 28 Jul 2020 01:35:55 +0000 (21:35 -0400)]
lib/oe/log_colorizer.py: add LogColorizerProxyProgressHandler

This progress handler intercepts log output, stripping any ANSII color
escape codes. Then the stripped output is fed to the underlying progress
handler which will render the progress bar as usual.

Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agopopt: upgrade to 1.18
Ross Burton [Tue, 28 Jul 2020 12:49:43 +0000 (13:49 +0100)]
popt: upgrade to 1.18

All our patches are upstreamed so drop them.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agocogl-1.0: correct X11 dependencies
Matt Madison [Tue, 28 Jul 2020 12:04:40 +0000 (05:04 -0700)]
cogl-1.0: correct X11 dependencies

cogl depends on libxdamage when configured for X11 support.
A dependency was added for this in 2012 with
959a2f6d88d8fa6874fff83b7a1f0e7d4e36b887, but that addition
was lost when the recipe was reworked in 2013 with
b508fdd2b19ca30da8d09caf646897dc4cf195c8. That commit also
added a dependency on libxi, which is not actually needed.

The missing dependency doesn't cause problems in most cases,
since mesa also depends on libxdamage, but when an alternative
opengl implementation such as libglvnd is used, cogl fails
to configure.

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agogtk-icon-cache.bbclass: add features_check
Changqing Li [Wed, 8 Jul 2020 07:13:31 +0000 (15:13 +0800)]
gtk-icon-cache.bbclass: add features_check

'bitbake world -k' when DISTRO_FEATURES don't have x11 and wayland,
report errors:
Nothing PROVIDES 'gtk+3'
Nothing RPROVIDES 'blueman'

gtk+3 set ANY_OF_DISTRO_FEATURES, so add it here too
since we DEPENDS on it

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agogcc: Fix mangled patch
Richard Purdie [Mon, 27 Jul 2020 21:48:02 +0000 (22:48 +0100)]
gcc: Fix mangled patch

To quote Zhuang <qiuguang.zqg@alibaba-inc.com>:
"""
A few days ago, I tried to compile a gcc plugin with the toolchain from poky sdk.
It failed with errors about missing header files such as backend.h etc.

After investigation, I found that the problem was brought by a gcc patch:
0012-gcc-Fix-argument-list-too-long-error.patch (which is considered derived from the original patch)

- headers=`echo $(PLUGIN_HEADERS) $$(cd $(srcdir); echo *.h *.def) | tr ' ' '\012' | sort -u`; \
+ headers="$(sort $(PLUGIN_HEADERS) $$(cd $(srcdir); echo *.h *.def))"; \

It changes the commands of install-plugin, making the sorting taken effect before the shell globs.
Thus results in the header files under gcc $(srcdir) being not installed.

By checking log.do_install, we can find that the `headers=' statement to run is incorrect and will not work as expected:
headers="$(cd *.def) *.h ../../../../../../../work-shared/gcc-10.1.0-r0/gcc-10.1.0/gcc/../include/ansidecl.h ...

As the patch says,
"The PLUGIN_HEADERS is too long before sort, so the "echo" can't handle it, ..."
my suggestion is that we can simply take care of PLUGIN_HEADERS
using the original proposed sort.
"""

This fixes the gcc patch as proposed as it does appear its been
broken over time.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agollvm: upgrade 9.0.1 -> 10.0.1
Trevor Gamblin [Mon, 27 Jul 2020 12:53:51 +0000 (08:53 -0400)]
llvm: upgrade 9.0.1 -> 10.0.1

Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agogit: update 2.28.0
Oleksandr Kravchuk [Mon, 27 Jul 2020 19:19:17 +0000 (21:19 +0200)]
git: update 2.28.0

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolayer.conf: fix adwaita-icon-theme signature change problem
Changqing Li [Thu, 23 Jul 2020 06:51:20 +0000 (14:51 +0800)]
layer.conf: fix adwaita-icon-theme signature change problem

allarch package adwaita-icon-theme inherit both allarch and
gtk-icon-cache, since commit 31e3d34c8a9c3e8481aa837aa0bf52adf095fe62
[gtk-icon-cache.bbclass: add runtime dependency], it start depend on
non-allarch packages gdk-pixbuf and gtk+3, which make it's signature
changes when machine changed.

like for task do_prepare_recipe_sysroot:
"Hash for dependent task
gdk-pixbuf/gdk-pixbuf_2.40.0.bb:do_populate_sysroot changed from
a72aba8432699c8ce4ca1f71833ef14a89ffde0ea4063e37b9d819fdb1e407f4 to
1ad4e1bd76921b71482657f3b017184e9ade8e2a0b9f43ad64ed2dda83b1520f"

the only way to fix this is remove the task dependency.
SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS not work in class, so add it in
layer.conf.

Maybe we have other recipes under other layers have similar problem, we
can only add one by one to its layer.conf, seems not a good idea. but
add *->pixbuf will influence other packages

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agodeb: Move package manager to its own dir
Fredrik Gustafsson [Fri, 24 Jul 2020 14:42:41 +0000 (16:42 +0200)]
deb: Move package manager to its own dir

This is a part of a refactor that will split the package manager
code so that it's possible to use other package managers in other
layers.

RP: Fixes to parse/build
Signed-off-by: Fredrik Gustafsson <fredrigu@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoipk: Move package manager to its own dir
Fredrik Gustafsson [Fri, 24 Jul 2020 14:42:40 +0000 (16:42 +0200)]
ipk: Move package manager to its own dir

This is part of a refactor that will split the package manager
code so that it's possible to use other package managers in other
layers.

RP: Fixes to parse/build
Signed-off-by: Fredrik Gustafsson <fredrigu@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agorpm: Move package manager to its own dir
Fredrik Gustafsson [Fri, 24 Jul 2020 14:42:39 +0000 (16:42 +0200)]
rpm: Move package manager to its own dir

This is part of a refactor that will split the package manager
code so that it's possible to use other package managers in other
layers.

RP: Fixes to parse/build
Signed-off-by: Fredrik Gustafsson <fredrigu@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agodeb: Move sdk to its own dir
Fredrik Gustafsson [Fri, 24 Jul 2020 14:42:38 +0000 (16:42 +0200)]
deb: Move sdk to its own dir

This is a part of a refactor that will split the package manager
code so that it's possible to use other package managers in other
layers.

Signed-off-by: Fredrik Gustafsson <fredrigu@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoipk: Move sdk to its own dir
Fredrik Gustafsson [Fri, 24 Jul 2020 14:42:37 +0000 (16:42 +0200)]
ipk: Move sdk to its own dir

This is a part of a refactor that will split the package manager
code so that it's possible to use other package managers in other
layers.

Signed-off-by: Fredrik Gustafsson <fredrigu@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agorpm: Move sdk to its own dir
Fredrik Gustafsson [Fri, 24 Jul 2020 14:42:36 +0000 (16:42 +0200)]
rpm: Move sdk to its own dir

This is part of a refactor that will split the package manager
code so that it's possible to use other package managers in other
layers.

Signed-off-by: Fredrik Gustafsson <fredrigu@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agodeb: Move rootfs to its own dir
Fredrik Gustafsson [Fri, 24 Jul 2020 14:42:35 +0000 (16:42 +0200)]
deb: Move rootfs to its own dir

This is a part of a refactor that will split the package manager
code so that it's possible to use other package managers in other
layers.

Signed-off-by: Fredrik Gustafsson <fredrigu@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoipk: Move rootfs to its own dir
Fredrik Gustafsson [Fri, 24 Jul 2020 14:42:34 +0000 (16:42 +0200)]
ipk: Move rootfs to its own dir

This is a part of a refactor that will split the package manager
code so that it's possible to use other package managers in other
layers.

RP: Fixes to parse/build
Signed-off-by: Fredrik Gustafsson <fredrigu@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agorpm: Move rootfs to its own dir
Fredrik Gustafsson [Fri, 24 Jul 2020 14:42:33 +0000 (16:42 +0200)]
rpm: Move rootfs to its own dir

This is a part of a refactor that will split the package manager
code so that it's possible to use other package managers in other
layers.

Signed-off-by: Fredrik Gustafsson <fredrigu@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agodeb: Move deb manifest to its own subdir
Fredrik Gustafsson [Fri, 24 Jul 2020 14:42:32 +0000 (16:42 +0200)]
deb: Move deb manifest to its own subdir

This is a part of a refactor that will split the package manager
code so that it's possible to use other package managers in other
layers.

Signed-off-by: Fredrik Gustafsson <fredrigu@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoipk: Move ipk manifest to its own subdir
Fredrik Gustafsson [Fri, 24 Jul 2020 14:42:31 +0000 (16:42 +0200)]
ipk: Move ipk manifest to its own subdir

This is a part of a refactor that will split the package manager
code so that it's possible to use other package managers in other
layers.

Signed-off-by: Fredrik Gustafsson <fredrigu@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agorpm: Move manifest to its own subdir
Fredrik Gustafsson [Fri, 24 Jul 2020 14:42:30 +0000 (16:42 +0200)]
rpm: Move manifest to its own subdir

This is a part of a refactor that will split the package manager
code so that it's possible to use other package managers in other
layers.

Signed-off-by: Fredrik Gustafsson <fredrigu@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agopackage_manager: Move to package_manager/__init__.py
Fredrik Gustafsson [Fri, 24 Jul 2020 14:42:29 +0000 (16:42 +0200)]
package_manager: Move to package_manager/__init__.py

This is part of a refactor that will split the package manager
code so that it's possible to use other package managers in other
layers.

Signed-off-by: Fredrik Gustafsson <fredrigu@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agojson-c: update to 0.15
Oleksandr Kravchuk [Mon, 27 Jul 2020 09:00:35 +0000 (11:00 +0200)]
json-c: update to 0.15

Remove upstreamed patch.

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agopatch.py: Change to more strictly fuzz detection
Naoto Yamaguchi [Sun, 26 Jul 2020 22:39:34 +0000 (07:39 +0900)]
patch.py: Change to more strictly fuzz detection

When applying patch subject is including a " fuzz ", do_patch_qa detect
Fuzz.

After the patch is applied, the following log message appears.

  Applying: meson: treat all fuzz cases as unit tests

The current Fuzz detection checks for the presence of "fuzz" in this
log message.  The log in this example will be treated as Fuzz,
despite its success.

This patch change to more strictly fuzz detection.
if log message is including " fuzz " and "Hunk " in log message,
it will be treated as Fuzz.

Signed-off-by: Naoto Yamaguchi <wata2ki@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agodiffoscope: update to 153
Oleksandr Kravchuk [Sun, 26 Jul 2020 19:48:17 +0000 (21:48 +0200)]
diffoscope: update to 153

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agore2c: update to 2.0
Oleksandr Kravchuk [Sun, 26 Jul 2020 19:42:13 +0000 (21:42 +0200)]
re2c: update to 2.0

CVE patch dropped as a backport present in the nre release.

RP: Remove dropped CVE patch
Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agopython3: update to 3.8.5
Oleksandr Kravchuk [Sat, 25 Jul 2020 23:41:09 +0000 (01:41 +0200)]
python3: update to 3.8.5

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agocve-update: handle baseMetricV2 as optional
Konrad Weihmann [Sun, 26 Jul 2020 14:10:06 +0000 (16:10 +0200)]
cve-update: handle baseMetricV2 as optional

Currently in NVD DB an item popped up, which hasn't set baseMetricV2.
Let the parser handle it as an optional item.
In case use baseMetricV2 before baseMetricV3

Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agobash-completion: update to 2.11
Oleksandr Kravchuk [Sun, 26 Jul 2020 13:39:01 +0000 (15:39 +0200)]
bash-completion: update to 2.11

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoperl: Avoid race continually rebuilding miniperl
Richard Purdie [Sun, 26 Jul 2020 14:02:20 +0000 (15:02 +0100)]
perl: Avoid race continually rebuilding miniperl

When we run "make install" we notice miniperl rebuilding multiple times.
Usually this is harmless however sometimes race issues occur such as
miniperl not being executable.

The issue is that crosspatch is a phony target so it always rebuilds.
Adding this as a dependency of miniperl means miniperl always rebuilds
too.

Avoid this by injecting a direct dependency avoiding the phony target.
miniperl is then only rebuilt when its input changes as desired.

Patch submitted to upstream perl-cross.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agochecklayer: check layer in BBLAYERS before test
Lee Chee Yang [Fri, 24 Jul 2020 04:16:24 +0000 (12:16 +0800)]
checklayer: check layer in BBLAYERS before test

layer under test should absent from BBLAYERS when running
yocto-check-layer. This allow to get signatures before layer
under test. There are existing steps to add the layer under
test to BBLAYERS after getting initial signatures.

add steps to check for layer under test in BBLAYERS before
running any test, skip test for the layer if the layer under
test exist in BBLAYERS.

[YOCTO #13176]

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agompg123:upgrade 1.26.2 -> 1.26.3
zangrc [Fri, 24 Jul 2020 01:18:07 +0000 (09:18 +0800)]
mpg123:upgrade 1.26.2 -> 1.26.3

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolibevdev:upgrade 1.9.0 -> 1.9.1
zangrc [Fri, 24 Jul 2020 01:18:06 +0000 (09:18 +0800)]
libevdev:upgrade 1.9.0 -> 1.9.1

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agotune-cortexa55.inc: switch to using armv8.2a include file
Dmitry Baryshkov [Fri, 24 Jul 2020 14:43:06 +0000 (17:43 +0300)]
tune-cortexa55.inc: switch to using armv8.2a include file

Since Cortex-A55 is an ARMv8.2 core, switch to using arch-armv8-2a.inc
file.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoarch-armv8-2a.inc: add tune include for armv8.2a
Dmitry Baryshkov [Fri, 24 Jul 2020 14:43:05 +0000 (17:43 +0300)]
arch-armv8-2a.inc: add tune include for armv8.2a

Add tune include for armv8.2a. This adds support only for bare armv8.2a
(and for crypto extension). There is no support for additional
instructions added by architecture extensions (except the main crypto
extension support).

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agomesa: enable freedreno Vulkan driver if freedreno is enabled
Dmitry Baryshkov [Fri, 24 Jul 2020 14:42:53 +0000 (17:42 +0300)]
mesa: enable freedreno Vulkan driver if freedreno is enabled

If freedreno is enabled in PACKAGECONFIG, enable respective Vulkan
driver.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoinitscripts: Fix populate-volatile.sh bug when file/dir exists
Andrei Gherzan [Fri, 24 Jul 2020 17:12:05 +0000 (18:12 +0100)]
initscripts: Fix populate-volatile.sh bug when file/dir exists

The blocks which test for entry exitence (file or directory) use a
`A && B || C` syntax. This form is not behaving as a if-then-else block
even the code logic assumes that. C may run when A is true which breaks
the case where VERBOSE is 'no' but the file/directory exists.

Along with fixing these specific issues, this patch fixes the other
instances where blocks of form `A && B || C` are used as if-then-else.

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoinitscripts: Fix various shellcheck warnings in populate-volatile.sh
Andrei Gherzan [Fri, 24 Jul 2020 17:12:04 +0000 (18:12 +0100)]
initscripts: Fix various shellcheck warnings in populate-volatile.sh

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agopython3-setuptools: update to 49.2.0
Oleksandr Kravchuk [Sat, 25 Jul 2020 09:54:23 +0000 (11:54 +0200)]
python3-setuptools: update to 49.2.0

Rebased patch and got rid of the .inc file as Python 2 is not supported
anymore.

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agogconf: use python3
Joe Slater [Fri, 24 Jul 2020 22:34:15 +0000 (15:34 -0700)]
gconf: use python3

Modify gsettings-schema-convert to use python3.  Also
add RDEPEND on python3-xml.

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agorootfs-post: remove traling blanks from tasks
Konrad Weihmann [Wed, 8 Jul 2020 11:09:35 +0000 (13:09 +0200)]
rootfs-post: remove traling blanks from tasks

remove the traling blanks before the ;-delimiter, so one could use
"_remove" to avoid running tasks like 'rootfs_update_timestamp',
which are currently hardcoded and not bound to any
configurable feature flag

Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoglibc: Secruity fix for CVE-2020-6096
Armin Kuster [Mon, 20 Jul 2020 21:49:36 +0000 (14:49 -0700)]
glibc: Secruity fix for CVE-2020-6096

Source: glibc.org
MR: 104799
Type: Security Fix
Disposition: Backport from  beea361050728138b82c57dda0c4810402d342b9
ChangeID: 29df826fb697fdd2742c3bace33388bda962c5f1
Description:

Signed-off-by: Armin Kuster <akuster@gmvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agowic/bootimg-efi: Add support for IMAGE_BOOT_FILES
Khasim Mohammed [Thu, 23 Jul 2020 09:51:50 +0000 (15:21 +0530)]
wic/bootimg-efi: Add support for IMAGE_BOOT_FILES

List of files defined using IMAGE_BOOT_FILES are installed into
the boot partition when preparing an image using the wic tool with
the bootimg-efi source plugin.

The code snippet introduced is taken as is from bootimg-partition.py

Change-Id: I8dbb6b4e7c24870f587a6f31e6ae4a87d7033782
Issue-Id: PLATFORMS-3134
Signed-off-by: Khasim Syed Mohammed <khasim.mohammed@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoRevert "python3: define a profile directory path"
Mingli Yu [Thu, 23 Jul 2020 04:02:36 +0000 (21:02 -0700)]
Revert "python3: define a profile directory path"

After ccache upgrade to 3.7.11, there is below logic introduced.
58895dc Add knowledge about -fprofile-{correction,reorder-functions,values}

And the python3 ccache build issue [1] is fixed in ccache 3.7.11, so there
is no need to define a profile directory path for python3 any more.

[1] https://github.com/ccache/ccache/issues/615

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoccache: Upgrade to 3.7.11
Mingli Yu [Thu, 23 Jul 2020 04:02:35 +0000 (21:02 -0700)]
ccache: Upgrade to 3.7.11

Bug fixes:
  Added knowledge about -fprofile-{correction,reorder-functions,values}.
  ccache now handles the Intel compiler option -xCODE (where CODE is a processor feature code) correctly.
  Added support for NVCC's -Werror and --Werror options.

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agobuildhistory: use pid for temporary txt file name
Lee Chee Yang [Thu, 23 Jul 2020 01:16:13 +0000 (09:16 +0800)]
buildhistory: use pid for temporary txt file name

buildhistory create .txt file bh_installed_pkgs.txt and
bh_installed_pkgs_deps.txt while listing down installed package.
These file is later removed in buildhistory_get_installed().

when multiple process runs in parellal there are chances to race for
the file where one process created the file while another task remove
the file right after it.

using different file name for each process should avoid the race. So
add PID to the file name to make it unique.

[yocto #13709]

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agostress-ng: create a symlink for /usr/bin/stress
Dan Callaghan [Thu, 23 Jul 2020 08:50:31 +0000 (18:50 +1000)]
stress-ng: create a symlink for /usr/bin/stress

In commit 72641004, stress-ng was made to provide the stress package,
because it's backwards compatible with the old stress command. But it
doesn't actually provide /usr/bin/stress which is what other recipes
depending on stress will expect.

Symlink /usr/bin/stress to stress-ng so that it actually becomes
a drop-in replacement for stress.

Signed-off-by: Dan Callaghan <dan.callaghan@opengear.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolibdnf: allow reproducible binary builds
Joe Slater [Wed, 22 Jul 2020 20:31:11 +0000 (13:31 -0700)]
libdnf: allow reproducible binary builds

Use a static TESTDATADIR if tests are disabled.  Allow
override of TESTDATADIR if tests are enabled since the
default will be wrong for target builds.

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoltp: remove --with-power-management-testsuite from EXTRA_OECONF
Matthew [Wed, 22 Jul 2020 19:35:30 +0000 (15:35 -0400)]
ltp: remove --with-power-management-testsuite from EXTRA_OECONF

Commit [b74bbed51b0c0d44b70b136326a8a23cbc64db01 power_management:
compile testcases/kernel/power_management by default] from ltp upstream
removed --with-power-management-testsuite option, it's on by default.

Signed-off-by: Mingde (Matthew) Zeng <matthew.zeng@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agonet-tools: upgrade to latest revision in upstream repo instead of old debian snapshot
Martin Jansa [Wed, 22 Jul 2020 20:02:22 +0000 (22:02 +0200)]
net-tools: upgrade to latest revision in upstream repo instead of old debian snapshot

* debian switched to upstream snapshot as well in 2015:
  net-tools (1.60+git20150829.73cef8a-1) unstable; urgency=medium

  * After 14 years without an upstream release, I am producing a new package
    based on today's upstream repository.
Closes: #391495, #486448, #323261, #260587, #545328, #511395.
  * Remove many patches now merged upstream, delete unmaintainable and
    undocumented local changes, and update the rest.

 -- MartĂ­n Ferrari <tincho@debian.org>  Mon, 07 Sep 2015 01:54:07 +0000

* this allows dropping nettools_do_patch task and other weird parts of the recipe

* LIC_FILES_CHKSUM change is caused by formatting changes in:
  d613e1d Updated COPYING file.

* patches now included in upstream:
  0001-added-ull-prefix-to-unsigned-long-long-constants-to-.patch
  eb04ef3 added 'ull' prefix to unsigned long long constants to make gcc 3.3 happy

  ifconfig-interface-0-del-IP-will-remove-the-aliased-.patch
  81814dc ifconfig interface:0 del <IP> will remove the aliased IP on IA64

  musl-fixes.patch (only lib/inet_sr.c and netstat.c chunks weren't applied, but
  maybe not needed anymore)
  86b2c77 Remove support for IPV6 with libc5 and glibc 2.0
  ecae4b3 lib/util-ank: Include <limits.h> for UINT_MAX
  c35607e Remove inconsistent conditional includes for libc5 and glibc 2.0

  net-tools-1.60-sctp1.patch
  net-tools-1.60-sctp2-quiet.patch
  net-tools-1.60-sctp3-addrs.patch
  7af4859 netstat: update SCTP support
  3bbfa09 statistics: add SCTP support
  4932915 Add netstat -S/--sctp parameter into help and manpages
  8306063 netstat: add sctp connection decoding (Debian #306428 and Gentoo #258714)

  0001-lib-inet6.c-INET6_rresolve-various-fixes.patch
  a70c568 lib/inet6.c:INET6_rresolve() - various fixes

  net-tools-fix-building-with-linux-4.8.patch
  ea3935b iptunnel: fix building w/older linux headers
  45d573a iptunnel: drop netinet/ip.h include

* add 3 new patches from debian

* add PACKAGECONFIG for parts which are now optional since:
  https://salsa.debian.org/debian/net-tools/-/commit/939123848205c8745542c2052b2c53de49461f4b
  https://salsa.debian.org/debian/net-tools/-/commit/fbc11bb9cfb5acb4b3c3b24a57c02f2b2338c656
  https://salsa.debian.org/debian/net-tools/-/commit/bd8bceaed2311651710331a7f8990c3e31be9840
  but unlike debian, keep building them to limit the changes from this upgrade

* ifconfig and route were moved from sbin to bin adjust u-a accordingly

* debian changelog:
net-tools (1.60+git20180626.aebd88e-1) unstable; urgency=medium

  * New upstream snapshot
  * Refresh patches.
  * Fix typos in German manpages. Thanks to Prof. Dr. Steffen Wendzel and
    Dr. Tobias Quathamer for the patch. Closes: #900962.

 -- MartĂ­n Ferrari <tincho@debian.org>  Mon, 24 Sep 2018 19:08:57 +0000

net-tools (1.60+git20161116.90da8a0-4) unstable; urgency=medium

  * Update maintainer email address. Closes: #899617.
  * Update Standards-Version with no changes.

 -- MartĂ­n Ferrari <tincho@debian.org>  Mon, 24 Sep 2018 17:16:31 +0000

net-tools (1.60+git20161116.90da8a0-3) unstable; urgency=medium

  * debian/control: Update Vcs-* and Standards-Version.
  * debian/control: remove references to ancient package ja-trans.
  * debian/gbp.conf: Update repo layout.

 -- MartĂ­n Ferrari <tincho@debian.org>  Tue, 31 Jul 2018 19:09:00 +0000

net-tools (1.60+git20161116.90da8a0-2) unstable; urgency=medium

  * Fix typo in French manpage. Thanks to  Michel Grigaut for the patch.
  * Add manpage for iptunnel, thanks to Sergio Durigan Junior.
Closes: #88910
  * Rename patches so CME does not choke on them.
  * Automated cme fixes; packaging improvements.
  * Remove unused and ancient patch.

 -- MartĂ­n Ferrari <tincho@debian.org>  Sun, 11 Feb 2018 17:29:24 +0000

net-tools (1.60+git20161116.90da8a0-1) unstable; urgency=medium

  * New upstream snapshot.
  * Re-synced translations.patch.
  * Acknowledge NMUs. Thanks a lot to Andrey Rahmatullin for the
    fixes and uploads. Closes: 846509.
  * Fix FTCBFS, thanks to Helmut Grohne for the patch. Closes: #811561.
    + Really assign CC for cross compilation.
    + Use triplet prefixed pkg-config.
  * Add debian/NEWS warning about changing output in net-tools commands.
    Closing bugs that reported problems in 3rd-party scripts arising from these
    changes.  Closes: #845153, #843892, #820212.
  * Update Standards-Version, with no changes.

 -- MartĂ­n Ferrari <tincho@debian.org>  Mon, 26 Dec 2016 05:58:42 +0000

net-tools (1.60+git20150829.73cef8a-2.2) unstable; urgency=medium

  * Non-maintainer upload.
  * Apply an additional fix for the previous FTBFS for some architectures.

 -- Andrey Rahmatullin <wrar@debian.org>  Thu, 01 Dec 2016 22:49:27 +0500

net-tools (1.60+git20150829.73cef8a-2.1) unstable; urgency=medium

  * Non-maintainer upload.
  * Fix FTBFS by applying the upstream patch (Closes: #844073).

 -- Andrey Rahmatullin <wrar@debian.org>  Sun, 20 Nov 2016 15:23:12 +0500

net-tools (1.60+git20150829.73cef8a-2) unstable; urgency=medium

  [ Laurent Bigonville ]
  * Enable SELinux support. Closes: #666204.

  [ MartĂ­n Ferrari ]
  * Mark the package "Multi-Arch: foreign", thanks to FrĂ©dĂ©ric Brière
    <fbriere@fbriere.net>. Closes: #752584.
  * Fix bug in Portuguese man page, thanks to julianofischer@gmail.com.
Closes: #805377.
 -- MartĂ­n Ferrari <tincho@debian.org>  Thu, 19 Nov 2015 14:48:47 +0000

net-tools (1.60+git20150829.73cef8a-1) unstable; urgency=medium

  * After 14 years without an upstream release, I am producing a new package
    based on today's upstream repository.
Closes: #391495, #486448, #323261, #260587, #545328, #511395.
  * Remove many patches now merged upstream, delete unmaintainable and
    undocumented local changes, and update the rest.

 -- MartĂ­n Ferrari <tincho@debian.org>  Mon, 07 Sep 2015 01:54:07 +0000

net-tools (1.60-27) unstable; urgency=medium

  * Add patch to accept "pointtopoint" as a synonym for "pointopoint".
Closes: #443075.
  * Add patch to add an example for single route deletion in route.8.
Closes: #500913.
  * Remove Luk from Uploaders as per his request. Closes: #748491.
  * Fix broken watchfile, thanks to Martin Bagge for the patch.
    Fix upstream homepage. Closes: #770070.
  * Add patch to make mii-tool scan all ethernet devices instead of eth[0-7].
Closes: #532879, #319508.
  * Add Vcs fields.
  * Update build system to debhelper 9 and 3.0 source format.
  * Update ancient Standards-Version, no changes needed.

 -- MartĂ­n Ferrari <tincho@debian.org>  Sun, 06 Sep 2015 17:44:11 +0300

* upstream changelog:
git log --oneline v1.60..0eebece8c9
0eebece Spell checking for German netstat manpage (#9)
aebd88e standardize --help/usage handling
c360845 always write --version output to stdout
479bb4a Fix incorrect ARP output
b4f5182 Fix conversion of some ROSE addresses.
8076533 Update all instances of my email address.
bfbadfc AX.25: Rename all references to axattach to kissattach.
90da8a0 netstat: improve ROSE support
aab9274 build: respect standard $(LDLIBS) variable
ea3935b iptunnel: fix building w/older linux headers
45d573a iptunnel: drop netinet/ip.h include
115f1af Fixed trailing whitespace issue with a and i flags (#7)
bd8bcea slattach/plipconfig: add a config knob to control them
9391238 hostname: add a config knob to control build/install
fbc11bb arp/rarp: add a config knob to control them
2cc98e1 man: do not install pages for disabled commands
5bf8112 man: improve install
e1ce942 ifconfig: do not try to bring up interfaces implicitly w/IPv4 0.0.0.0
2529b5d ifconfig(8): document - suffix behavior w/alias interfaces
3f170bf netstat: increase address buffers to avoid and overflow
1cec84c route(8): fix typo in fr_FR page
452f8e2 hostname: -s: do not look up details via dns
8e9db22 po: delete duplicate translations
614e15d statistics: fix multiple typos in strings
5c9e1e7 use sockaddr_storage everywhere
27e4308 netstat: convert to sockaddr_storage
adf6f57 netstat: unrecognized option -> non-zero exit code
73cef8a statistics: use getline instead of fgets
d923212 statistics: optimize filter processing slightly
238f086 ipx: always byte swap fields
7af4859 netstat: update SCTP support
3bbfa09 statistics: add SCTP support
9c073fe statistics: sort tables statically (and constify)
70c3a90 statistics: constify tables
c58d03b statistics: constify strings
9c4b23a statistics: localize all vars/funcs
b2f0f02 statistics: delete dead code
6556c27 build: use -- with rm
c5a91aa lib: inet6: clean up INET6_print a bit
fd10bbe lib: inet6: mark fix_v4_address static/const
c17ec95 lib: frame: avoid casting char* to short*
b10a1c0 lib: inet: switch to inet_ntop
16a83b4 lib: masq_info: check fgets return value
df48bbe lib: masq_info: use stdlib.h instead of malloc.h
839f760 lib: masq_info: fix scanf addr loading on 64bit systems
2a0cd06 lib: af: constify sprint sockaddr
bcc7d40 hostname: unify IPv4/IPv6 codepaths
742e628 lib: hw: constify hwtype
a6118de lib: af: constify aftype
2e15dac lib: af/hw: constify name fields
738c834 lib: af: constify herror message
61077c3 lib: af/hw: localize init functions
cf32e54 lib: af: get_socket_for_af: re-use get_afntype
86b2c77 Remove support for IPV6 with libc5 and glibc 2.0
c35607e Remove inconsistent conditional includes for libc5 and glibc 2.0
92773ed Add utility function ticks_per_second() to get jiffies per second (aka HZ)
9bdfd2c build: turn on transparent LFS support
43efbf2 Disable Econet support by default since it is removed from Linux 3.5
ecae4b3 lib/util-ank: Include <limits.h> for UINT_MAX
69e6463 netstat: fix up Bluetooth error messages
761da2d netstat: support Linux v4.0 debug/bluetooth/l2cap
e5f1be1 ifconfig can incorrectly round PiB
25b3c9a netstat: INFO_GUTS1(): don't treat EACCES as error
24cd6f2 Revert "fix statistics with aliased interfaces"
4e499e2 netstat(8): fix style in a few places
2dd754e netstat: do not abort/warn with unsupported protocols using general -A buckets
343192d fix statistics with aliased interfaces
96225a6 netstat: decode timer type of 4 in tcp lines
6ab465c interface: localize & constify funcs
1fbf057 netstat.8: bump date
6b79232 Thanks: Lubomir
34ea18c netstat: Fix short options for --l2cap and --rfcomm
2246c64 pathnames: Bluetooth stuff is now in debugfs
b2a5d59 man: Document Bluetooth options
4321146 Fix typo in license notice.
80ac2bb First version of a contributors acknowledgement (to clean up file headers)
d621c2e [Bug#22] Return non-zero exit code if route arguments fail verification (CEM@sf.net)
038ed39 mii-tool: apply -p to -w
68a4d78 fix default for inet4 (0) and pointer to ip(8)
a3cab50 Documented metric defaults, made markup of keywords/variables more consistent.
b2f92c3 Fix unsigned sscanf format
4932915 Add netstat -S/--sctp parameter into help and manpages
47b8bce netstat.c: fix typo in error message
3eb367a Fix serveral strings in de/fr/pt_BR.po
12f5a0c Fix nstrcmp() to prevent ifconfig from showing duplicate interfaces.
f919c51 Makefile: add BINDIR & SBINDIR variables
08abda6 add const qualifier to fix compile warning about xstrdup argument
2356964 rprint_fib6() was passing 1 instead of 'numeric' into INET6_sprint()
a70c568 lib/inet6.c:INET6_rresolve() - various fixes
a753a90 lib/util.c: introduxe xstrdup which catches NULL and use it in all places
e8510bc lib/inet.c: replace safe_strcpy with strdup for dynamically allocated cache, fixes truncation
c0d4640 Show symbolic default only for 0.0.0.0/0 (which fixes Suse Bug#821077)
0348310 lib/x25.c: fix compile error for -DDEBUG=1
2466c75 hostname: modernized man page
8f124a7 hostname: do not mention root on permission problems. Thanks to Elias Probst for mentioning the problem.
e569425 merged: replace all remaining strcpy() with safe_strncpy()
d5d5db4 route: document  -4 and -6 for route command
cb15dc2 fix issues caused by replaceing strcpy() with safe_strncpy()
604785a replace all remaining strcpy() with safe_strncpy()
dc752cc Merge pull request #1 from florianl/master
3a2961d Fix calculation of available space
3da9774 [PATCH] replace strcpy() with safe_strncpy()
6a14c03 slattach: tweak how we ignore the ret of fchown()
d87ceba ifconfig: use sockaddr_storage to hold addresses
911ccc4 ifconfig: use in_addr_t for IPv4 types
d1381f9 trim trailing whitespace
35eaa82 Make SELINUX compile.
266c140 get selinux build info via pkg-config
4953812 ignore gdb related files
4fa4939 fix building with selinux enabled
70953e9 use CFLAGS when linking too
56a8434 Man page syntax fixes.
7cf048d RĂ©mi Verschelde contributed french translation if ifconfig(8). https://sourceforge.net/p/net-tools/bugs/6/
36bd859 deal with 2-digits kernel versions as reported in Bug#7. https://sourceforge.net/p/net-tools/bugs/7/
e816552 Minor mostly comments typo fixes
3d31cea Use safe_strncpy wherever possible
60674bc updated manpage date, project url and email
adee8b7 mii-tool: dump also non standard registers
784f0af mii-tool: update manpage and usage
b30cd20 mii-tool: update PHY list
2370ab1 mii-tool: fix PHY ID in list
343864a Potential buffer overflow if kernel is missbehaved removed, reported by Adien Bustany
8b1ccd3 Merge branch 'master' of ssh://net-tools.git.sourceforge.net/gitroot/net-tools/net-tools
0727f6e Removed per-file version number
ded9e77 Removed per-file version number
a773411 Merge branch 'master' of ssh://net-tools.git.sourceforge.net/gitroot/net-tools/net-tools
4ee5ca4 Bump Version to 2.10 to be compatible with ubuntu
ae6e4a3 fix typo in statistics.c
4aa89e8 Bump to 1.70-alpha version and switch to net-tools-devel@lists.sourceforge.net as maintainer
339c720 mii-tool.c: increase buf size in show_basic_mii()
7e91281 netstat: check fstat's return value
8217b88 Some more fixes for german arp.8
d34e8f2 Use groff umlaut
868b18e Remove trailing linefeeds from arp.8 man pages
5333f7f arp(8): German translation updated + corrected, en: missing ) added
2bbc0ab arp(8): part of a sentence was missing
293bec6 update the dist target and add a distcheck target
70f4818 disable old features by default
8a77011 slattach: pass up exit status of shell command
77d0c1b Deprecated netstat, made usage with --inet/--inet6 clear.
6970e0b Minor cleanup of netstat usage()
01b8da0 Removed code duplication (Sourceforege#3567952 reported by hugh redelmeier)
e8b37a8 netstat memory leak fixed.
992a1de iptunnel.c: avoid fd leak in case of ioctl() error
53c4017 use scanf("%ms") instead of scanf("%as") for dynamic string
699e5db Consistently use defined exit codes.
6d09cad arp(8): fixed one more typo (simplyfy -> simplify)
776c653 arp(8): fixed typo (priveledge -> privilege)
b8cd80d Fixed 2 SELinux related compiler warnings.
a1de647 Removed SET and GET of interface metrics
5fac037 ifconfig(8): fix tunnel option syntax
6f050f1 infiniband: fix up new warning message
7182584 Make netstat -h and -V honor HAVE_SELINUX
4c91a43 removed unused variable
8509a38 new option for nestat, -Z shows SELinux context
064568d Make the code style consistent across netstat.c
aa01f8c man/de_DE/arp.8 fix translation (RHBZ#322901)
1e787c3 man/pt_BR/ifconfig.8: remove untranslated paragraph
653fd7c route(8): note that 'route mss' actually sets MTU (RHBZ#680837)
a4cbb77 ifconfig(8): note about supported format for IPv4 addresses (RHBZ#176661)
cb81887 ifconfig(8), netstat(8): mention iptables instead of ipchains, ipfwadm or ipfw.
4838db1 ifconfig(8): do not mention /proc/net/socket (RHBZ#661905)
5f5f16d Warn about changed encoding of man pages
6f5c897 Convert latin1 characters to UTF-8
1b74c24 inform user that ifconfig can correctly show only first 8 bytes of Infiniband hw address
9dc3a20 mii-tool: don't rely on eth0 being default network device name.
faf31f8 mii-tool: use <linux/mii.h> instead of "mii.h" and fix RHBZ #491358
6ccabd5 Possible problems found by static analysis of code.
0dcd1d1 plipconfig man page and usage output fixes
81814dc ifconfig interface:0 del <IP> will remove the aliased IP on IA64
796ba7f prevent 'netstat -nr -A inet6' from smashing stack (RHBZ #668047)
7b57688 fixed clearing flags in ifconfig (RHBZ #450252)
1f2c75d nameif crash for long interface names (RHBZ #209120)
cf33780 in kernel 2.6 /proc/net/x25_routes moves to /proc/net/x25/route
96b25f1 buffer overflow in arp (RHBZ #164695)
f1f8932 netstat -s reports negative octet counts
c8d4f43 The return value of nameif was wrong
81d60e0 Fix Content-Type in po files to avoid msgfmt warning.
ca5633d Updated README to reflect move to SourceForge.net
d613e1d Updated COPYING file.
98e1d90 mii-tool: fix inverted advertising/link features
0f65cdc slattach: man page documents /dev/ptmx support
4615091 slattach: add support for /dev/ptmx [Bug:3467521]
aa6c885 Merge branch 'master' of ssh://net-tools.git.sourceforge.net/gitroot/net-tools/net-tools
3642531 Bluetooth name fix
f6baf95 Add Bluetooth socket support
36b541c ifconfig/route: move to /bin
ca46fb1 ignore return value of fgets calls we dont care about
153ab83 hostname: check return value of getdomainname
9cd07a6 netstat: unify duplicate addr pretty printing
9eba397 fix integer/pointer cast warnings
c5e8dfb fix "format not a string literal" warnings
4d721ae fix up signed/unsigned warnings
46cd57a fix up unused variable warnings
243cd05 pull in stdlib.h for malloc() prototype
97b31ce clean up const/unsigned pointers with aftype/hwtype structs
7ae4aa5 get_sname: avoid buffer overflows if proto name is too long
6a9347c get_sname: unify numeric handling
2b4f34b get_sname: constify args/return when possible
5888d1b fix path to net-features.h
11310f8 patch from Bert Wesarg to separate basename of -p only if it is absulote path (in order to make argv[0]="sshd pty/0" display as sshd, and not as /0.
491cedb netstat: split host resolution out from --numeric-ports
74b2b54 netstat: fix handling of large socket numbers
8022436 hostname: fix FQDN handling with AAAA records
1dd95c5 corrected indention
c4b18d3 added some address family alias (still needs description) Bug#017886 Reported by Toralf
c65379a Bug #17812 Fix the handling of some of the HAVE_* flags ifdef vs if. --jpa468
1791685 [Bug #17645] Add netstat(8) support for RcvbufErrors, SndbufErrors. Thanks jwm
afb24b5 netstat: include sys/stat.h for S_ISREG macros
63582c8 Remove garbage ipv6 scopes in netstat output (Debian Bug #508110) Thanks Marco Steinacher for reporting.
60d538d netstat: PIDs can be long, Bug #199702 of Ubuntu Launchpad, Bug #16913 of Berlios
74f98bb interface: fix IPv6 parsing of interfaces with large indexes (> 255)
8003503 po/man: if LINGUAS is set, only install translations for those langs
0b2d037 improve dist target: include compiled gettext files, exclude scm files, and always prefix the paths in the tarball with the full versioned name
6c6e701 ignore generated gettext files
8c3c91f set BASEDIR to DESTDIR by default so the default install matches most packages
93f5da4 fix parallel build problems with the lib/ subdir and multiple targets that descend into it
043b0fa netstat: fix %*s handling -- the field takes an int, not a size_t
592e3a3 interface slip: cast keepalive/outfill to unsigned long to fix warnings on 64bit hosts -- no functional changes since these only have an 8bit range anyways
5edf1a4 ignore patch related files
8306063 netstat: add sctp connection decoding (Debian #306428 and Gentoo #258714)
0529337 ifconfig: fix no output when if_readlist_proc() fails
d50af4c slattach: use fchown() rather than chown() to avoid race between creation and permission changing
d114ba0 enable -fno-strict-aliasing until the code base gets a hefty clean up to fix all of the strict aliasing problems
f91f1b0 convert -idirafter to -I
fa5eec7 add missing dependency on version.h to libdir target to fix parallel build failures
f74e6f4 touch up build system to respect normal toolchain env vars rather than requiring people to set random custom ones
4db8743 handle raw "IP" masqinfo
b1c865c move man/fr_FR/*.8 pages into the "administrator" section
2e2ef32 arp: document the existing -e/-t options
15cf547 netstat: fix typo in udp display
9f22441 start a .gitignore
1e4c72b Missing include to make compileable with gcc-4.3.2 and glibc-2.9_p20081201 Patch from Petr Pisar [Berlios Bug#16232].
0d88998 ignore local .git dir
74f077e Fix for Feature Request from ssb [ Feature Request #4466 ] --continuous should flush stdout
9cfbce3 Czech translation update by petr.pisar@atlas.cz
0540cf6 Avoid name resolution for listening or established sockets (-l) by return fast. Problem reported by Ragnar Hojland Espinosa <ragnar@ragnar-hojland.com>
608b0fd scanf format length fix (non exploitable?) from Fabian Hugelshofer <hugelshofer2006@gmx.ch>
2750e60 -W option
bb2e60b new date, reformatted authors section (shorter)
9036cd6 sorted options
91f3c44 UDPlite Support for net-stat by Brian Micek <bmicek@gmail.com>
38720e8 Add wide option to prevent truncating IPv6 addresses
b6dabb7 moved H suport for Infiniband to the right section
24f959e Add hardware support for InfiniBand (Debian Bug #294252 Tom Duffy from Sun).
5737940 avoid unused filetype, fix formatting of -p headers
57b70fa conditional printing of values (to support -tuw options for netstat -s)
2e572c2 Support netstat -s with -6tuw options (incl. usage())
50165b2 Enable netstat -s for IPv6 (Debian Bug #453859 from Varun Chandramohan)
188a83f Avoid segfault of ifconfig(8) on missing /proc/net/dev (Debian Bug #222209 Pierre Lombard, Tollef Fog Heen)
0009712 Fix hypen in man pages (Debian Bug#288343 from Andrew Moise) Move man pages to sysadmin books update samples for route(8) (Debian Bug#400844, #368697 Danny Rathjens) update see also for ifconfig(8) (Debian Bug#365916 Dan Jacobs)
11b7232 fix some more hypens, changed book name and updated date to 2008-10-03
2fd7009 document the additional info in Send-Q/Recv-Q with recent kernels for listening sockets.
3e179eb allow netstat to print Rcv/Snd-Q for TCP_LISTEN (containing accept backlog)
7ac5bd2 Spelling error (Debian Bug #486448 reported by Volker Stolz)
bcebe9e fixed interfaceS spelling (Debian Bug #435690). Thanks Alan and Liu Xing.
3eb2013 more backoff
8ccfb33 backoff proc_fopen usage from etherfile.
b9963e7 use new page aliged proc_fopen for address families
eb21d0e Page aligned fopen buffer
20f0f8e Faster pagesize aligned fopen for netstat -s (Eric Dumazet)
41cae5e Better netstat -s error handling and larger buffers
94fb2fc cleanup man page (arp.8 2007-12-01)
c59ba33 ROSE support (not yet enabled)
4193b10 ROSE support
f6ec7f0 Fix Formatting Bug for ifconfig.8 (Debian Bug#450432 reported by Ivan Shmakov)
a7006fd unneeded %s in translation (Debian Bug #403033) Thanks to Marco Tulio Gontijo e Silva
2af5890 fixed signedness compiler warning
4347ec3 Fixed Debian Bug #392263 reported by Jochen Voss (buffer overflow in dev argument processing)
e44dfb3 formatting fixes from Justin Pryzby in Debian Bug #391495
2c5906a GigE Support by Stephen Hemminger from http://developer.osdl.org/shemminger/prototypes/mii-tool.tar.bz2 with verbose register patch from Dean Gaudet
b5b6f5b Debian Bug #260587 fixed, make sure the Columns state and user in netstat -t -e are separated by blanks. This may cause scripts to fail parsing by column width. Better wait for the script compatible output. Problems exists for ESTABLIHED state only.
3fecf29 use file version
79143c2 make slattach 3-wire -L mode work (no RTSCTS) (Debian Bug #175743)
2b01211 In order to fix alignment bugs with recent GCCs I have to use sockaddr_storage instead of sockaddr for allocation. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=340384 Thanks to Blars Blarson, Jurij Smakov and Steve Langasek
23e6090 X25 code compiles with 2.4 and 2.6 kernel headers (Debian Bug#271678)
464d107 Spelling fix for Debian Bug#326124 reported by A. Costa.
c47b0ce added link to berliOS
697cccc Eric Oberlander reported in Debian Bug#323261 that byte counter unit should be named "B" not "b".
3fb20be make ipx in 2.6 work (perhaps). Fixes http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=318503
fa7e5f6 minor formatting
c1b0c81 added pointer to iptables(8) not only ipchains(8) (Toralf Förster)
5ce2138 make  it compile with 2.4 and 2.6 kernel headers (Debian Bug #271678)
501fb48 desupport dontpub in arp.8 and arp -? (Debian Bug #203396)
7762692 updated pot file and use msgmerge instead of tupdate (Debian Bug #271426)
b07eb40 token ring patch from http://www.linuxtr.net/download/net-tools-1.60.patch Fixes Debian Bug #79462
d610378 line break fix debian bug #305637
85dad0a spellig fix debian bug #305638
0518929 spelling fix debian bug #305640
d1724c0 little formatting fix
f93122d default all options which work with recent systems  to on
d42c104 debians version of nstrcmp - ugly but works
a859bcb merged debian patch to make  it compile with new headers
6e5363d avoid namespace conflicts
faa3a97 added linebreak to  version signature
6ead3cb added diagnostics (closes debian bug #239229: EINVAL for downed interface)
b3412aa Typo Fix for german translation of arp po file reported by Christoph Berg (Debian Bug #176151)
321b4af make sure version string is helpful
7dfa4bd patch to recognize more hardware without MII support (from Redhat Bug#77882, notified by Tilmann Bubeck).
2085dd6 fix portability problem on 64-bit big endian. patch from Mads Martin Joergensen <mmj@suse.de>
17948a9 Maik Broemme contributed gcc warning fixes (break after default: label)
e02f9d0 fixes for man page bugs reported by Hugh Redelmeier.
aac294c Fix off by one in name length checking
a1c938f Use new style MII ioctls only. This will give you a warning, if compiled with old kernel source tree. It will also not work if compiled with new source on old kernels. The new ioctls also require root for reading, the old didnt. This fixes Debian bug #133648. No fallback compatibility is included for reasons of cleaner source.
5b24d94 bugfix: Skipping readlist, if readlist_proc sicceeded is not a good idea. I Rewrote that section for clarity. This is also present in the 1.60-8 debian package, which  fixed #197582 and #197924.
e273e09 make hostname compile warnign free with gcc 3.3 (Ec)
eb04ef3 added 'ull' prefix to unsigned long long constants to make gcc 3.3 happy
01c830f added mii-tool as featured tool
04331bd fixed compile warning (unneeded default: label in switch)
1c0f026 fixed wording of binary units counters and interpunctuation in netstat(8)
2868186 make it compile on stricter gcc3.3
408b6dd Fix Debian Bug#178209, Fix RedHat Bug#85748: nameif segfaults
8d55e6f Marc Lehmann pointed out that binary prefixes are made up by the IEEE and are not official SI yet. (Debian Bug #182478)
e06fed4 Add text for two new TCP statistics and fix some existing descriptions
651bf19 add a comment about alias interfaces and primary interface of scopes (intended to fix Debian wishlist bug #179780 and normal bug #64458)
4d2084d fixed an logic error in the "not found" handling for deleting entries also added a documentation comment and newer errno values for 2.4 Thanks to niteowl@intrinsity.com for pointing out.
fdc9421 use [::]:port as wildcard ipv6 address instead of *:port
9628c3a change confusing "*" into "<from_interface>"
cb9aeb9 - change columns of netstat -i/ifconfig -s to avoid run-into (Stefan Illner) - prevent segfault on protocol families without host error member - use /128 as default prefix if not specified instead of /0
88d85a7 Bruno Hall contributed a small and working nstrcmp()
1981012 corrected typo to make lib/interfaces.c actually compile
47af40a better ioctl fallback handling for interface listing, avoids duplicate interfaces, thanks for the help from Bruno Hall.
e2bee14 Implemented the Sean Reifenschneider suggested fflush() to the --watch function of mii-tool.
bbd4eca route now support -6 -4 or -46 option better layout for ipv6 routing table -C support for ipv6 routing cache more flags (i.e. reject) are recogniced for ipv6 routes
763c110 more stable ipx parsing (no segfault anymore)
0daeffd ethernet mac in lower case hex digits
f8f38f3 allow support for -6 and -4 options to netstat, also allow both, and print out tcp6, udp6 or raw6 if it is a v6 socket
8887da0 Jack Bloch noticed that the hw comamnd of ifconfig returns a confusing -EBUSY if interface is up (on lkml).
2ff6edc there is no such thing as -i option for ifconfig removed variable, fixed usage, added options to english man page
15080ea fixing debian bug #151130 reported by Dan Jacobson where netstat was printing 81 chars in a line for tcp, udp and raw.
2c3f73f thanks to "Erik A. Hendriks" <hendriks@lanl.gov> the interface nane bug in debian (#135744) is fixed, with his patch in (#149579) hopefully.
8cd8f53 this fixes segfault on -A "" and -F "" in mii-tool reported in debian bug #139027
7e52da1 simple patch from Ajax <ajax@firest0rm.org> (corrected) to print DDP (AppleTalk) routing table.
b03df1a brken buffer for printed irda address, reported by Christoph Bartelmus
d807bcb Fix some counter descriptions.
add5d92 export procnetdev_version, get_dev_fields, get_name from lib/interface.c for general usage (e.g. in my next patch to iptunnel)
5491f6f make RX-OK and TX-OK col. in "netstat -i" 1 digit longer by left aligning metric and TX-OVR and shorten max length of them.
5b1a3bb fixed typo in german man page and added a comment that man page is currently not completely up-to-date.
453c30f inodes in unix domain sockets are now padded to 8chars (netstat -x)
bdb279b fixes debian bug#134600 (sigsegv in netstat on negative inoded in /proc/net/udp) on "netstat -lpu". Thanks to Arnaud Giersch for the report.
4478c3c fixed debian bug#111642 reported by Jonathan Amery <jdamery@pick.ucam.org> (newline missing in nameif usage)
06be6d8 this fixes Debian Bug #109164 (netstat -ci does only print stats once). It also renames add_interface and free_interface list to if_cache_add/free. I am not sure if removing the "proc_read" flag will harm performance, looks likt this check is never triggereed. Anyway, we need more efficient b-search sooner or later.
1aaeb28 fixed minor errors in netstat.8 man page (--numeric-users was missing, some font problems and --interfaces has no <interface> argument (Debian Bug #120475) thanks for the report to Uwe Hermann.
2aea5d6 fixed debian bug#109370 (empty line if baseaddr < 0x100 in ifconfig). Patch by Jonathan Amery <jdamery@pick.ucam.org>
29e4329 added EUI64 Hardware Address Family Daniel Stodden <stodden@in.tum.de>
68ca19b added documentation about SI prefixes for decimal numbers
b93fefc added SI unit patch from adam@cfar.umd.edu to output of ifconfig byte counters
811cf0a sscanf pattern is %Lu not %llu for long long unsigned byte counters. This fixes the 0 byte output of ifconfig/netstat -i
017c996 changed troff syntax according to ESR's report
73ff76e fixed troff syntax, as reported by ESR. Did not changed the date of the man page.
e1dde4b delay the setting of netmask derived from /mask after setting address (Debian Bug #116573 reported by Brian Warner)
590aeaa minor fix to return E_USAGE on -V instead of exit(0);
234b63a failed to set error flag if netmask setting reported an error (Debian Bug #117837 reported by Sam Clegg)
81f8bc8 (Finally) update netstat -s for 2.4 statistics.
d67a12a Only print unknown statistics when their counter is > 0.
fb9c5b0 Fix netstat -- don't print all v4 addresses as v4-mapped-in-v6.
fc474dc Increase SIOCGIFCONF buffer size faster for many interfaces.
c8a6725 Remove Debian-specific path.
03f5eac doh
eb7fb72 Fix confusion between bits and bytes
c899ac9 made man page more useful and added right link for irq conflicts in ifconfig.8
6a06088 a fix for Debian which can be nicely included upstream (#102139)
866746a man page fix CLOSED -> CLOSE
afaea89 this will check after clearing a flag, that it is indeed cleared. it will also be a bit more verbose and precise on errors. See Debian Bug #102474
0284110 fixed CLOSED -> CLOSE in french and english manpage as of bug report from Matthew Tippett
1fa4848 changed a type arp -a now prints PUB instead of PUP for proxy arp entries
643ba69 Update from Meelis Roos

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agosite: Make sys_siglist default to no
Khem Raj [Tue, 21 Jul 2020 22:10:09 +0000 (15:10 -0700)]
site: Make sys_siglist default to no

glibc 2.32 has deprecated sys_siglist [1]

since no is default for musl as well, therefore elevate it to common
site file for all

[1] https://sourceware.org/git/?p=glibc.git;a=commit;h=b1ccfc061feee9ce616444ded8e1cd5acf9fa97f

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agogcc-10.1: add fix for PR 96130
Dmitry Baryshkov [Thu, 16 Jul 2020 22:36:35 +0000 (01:36 +0300)]
gcc-10.1: add fix for PR 96130

Fix for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96130 causing ICE
(SegFault) when compiling current Mesa git tree.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agogcc: mitigate the Straight-line Speculation attack
Ross Burton [Wed, 22 Jul 2020 14:10:09 +0000 (15:10 +0100)]
gcc: mitigate the Straight-line Speculation attack

Straight-line Speculation is a SPECTRE-like attack on Armv8-A, further
details can be found in the white paper here:

https://developer.arm.com/support/arm-security-updates/speculative-processor-vulnerability/downloads/straight-line-speculation

Backport the GCC patches to mitigate the attack.

CVE: CVE-2020-13844
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoe2fsprogs: fix up check for hardlinks always false if inode > 0xFFFFFFFF
Hongxu Jia [Tue, 21 Jul 2020 02:16:01 +0000 (19:16 -0700)]
e2fsprogs: fix up check for hardlinks always false if inode > 0xFFFFFFFF

While file has a large inode number (> 0xFFFFFFFF), mkfs.ext4 could
not parse hardlink correctly.

Prepare three hardlink files for mkfs.ext4

$ ls -il rootfs_ota/a rootfs_ota/boot/b rootfs_ota/boot/c
11026675846 -rw-r--r-- 3 hjia users 0 Jul 20 17:44 rootfs_ota/a
11026675846 -rw-r--r-- 3 hjia users 0 Jul 20 17:44 rootfs_ota/boot/b
11026675846 -rw-r--r-- 3 hjia users 0 Jul 20 17:44 rootfs_ota/boot/c

$ truncate -s 1M rootfs_ota.ext4

$ mkfs.ext4 -F -i 8192 rootfs_ota.ext4 -L otaroot -U fd5f8768-c779-4dc9-adde-165a3d863349 -d rootfs_ota

$ mkdir mnt && sudo mount rootfs_ota.ext4 mnt

$ ls -il mnt/rootfs_ota/a mnt/rootfs_ota/boot/b
12 -rw-r--r-- 1 hjia users 0 Jul 20 17:44 mnt/a
14 -rw-r--r-- 1 hjia users 0 Jul 20 17:44 mnt/boot/b
15 -rw-r--r-- 1 hjia users 0 Jul 20 17:44 mnt/boot/c

After applying this fix
$ ls -il mnt/rootfs_ota/a mnt/rootfs_ota/boot/b
12 -rw-r--r-- 3 hjia users 0 Jul 20 17:44 mnt/a
12 -rw-r--r-- 3 hjia users 0 Jul 20 17:44 mnt/boot/b
12 -rw-r--r-- 3 hjia users 0 Jul 20 17:44 mnt/boot/c

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agosudo: set with-rundir to /run/sudo
Ricardo Salveti [Tue, 21 Jul 2020 03:09:26 +0000 (00:09 -0300)]
sudo: set with-rundir to /run/sudo

Set with-rundir to a known path instead of letting configure decide
which is the best folder to store the timestamp files. This is required
otherwise it might end up at /sudo, which will cause errors on a ro
filesystem.

Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agogtk-immodules-cache.bbclass: fix post install scriptlet error
Changqing Li [Tue, 21 Jul 2020 03:06:03 +0000 (11:06 +0800)]
gtk-immodules-cache.bbclass: fix post install scriptlet error

package libgtk-3.0 don't install dir /usr/lib/gtk-3.0/3.0.0/ by default.
when install package gtk-immodule-xim, it is possible met below error:

/var/tmp/rpm-tmp.tlfoeo: line 17: /usr/lib/gtk-3.0/3.0.0/immodules.cache: No such file or directory
warning: %post(gtk-immodule-xim-2.24.32-r0.0.cortexa72) scriptlet failed, exit status 1

fix by create the dir when try to write to /usr/lib/gtk-3.0/3.0.0/immodules.cache

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agobusybox: make hwclock compatible with glibc 2.31
Sakib Sajal [Tue, 21 Jul 2020 17:59:45 +0000 (13:59 -0400)]
busybox: make hwclock compatible with glibc 2.31

settimeofday(2) has been deprecated as of glibc 2.31
which hwclock makes use of. This patch makes hwclock
compatible with glibc v2.31
See patch for more details:
  busybox/0001-hwclock-make-glibc-2.31-compatible.patch

Fixes [YOCTO #13981]

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agostartup-notification: add time_t type mismatch patch from upstream
Ross Burton [Tue, 21 Jul 2020 15:48:15 +0000 (16:48 +0100)]
startup-notification: add time_t type mismatch patch from upstream

Backport a patch to fix issues where sizeof(time_t) != sizeof(long).

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoimage.bbclass: improve wording when image size exceeds the specified limit
Daniel Ammann [Mon, 20 Jul 2020 11:08:17 +0000 (13:08 +0200)]
image.bbclass: improve wording when image size exceeds the specified limit

Signed-off-by: Daniel Ammann <daniel.ammann@bytesatwork.ch>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoexpat: Added ptest
Oleksandr [Mon, 20 Jul 2020 16:54:42 +0000 (19:54 +0300)]
expat: Added ptest

For ptest support of expat package:

 - expat_2.2.9.bb recipe was switched on cmake-based building system to
avoid cahnges in autotools build system which considered in upstream as
potentially deprecated (https://github.com/libexpat/libexpat/issues/330).

 - cmake-native_3.17.3.bb recipe was forced to use bundled version of
expat from CMake source tree. Therefore expat-native package has been removed
from DEPENDS variable for cmake-native recipe. Without
these changes, next dependency loop appears:

Dependency loop #1 found:
  Task /home/opopovych/repos/poky/meta/recipes-devtools/cmake/cmake-native_3.17.3.bb:do_compile (dependent Tasks ['cmake-native_3.17.3.bb:do_configure'])
  Task /home/opopovych/repos/poky/meta/recipes-devtools/cmake/cmake-native_3.17.3.bb:do_install (dependent Tasks ['cmake-native_3.17.3.bb:do_compile'])
  Task /home/opopovych/repos/poky/meta/recipes-devtools/cmake/cmake-native_3.17.3.bb:do_populate_sysroot (dependent Tasks ['cmake-native_3.17.3.bb:do_install'])
  Task virtual:native:/home/opopovych/repos/poky/meta/recipes-core/expat/expat_2.2.9.bb:do_prepare_recipe_sysroot (dependent Tasks ['cmake-native_3.17.3.bb:do_populate_sysroot', 'ninja_1.10.0.bb:do_populate_sysroot', 'expat_2.2.9.bb:do_fetch'])
  Task virtual:native:/home/opopovych/repos/poky/meta/recipes-core/expat/expat_2.2.9.bb:do_configure (dependent Tasks ['expat_2.2.9.bb:do_patch', 'expat_2.2.9.bb:do_prepare_recipe_sysroot', 'expat_2.2.9.bb:do_generate_toolchain_file', 'expat_2.2.9.bb:do_deploy_source_date_epoch'])
  Task virtual:native:/home/opopovych/repos/poky/meta/recipes-core/expat/expat_2.2.9.bb:do_compile (dependent Tasks ['expat_2.2.9.bb:do_configure'])
  Task virtual:native:/home/opopovych/repos/poky/meta/recipes-core/expat/expat_2.2.9.bb:do_install (dependent Tasks ['expat_2.2.9.bb:do_compile'])
  Task virtual:native:/home/opopovych/repos/poky/meta/recipes-core/expat/expat_2.2.9.bb:do_populate_sysroot (dependent Tasks ['expat_2.2.9.bb:do_install'])
  Task /home/opopovych/repos/poky/meta/recipes-devtools/cmake/cmake-native_3.17.3.bb:do_prepare_recipe_sysroot (dependent Tasks ['expat_2.2.9.bb:do_populate_sysroot', 'xz_5.2.5.bb:do_populate_sysroot', 'bzip2_1.0.8.bb:do_populate_sysroot', 'ncurses_6.2.bb:do_populate_sysroot', 'zlib_1.2.11.bb:do_populate_sysroot', 'cmake-native_3.17.3.bb:do_fetch', 'curl_7.71.1.bb:do_populate_sysroot'])
  Task /home/opopovych/repos/poky/meta/recipes-devtools/cmake/cmake-native_3.17.3.bb:do_configure (dependent Tasks ['cmake-native_3.17.3.bb:do_deploy_source_date_epoch', 'cmake-native_3.17.3.bb:do_patch', 'cmake-native_3.17.3.bb:do_prepare_recipe_sysroot'])

 - run-ptest script that initalizes testing, copies testing
executables' output to log file and measures execution time of each testing
executable was added.

 - patch that implements output of each testcase result in testing exectutable
was added.

Signed-off-by: Oleksandr Popovych <oleksandr.s.popovych@globallogic.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoclasses/package: Use HOST_OS for runtime dependencies
Joshua Watt [Tue, 21 Jul 2020 17:52:19 +0000 (12:52 -0500)]
classes/package: Use HOST_OS for runtime dependencies

The code was using TARGET_OS to try and detect what type of OS the
packages would be running on, but this is incorrect. TARGET_OS is the OS
for which the package will generate output (e.g. GCC output target or
GDB debugging target). The OS where the package will run is the HOST_OS.
Note that HOST_OS only differs from TARGET_OS when doing a
canadian cross compile, and even then in our case only when doing so for
a non-Linux host (e.g. MinGW).

Fix the code to use HOST_OS instead.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoclasses/cmake: Fix host detection
Joshua Watt [Tue, 21 Jul 2020 17:52:11 +0000 (12:52 -0500)]
classes/cmake: Fix host detection

Fixes the class to use HOST_OS and HOST_ARCH to set the cmake SYSTEM
variables. The HOST variables should be used instead of
TARGET_OS/TARGET_ARCH because we want to control how cmake compiles for
where the package is going to run (the host), not what it will be
generating output for (the target). The distinction is only really
relevant when building canadian cross recipes.

Also fix up the host OS detection to account for MinGW by setting
CMAKE_SYSTEM_NAME to "Windows". This eliminates the need for meta-mingw
to patch this in all the cmake recipes it builds.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agolib/oe/reproducible: Fix error when no git HEAD
Joshua Watt [Mon, 20 Jul 2020 17:56:32 +0000 (12:56 -0500)]
lib/oe/reproducible: Fix error when no git HEAD

Fixes an error that occurs when attempting to get the timestamp of the
latest commit when there is no HEAD in the git repository. The easiest
way to trigger this condition is to use the 'subdir=' option when
specifying a 'git://' SRC_URI.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agoclasses/reproducible: Move to library code
Joshua Watt [Mon, 20 Jul 2020 17:56:31 +0000 (12:56 -0500)]
classes/reproducible: Move to library code

Moves most of the python code used for dealing with the source date
epoch to library code.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agooeqa/qemurunner: Add priority/nice information for running processes
Richard Purdie [Mon, 20 Jul 2020 10:54:33 +0000 (11:54 +0100)]
oeqa/qemurunner: Add priority/nice information for running processes

We're seeing failures due to system load. In theory we've set process
nice levels which should compensate for this. Add debugging so we can
find out if they're being correctly applied.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agopseudo: Update to add OFC fcntl lock updates
Richard Purdie [Mon, 20 Jul 2020 10:27:32 +0000 (11:27 +0100)]
pseudo: Update to add OFC fcntl lock updates

This adds in support for the OFC fcntl ioctl lock flags, removing
warnings on some more recent linux kernels.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
4 years agocryptodev-module: Backport a patch to fix build failure with kernel v5.8
He Zhe [Mon, 20 Jul 2020 07:39:17 +0000 (15:39 +0800)]
cryptodev-module: Backport a patch to fix build failure with kernel v5.8

Fix the following build failure with linux-yocto-dev

zc.c:61:17: error: 'struct mm_struct' has no member named 'mmap_sem';
did you mean 'mmap_base'?
   61 |  down_read(&mm->mmap_sem);
      |                 ^~~~~~~~
      |                 mmap_base
zc.c:77:15: error: 'struct mm_struct' has no member named 'mmap_sem';
did you mean 'mmap_base'?
   77 |  up_read(&mm->mmap_sem);
      |               ^~~~~~~~
      |               mmap_base

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>