View Issue Details

IDProjectCategoryView StatusLast Update
0000638AlmaLinux-8sambapublic2026-06-30 12:55
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

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2026-06-30 12:55 vroca New Issue
2026-06-30 12:55 vroca Tag Attached: samba