Closed septatrix closed 6 months ago
COPR is https://copr.fedorainfracloud.org/coprs/septatrix/gstreamer1/ where I added the gstreamer1-plugins-good recently.
Running mkosi with -ff resolves this but it is not clear to me from the documentation why this would be the case.
I need a reproducer or the logs from /var/log/dnf5.log
when running with --debug-shell and it fails
Running with -ff
resulted in a fresh cache so I can no longer reproduce this currently but I will try to add a new package to the COPR and reproduce the issue. Than I could at least provide the dnf5 log
However, curl https://download.copr.fedorainfracloud.org/results/septatrix/gstreamer1/fedora-40-x86_64/repodata/2b822d65ea0d3c372f3ef0fc82feac924e6290bdc7a3d3f1961e5ac062835934-primary.xml.gz | zcat | grep gstreamer1-vaapi
works and shows entries for a gstreamer1-vaapi
package with version 1.24.3
So my guess is that unless -ff
is specified, we don't explicitly refresh caches when syncing repository metadata. You can try replacing context.args.force > 1
in dnf.py's sync() method with context.args.force > 0
and see if that fixes it.
mkosi commit the issue has been seen with
main
Used host distribution
Fedora 40
Used target distribution
Fedora 40
Linux kernel version used
6.8.9-300.fc40.x86_64
CPU architectures issue was seen on
x86_64
Unexpected behaviour you saw
DNF5 is unable to find a package I recently added to a COPR even though I explicitly passed
--cache-only=never
to refresh the metadata. DNF from my host and DNF5 from a container are able to find it so the package is properly advertised by the COPRUsed mkosi config
config as JSON
```ini { "Images": [ { "Acl": false, "Architecture": "x86-64", "Autologin": true, "BaseTrees": [], "BiosBootloader": "none", "Bootable": "enabled", "Bootloader": "systemd-boot", "BuildDirectory": "/home/septatrix/Documents/Simply5/programming/digital-signage-linux/mkosi.builddir/fedora~40~x86-64", "BuildPackages": [ "pnpm", "nodejs-full-i18n" ], "BuildScripts": [ "/home/septatrix/Documents/Simply5/programming/digital-signage-linux/mkosi.images/system/mkosi.build" ], "BuildSources": [ { "Source": "/home/septatrix/Documents/Simply5/programming/digital-signage-mkosi-copy", "Target": "digital-signage" } ], "BuildSourcesEphemeral": true, "CacheDirectory": "/home/septatrix/Documents/Simply5/programming/digital-signage-linux/mkosi.cache", "CacheOnly": "always", "Checksum": false, "CleanPackageMetadata": "auto", "CleanScripts": [ "/home/septatrix/Documents/Simply5/programming/digital-signage-linux/mkosi.images/system/mkosi.clean" ], "CompressLevel": 3, "CompressOutput": "none", "ConfigureScripts": [], "Credentials": { "agetty.autologin": "root", "firstboot.locale": "C.UTF-8", "firstboot.timezone": "Europe/Berlin", "login.noauth": "yes", "ssh.authorized_keys.root": "..." }, "Dependencies": [], "Distribution": "fedora", "Environment": { "GIT_PROXY_SSL_CAINFO": "/proxy.cacert", "IMAGE_ID": "DSPlayerOS", "IMAGE_VERSION": "2.5.4", "SYSTEMD_TMPFILES_FORCE_SUBVOL": "0", "TERM": "xterm-256color" }, "EnvironmentFiles": [], "Ephemeral": true, "ExtraSearchPaths": [], "ExtraTrees": [ { "Source": "/home/septatrix/Documents/Simply5/programming/digital-signage-linux/mkosi.images/system/mkosi.extra", "Target": null } ], "FinalizeScripts": [], "Format": "directory", "ForwardJournal": null, "Hostname": "Digital-Signage-Player", "Image": "system", "ImageId": "DSPlayerOS", "ImageVersion": "2.5.4", "Images": [ "system" ], "Include": [], "Incremental": true, "InitrdInclude": [], "InitrdPackages": [], "InitrdVolatilePackages": [], "Initrds": [], "KernelCommandLine": [ "pci=noaer", "rw", "audit=0" ], "KernelCommandLineExtra": [ "systemd.wants=network.target", "module_blacklist=vmw_vmci", "systemd.tty.term.ttyS0=xterm-256color", "systemd.tty.columns.ttyS0=80", "systemd.tty.rows.ttyS0=24", "ip=enc0:any", "ip=enp0s1:any", "ip=enp0s2:any", "ip=host0:any", "ip=none", "loglevel=4", "SYSTEMD_SULOGIN_FORCE=1" ], "KernelModulesExclude": [], "KernelModulesInclude": [], "KernelModulesIncludeHost": false, "KernelModulesInitrd": true, "KernelModulesInitrdExclude": [ ".*" ], "KernelModulesInitrdInclude": [ "^fs/(?!(smb|nfs|nls)/)", "^drivers/gpu/drm/(intel|amd)", "^drivers/md/", "^drivers/block/", "^drivers/hid/", "^drivers/input/", "crypto/", "tpm/", "virtio", "nvme", "hid-generic", "squashfs", "ahci", "usb-storage", "nls_iso8859-1", "kmod-nls-cp437", "sdhci-pci", "sdhci-acpi", "mmc-block", "xhci-pci", "dwc2", "autofs4", "algif_skcipher", "cryptomgr", "dm_crypt", "dm_mod", "aes", "cbc", "echainiv", "sha256", "xts", "aesni-intel", "phy-generic", "fixed", "gpio-regulator", "genet", "i2c-bcm2708", "sdhci-iproc", "vc4", "nvmem_mtk-efuse", "mt6360_charger", "mtk-pmic-wrap", "^drivers/hid", "vmd", "xhci-pci-renesas", "bochs", "i915", "mpt3sas", "raid_class", "scsi_transport_sas", "ses", "virtio_scsi", "virtio_blk", "virtio_gpu", "virtio_input", "hv_storvsc", "megaraid_sas", "mptspi", "virtio-pci", "virtio-mmio", "hv-vmbus", "pci-hyperv", "xen-pcifront", "ahci", "nvme", "sd_mod", "sr_mod", "virtio-blk", "virtio-scsi", "hv-storvsc", "xen-blkfront", "dm_crypt", "scsi_dh_rdac", "scsi_dh_emc", "scsi_dh_alua", "^drivers/usb/storage", "^ide", "nvme", "vmd", "virtio_blk", "virtio_scsi", "hid_generic", "unix", "ehci-hcd", "ehci-pci", "ehci-platform", "ohci-hcd", "ohci-pci", "uhci-hcd", "usbhid", "xhci-hcd", "xhci-pci", "xhci-plat-hcd", "^drivers/hid", "^drivers/tty/serial", "^drivers/input/serio", "^drivers/input/keyboard", "^drivers/pci/host", "^drivers/pci/controller", "^drivers/pinctrl", "^drivers/usb/typec", "^drivers/watchdog", "yenta_socket", "spi_pxa2xx_platform", "atkbd", "i8042", "firewire-ohci", "pcmcia", "hv-vmbus", "virtio", "virtio_ring", "virtio_pci", "pci_hyperv", "^drivers/pcmcia", "sg", "sr_mod", "sd_mod", "scsi_dh", "ata_piix", "btrfs", "ext2", "ext3", "ext4", "f2fs", "isofs", "jfs", "reiserfs", "udf", "xfs", "nfs", "nfsv2", "nfsv3", "nfsv4", "af_packet", "atkbd", "i8042", "psmouse", "virtio_pci", "virtio_mmio", "^drivers/usb/host", "^drivers/usb", "extcon-usb-gpio", "extcon-usbc-cros-ec", "axp20x_usb_power", "^drivers/input/keyboard", "^drivers/hid", "cros_ec_spi", "^drivers/rtc", "^drivers/net/(?!wireless/)", "nvmem-imx-ocotp", "^drivers/ide", "^drivers/mmc", "^drivers/scsi", "^drivers/ufs", "mptfc", "mptsas", "mptscsih", "mptspi", "zfcp", "^drivers/ata", "^drivers/block", "^drivers/nvme", "vmd", "deflate", "zlib", "lzo", "ubi", "ubifs", "firewire-ohci", "firewire-sbp2", "dasd_diag_mod", "dasd_eckd_mod", "dasd_fba_mod", "^drivers/usb/storage", "rockchipdrm", "pwm-cros-ec", "pwm_bl", "pwm-rockchip", "panel-simple", "analogix-anx6345", "pwm-sun4i", "sun4i-drm", "sun8i-mixer", "panel-edp", "pwm_imx27", "nwl-dsi", "ti-sn65dsi86", "imx-dcss", "mux-mmio", "mxsfb", "imx8mq-interconnect" ], "KernelModulesInitrdIncludeHost": false, "Key": null, "Keymap": "de", "LocalMirror": null, "Locale": "en_US.UTF-8", "LocaleMessages": "en_US.UTF-8", "Machine": null, "MakeInitrd": false, "ManifestFormat": [ "json" ], "MicrocodeHost": false, "MinimumVersion": null, "Mirror": null, "NSpawnSettings": null, "Output": "DSPlayerOS_2.5.4", "OutputDirectory": "/home/septatrix/Documents/Simply5/programming/digital-signage-linux/mkosi.output", "Overlay": false, "PackageCacheDirectory": null, "PackageDirectories": [], "PackageManagerTrees": [ { "Source": "/home/septatrix/Documents/Simply5/programming/digital-signage-linux/mkosi.images/system/mkosi.skeleton", "Target": null } ], "Packages": [ "kernel-core", "kernel-modules", "systemd", "systemd-boot", "systemd-udev", "systemd-resolved", "systemd-networkd", "systemd-container", "zram-generator", "zram-generator-defaults", "udev", "dbus", "polkit", "kernel-tools", "iproute", "iputils", "nano", "less", "btop", "htop", "ncdu", "tree", "iotop", "igt-gpu-tools", "hw-probe", "edid-decode", "lsusb", "lspci", "libva-utils", "python3", "python3-pydantic", "python3-pydantic-settings", "python3-hypercorn+uvloop", "python3-httpx", "python3-icalendar", "python3-dateutil", "mailcap", "weston", "cog", "glib-networking", "urw-base35-nimbus-roman-fonts", "gstreamer1", "gstreamer1-plugins-good >= 1.24", "gstreamer1-plugins-base-tools >= 1.24", "gstreamer1-plugins-bad-free >= 1.24", "intel-media-driver", "iwd", "openssh-server", "openvpn", "node-exporter", "@hardware-support", "linux-firmware", "wireless-regdb", "microcode_ctl", "amd-ucode-firmware", "libbpf", "tpm2-tss", "e2fsprogs" ], "Passphrase": null, "PostInstallationScripts": [ "/home/septatrix/Documents/Simply5/programming/digital-signage-linux/mkosi.images/system/mkosi.postinst" ], "PrepareScripts": [ "/home/septatrix/Documents/Simply5/programming/digital-signage-linux/mkosi.images/system/mkosi.prepare" ], "Profile": null, "ProxyClientCertificate": null, "ProxyClientKey": null, "ProxyExclude": [], "ProxyPeerCertificate": "/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem", "ProxyUrl": null, "QemuArgs": [], "QemuCdrom": false, "QemuDrives": [], "QemuFirmware": "auto", "QemuFirmwareVariables": null, "QemuGui": true, "QemuKernel": null, "QemuKvm": "auto", "QemuMem": 2147483648, "QemuSmp": 1, "QemuSwtpm": "auto", "QemuVsock": "auto", "QemuVsockConnectionId": -1, "Release": "40", "RemoveFiles": [], "RemovePackages": [], "RepartDirectories": [ "/home/septatrix/Documents/Simply5/programming/digital-signage-linux/mkosi.images/system/mkosi.repart" ], "RepartOffline": true, "Repositories": [], "RepositoryKeyCheck": true, "RootPassword": [ "asdf", false ], "RootShell": null, "RuntimeBuildSources": false, "RuntimeNetwork": "user", "RuntimeScratch": "auto", "RuntimeSize": 4294967296, "RuntimeTrees": [], "SELinuxRelabel": "auto", "SectorSize": null, "SecureBoot": false, "SecureBootAutoEnroll": true, "SecureBootCertificate": "/home/septatrix/Documents/Simply5/programming/digital-signage-linux/mkosi.crt", "SecureBootKey": "/home/septatrix/Documents/Simply5/programming/digital-signage-linux/mkosi.key", "SecureBootKeySource": { "Source": "", "Type": "file" }, "SecureBootSignTool": "auto", "Seed": "926cba0f-d127-460d-ab12-84f1409f58e9", "ShimBootloader": "none", "Sign": false, "SignExpectedPcr": "auto", "SkeletonTrees": [ { "Source": "/home/septatrix/Documents/Simply5/programming/digital-signage-linux/mkosi.images/system/mkosi.skeleton", "Target": null } ], "SourceDateEpoch": null, "SplitArtifacts": false, "Ssh": true, "SshCertificate": "/home/septatrix/Documents/Simply5/programming/digital-signage-linux/mkosi.crt", "SshKey": "/home/septatrix/Documents/Simply5/programming/digital-signage-linux/mkosi.key", "SyncScripts": [], "Timezone": "Europe/Berlin", "ToolsTree": "default", "ToolsTreeCertificates": true, "ToolsTreeDistribution": "fedora", "ToolsTreeMirror": null, "ToolsTreePackageManagerTrees": [], "ToolsTreePackages": [ "python3-pip", "pnpm", "nodejs-full-i18n", "qemu-ui-*", "qemu-device-display-*" ], "ToolsTreeRelease": "40", "ToolsTreeRepositories": [], "UnifiedKernelImages": "auto", "UnitProperties": [], "UseSubvolumes": "auto", "VerityCertificate": "/home/septatrix/Documents/Simply5/programming/digital-signage-linux/mkosi.crt", "VerityKey": "/home/septatrix/Documents/Simply5/programming/digital-signage-linux/mkosi.key", "VerityKeySource": { "Source": "", "Type": "file" }, "VirtualMachineMonitor": "qemu", "VolatilePackages": [], "WithDocs": true, "WithNetwork": false, "WithRecommends": false, "WithTests": true, "WorkspaceDirectory": null } ] } ```mkosi output