View Issue Details

IDProjectCategoryView StatusLast Update
0000638AlmaLinux-8sambapublic2026-07-02 08:11
Reportervroca Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
Status newResolutionopen 
Summary0000638: samba-4.19.4-16.el8_10.src.rpm fails to build on AlmaLinux 8.10: samba-4.19-redhat.patch cannot be applied
DescriptionI am trying to rebuild the official samba-4.19.4-16.el8_10.src.rpm package on AlmaLinux 8.10.

The build process fails during the %prep phase while applying the samba-4.19-redhat.patch patch.

The error obtained is:

/usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch

1 out of 3 hunks FAILED -- saving rejects to file lib/util/substitute.c.rej
1 out of 7 hunks FAILED -- saving rejects to file source3/printing/print_generic.c.rej
1 out of 1 hunk FAILED -- saving rejects to file docs-xml/smbdotconf/printing/printcommand.xml.rej

error: Bad exit status from /var/tmp/rpm-tmp.ulMvkp (%prep)
Steps To ReproduceSystem information:
================

# cat /etc/almalinux-release
AlmaLinux release 8.10 (Cerulean Leopard)
# uname -a
Linux almadevel-8.uji.es 4.18.0-553.137.1.el8_10.x86_64 #1 SMP Mon Jun 22 07:09:26 EDT 2026 x86_64 x86_64 x86_64 GNU/Linux
# rpm -q rpm rpm-build redhat-rpm-config
rpm-4.14.3-32.el8_10.x86_64
rpm-build-4.14.3-32.el8_10.x86_64
redhat-rpm-config-131-1.el8.alma.noarch

SRPM source:
===========

The failure is reproduced using the SRPM provided by:
# dnf download --source samba

The source archive samba-4.19.4.tar.xz and the patch file samba-4.19-redhat.patch are both included in the same SRPM.

Steps to reproduce:
================

1) Install the SRPM:
# rpm -ivh samba-4.19.4-16.el8_10.src.rpm

2) Build the package:
# rpmbuild -ba ~/rpmbuild/SPECS/samba.spec

Result:
======

Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Ebwc28
+ umask 022
+ cd /home/user/rpmbuild/usrsrcredhat8-x86_64/BUILD
+ xzcat /home/user/rpmbuild/usrsrcredhat8-x86_64/SOURCES/samba-4.19.4.tar.xz
+ gpgv2 --quiet --keyring /home/user/rpmbuild/usrsrcredhat8-x86_64/SOURCES/samba-pubkey_AA99442FB680B620.gpg /home/user/rpmbuild/usrsrcredhat8-x86_64/SOURCES/samba-4.19.4.tar.asc -
gpgv: Signature made Mon Jan 8 15:36:00 2024 CET
gpgv: using RSA key 81F5E2832BD2545A1897B713AA99442FB680B620
gpgv: Good signature from "Samba Distribution Verification Key <samba-bugs@samba.org>"
+ cd /home/user/rpmbuild/usrsrcredhat8-x86_64/BUILD
+ rm -rf samba-4.19.4
+ /usr/bin/xz -dc /home/user/rpmbuild/usrsrcredhat8-x86_64/SOURCES/samba-4.19.4.tar.xz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd samba-4.19.4
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ /usr/bin/cat /home/user/rpmbuild/usrsrcredhat8-x86_64/SOURCES/samba-4.19-redhat.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch
1 out of 3 hunks FAILED -- saving rejects to file lib/util/substitute.c.rej
1 out of 7 hunks FAILED -- saving rejects to file source3/printing/print_generic.c.rej
1 out of 1 hunk FAILED -- saving rejects to file docs-xml/smbdotconf/printing/printcommand.xml.rej
error: Bad exit status from /var/tmp/rpm-tmp.Ebwc28 (%prep)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.Ebwc28 (%prep)
Additional InformationThe equivalent Samba source package from the Red Hat Enterprise Linux 8.10 distribution does not show this issue and builds successfully. The RHEL 8.10 package compiles correctly using the same build process.
Tagssamba
abrt_hash
URL

Activities

metalefty

2026-07-02 06:19

manager   ~0001226

samba-4.19.4-10.el8_10.src.rpm build successfully with mock.

I don't get what for you're extracting srpm to build.

vroca

2026-07-02 08:11

reporter   ~0001227

Thank you for checking.

However, I believe there is a version mismatch.

You mention testing samba-4.19.4-10.el8_10.src.rpm, while the package that fails is samba-4.19.4-16.el8_10.src.rpm.

The SRPM we are using is the one downloaded from:

https://vault.almalinux.org/8.10/BaseOS/Source/Packages/samba-4.19.4-16.el8_10.src.rpm

Its SHA256 checksum is:

5d812eef9c28d45f6b546738f9a215cf34dbe2c214ca10fac3ab6833eb41654a

In our environment, we extract the SRPM because we apply a set of custom patches after first verifying that the original package builds successfully without any modifications.
But the build of the unmodified samba-4.19.4-16.el8_10.src.rpm fails.

The equivalent RHEL 8.10 SRPM builds successfully in the same environment.

Issue History

Date Modified Username Field Change
2026-06-30 12:55 vroca New Issue
2026-06-30 12:55 vroca Tag Attached: samba
2026-07-02 06:19 metalefty Note Added: 0001226
2026-07-02 08:11 vroca Note Added: 0001227