[Rpm-maint] [rpm-software-management/rpm] %autopatch -p1 fails with rpmbuild 4.14.90 (#484)

Andreas Scherer notifications at github.com
Sun Jul 29 16:03:49 UTC 2018


The following specfile works fine with **rpm 4.12.0.1**, but fails with **rpm 4.12.0.1**.
```
Name: tetex-anschrift
Summary: Eigene Briefgestaltung mit diversen LaTeX-Klassen
Version: 1.4
Release: 8
Packager: Andreas Scherer <andreas at komputer.de>
License: LPPL

URL: localhost://home/andreas/TeX/Briefe/anschrift
Source0: %{name}-%{version}.tar.bz2
Source1: anschrift-scrlttr2-1.3.tar.gz
Source2: https://github.com/tomka/rechnung/archive/rechnung-master.zip

Patch0: 0001-Ich-will-Rechnungen-schreiben-nicht-Schach-spielen.patch
Patch1: 0002-Anpassung-der-Bezeichnungen.patch
Patch2: 0003-Fix-overful-hbox-warning.patch

%if %{_vendor} == "debbuild"
Distribution: Kubuntu 16.04 (x86_64)
Group: tex
BuildRequires: texlive-latex-base
%else
Distribution: openSUSE 42 (x86_64)
Group: Productivity/Publishing/TeX/Base
%global __latex `which latex`
%endif

BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildArch: noarch
Requires: texlive

%define texmf /opt/texlive/texmf-local

%description
Mit Hilfe der Einstellungen im 'anschrift'-Paket gestalte ich meinen
eigenen Briefstil auf der Grundlage der 'dinbrief'-Klasse. Notwendige
Pakete werden eingebunden und die relevanten Parameter werden gesetzt.

Ursprünglich verwendete ich 'anschrift.tex' mit plain TeX für meine Briefe.
Es gibt noch etliche Beispiele aus Aachen dafür.

Einige Jahre später wechselte ich von 'dinbrief' zu 'scrlttr2' auf KomaScript.
Hier wird das Briefformat in LCO-Dateien definiert.

Insgesamt entdecke ich hier ein unglaubliches Durcheinander mit drei
Git-Archiven, mindestens drei verschiedenen Formaten und noch mehr
unterschiedlichen Anschriften. Dank 'git remote' lässt sich das Chaos
etwas bändigen.

%prep
# Default Source0: OLd-style LaTeX mit 'dinbrief'
# Add Source1: Modernes LaTeX mit KomaScript
%autosetup -n anschrift -c -a1 -N -S git
# Add Source2: rechnung.sty 3.50
%{__unzip} -j -n %{SOURCE2}
%{__git} add . ; %{__git} commit -m "Third source package added."
%{__make}
%{__git} add . ; %{__git} commit -m "LaTeX docstrip applied."
%autopatch -p1

%build
# %%autopatch may only be used in %%prep, so this section remains empty

%install
%{__rm} -rf %{buildroot}
%{__mkdir_p} %{buildroot}/%{texmf}/tex/latex/anschrift
%{__cp} anschrift.sty %{buildroot}/%{texmf}/tex/latex/anschrift
%{__cp} aachen.lco %{buildroot}/%{texmf}/tex/latex/anschrift
%{__cp} berlin.lco %{buildroot}/%{texmf}/tex/latex/anschrift
%{__cp} lichtenfels.lco %{buildroot}/%{texmf}/tex/latex/anschrift
%{__cp} munich.lco %{buildroot}/%{texmf}/tex/latex/anschrift
%{__cp} anschrift.lco %{buildroot}/%{texmf}/tex/latex/anschrift
%{__cp} dienstbrief.lco %{buildroot}/%{texmf}/tex/latex/anschrift
%{__cp} privatbrief.lco %{buildroot}/%{texmf}/tex/latex/anschrift
%{__cp} rechnung.sty %{buildroot}/%{texmf}/tex/latex/anschrift

%files
%defattr(-,andreas,andreas,-)
%{texmf}/tex/latex/anschrift/anschrift.sty
%{texmf}/tex/latex/anschrift/aachen.lco
%{texmf}/tex/latex/anschrift/berlin.lco
%{texmf}/tex/latex/anschrift/lichtenfels.lco
%{texmf}/tex/latex/anschrift/munich.lco
%{texmf}/tex/latex/anschrift/anschrift.lco
%{texmf}/tex/latex/anschrift/dienstbrief.lco
%{texmf}/tex/latex/anschrift/privatbrief.lco
%{texmf}/tex/latex/anschrift/rechnung.sty

%post
%{__texhash}

%postun
%{__texhash}

%changelog
* Sat Apr 28 2018 Andreas Scherer <andreas_tex at freenet.de> 1.4-8
- Update for docstrip 2.5e and rechnung.dtx 3.50 from Github.
* Sun Jan 15 2017 Andreas Scherer <andreas_tex at freenet.de> 1.4-7
- Cleanup specfile with modern rpm/debbuild features
* Sun Nov 01 2015 Andreas Scherer <andreas_tex at freenet.de> 1.4-6
- Keep private ownership of TeXlive f/d.
* Thu Oct 29 2015 Andreas Scherer <andreas_tex at freenet.de> 1.4-6
- Fully parametrized specfile
* Thu Sep 10 2015 Andreas Scherer <andreas_tex at freenet.de> 1.4-5
- Auslagerung der eigentlichen Adressdaten für AC, B, LIF und M.
* Wed Sep 02 2015 Andreas Scherer <andreas_tex at freenet.de> 1.4-4
- Anschrift im Münchner »Leonhard-Henninger-Haus«
* Fri Aug 21 2015 Andreas Scherer <andreas_tex at freenet.de> 1.4-3
- Benutze 'rechnung.sty' aus dem originalen Archiv
* Tue Jul 28 2015 Andreas Scherer <andreas_tex at freenet.de> 1.4-2
- Füge die LCOs für KomaScript hinzu
* Mon Jul 13 2015 Andreas Scherer <andreas_tex at freenet.de> 1.4-1
- Update for 'rechnung.sty' 3.30
* Mon Aug 01 2011 Andreas Scherer <andreas_tex at freenet.de> 1.3-2
- dpkg complains about missing maintainer
* Tue Nov 23 2010 Andreas Scherer <andreas_tex at freenet.de> 1.3-1
- New address data for Lichtenfels
* Mon Nov 23 2009 Andreas Scherer <andreas_tex at freenet.de> 1.2-2
- No local dependencies; TeXLive will be silently assumed to be installed
* Fri Feb 06 2009 Andreas Scherer <andreas_tex at freenet.de> 1.2-1
- Make 'anschrift.sty' more LaTeX-conforming
* Fri May 02 2008 Andreas Scherer <andreas_tug at freenet.de> 1.1-1
- Kubuntu-compatible package with 'debbuild'
* Sat Nov 18 2006 Andreas Scherer <andreas_tug at freenet.de> 1.1-1
- Add personal version of rechnung.sty
* Fri Oct 13 2006 Andreas Scherer <andreas_tug at freenet.de> 1.0-4
- Update for UTF-8 input encoding
* Sat Dec 17 2005 Andreas Scherer <andreas_tug at freenet.de> 1.0-3
- Use Bigelow & Holmes' Lucida Bright font package
* Mon Oct 31 2005 Andreas Scherer <andreas_tug at freenet.de> 1.0-2
- Non-local dependency
* Sat Oct 29 2005 Andreas Scherer <andreas_tug at freenet.de> 1.0-1
- Initial build
```
Here's the fail log:
```
Ausführung(%prep): /bin/sh -e /usr/local/var/tmp/rpm-tmp.FJYDXF
+ umask 022
+ cd /home/andreas/Work/rpm/BUILD
+ cd /home/andreas/Work/rpm/BUILD
+ rm -rf anschrift
+ /bin/mkdir -p anschrift
+ cd anschrift
+ + /bin/tar/bin/bzip2 -xof -dc - /home/andreas/Work/rpm/SOURCES/tetex-anschrift-1.4.tar.bz2

+ STATUS=0
+ [ 0 -ne 0 ]
+ + /bin/tar -xof/bin/gzip -
 -dc /home/andreas/Work/rpm/SOURCES/anschrift-scrlttr2-1.3.tar.gz
+ STATUS=0
+ [ 0 -ne 0 ]
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ /usr/bin/git init -q
+ /usr/bin/git config user.name rpm-build
+ /usr/bin/git config user.email <rpm-build>
+ /usr/bin/git add .
+ /usr/bin/git commit -q --allow-empty -a --author rpm-build <rpm-build> -m tetex-anschrift-1.4 base
+ /usr/bin/unzip -j -n /home/andreas/Work/rpm/SOURCES/rechnung-master.zip
Archive:  /home/andreas/Work/rpm/SOURCES/rechnung-master.zip
ff24ee8e8739ef211810e28fc8b32404321081de
  inflating: Makefile                
  inflating: README.md               
  inflating: kurzref.txt             
  inflating: rechnung.dtx            
  inflating: rechnung.ins            
+ /usr/bin/git add .
+ /usr/bin/git commit -m Third source package added.
[master 92bbcf9] Third source package added.
 5 files changed, 1363 insertions(+)
 create mode 100644 Makefile
 create mode 100644 README.md
 create mode 100644 kurzref.txt
 create mode 100644 rechnung.dtx
 create mode 100644 rechnung.ins
+ /usr/bin/make
latex rechnung.ins
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018) (preloaded format=latex)
 restricted \write18 enabled.
entering extended mode
(./rechnung.ins
LaTeX2e <2018-04-01> patch level 5
(/opt/texlive/2018/texmf-dist/tex/latex/base/docstrip.tex
Utility: `docstrip' 2.5g <2018/05/03>
English documentation    <2018/05/03>

**********************************************************
* This program converts documented macro-files into fast *
* loadable files by stripping off (nearly) all comments! *
**********************************************************

********************************************************
* No Configuration file found, using default settings. *
********************************************************

)
Generating style file rechnung.sty for the rechnung package:

Generating file(s) ./rechnung.sty 

Processing file rechnung.dtx (package) -> rechnung.sty
File rechnung.dtx ended by \endinput.
Lines  processed: 1110
Comments removed: 737
Comments  passed: 2
Codelines passed: 364

Generating driver file for manual rechnung.drv:

Generating file(s) ./rechnungman.drv 

Processing file rechnung.dtx (driver,manual) -> rechnungman.drv
File rechnung.dtx ended by \endinput.
Lines  processed: 1110
Comments removed: 737
Comments  passed: 2
Codelines passed: 364

Generating driver file for documentation rechnung.drv:

Generating file(s) ./rechnung.drv 

Processing file rechnung.dtx (driver) -> rechnung.drv
File rechnung.dtx ended by \endinput.
Lines  processed: 1110
Comments removed: 737
Comments  passed: 2
Codelines passed: 364

***********************************************************
*
* To finish the installation you have to move the file
* rechnung.sty into a directory searched by TeX:
*
* Optionally you caan copy the file rechnung.dtx into a
* directory searched by TeX, so that users can print
* a copy of the documentation.
*
* Happy TeXing
***********************************************************
Overall statistics:
Files  processed: 3
Lines  processed: 3330
Comments removed: 2211
Comments  passed: 6
Codelines passed: 1092
 )
No pages of output.
Transcript written on rechnung.log.
+ /usr/bin/git add .
+ /usr/bin/git commit -m LaTeX docstrip applied.
[master 5729ee2] LaTeX docstrip applied.
 3 files changed, 853 insertions(+), 43 deletions(-)
 create mode 100644 rechnung.drv
 create mode 100644 rechnungman.drv
+ + /bin/cat/usr/bin/git /home/andreas/Work/rpm/SOURCES/0001-Ich-will-Rechnungen-schreiben-nicht-Schach-spielen.patch apply
 --index -p1 -
+ /usr/bin/git commit -q -m 0001-Ich-will-Rechnungen-schreiben-nicht-Schach-spielen.patch --author rpm-build <rpm-build>
+ + /usr/bin/git/bin/cat apply /home/andreas/Work/rpm/SOURCES/0002-Anpassung-der-Bezeichnungen.patch --index
 -p1 -
+ /usr/bin/git commit -q -m 0002-Anpassung-der-Bezeichnungen.patch --author rpm-build <rpm-build>
+ + /bin/cat /home/andreas/Work/rpm/SOURCES/0003-Fix-overful-hbox-warning.patch
/usr/bin/git apply --index -p1 -
+ /usr/bin/git commit -q -m 0003-Fix-overful-hbox-warning.patch --author rpm-build <rpm-build>
+ exit 0
Ausführung(%build): /bin/sh -e /usr/local/var/tmp/rpm-tmp.Csyt4w
+ umask 022
+ cd /home/andreas/Work/rpm/BUILD
+ cd anschrift
+ + /usr/bin/git/bin/cat apply --index /home/andreas/Work/rpm/SOURCES/0001-Ich-will-Rechnungen-schreiben-nicht-Schach-spielen.patch -

error: patch failed: rechnung.sty:144
error: rechnung.sty: patch does not apply
Fehler: Fehler-Status beim Beenden von /usr/local/var/tmp/rpm-tmp.Csyt4w (%build)


Fehler beim Bauen des RPM:
    Fehler-Status beim Beenden von /usr/local/var/tmp/rpm-tmp.Csyt4w (%build)
```
Expected output is this:
```
Ausführung(%prep): /bin/sh -e /var/tmp/rpm-tmp.K7hFYh
+ umask 022
+ cd /home/andreas/Work/rpm/BUILD
+ cd /home/andreas/Work/rpm/BUILD
+ rm -rf anschrift
+ /bin/mkdir -p anschrift
+ cd anschrift
+ + /bin/bzip2 -dc/bin/tar /home/andreas/Work/rpm/SOURCES/tetex-anschrift-1.4.tar.bz2
 -xf -
+ STATUS=0
+ [ 0 -ne 0 ]
+ + /bin/tar/bin/gzip -xvvf - -dc
 /home/andreas/Work/rpm/SOURCES/anschrift-scrlttr2-1.3.tar.gz
-rw-rw-r-- root/root        45 2018-04-28 11:46 .gitignore
-rw-rw-r-- root/root       552 2018-04-28 11:46 20090305-dienstlich.tex
-rw-rw-r-- root/root       278 2018-04-28 11:46 20090305-privat.tex
-rw-rw-r-- root/root       185 2018-04-28 11:46 20100430-adressen.adr
-rw-rw-r-- root/root       417 2018-04-28 11:46 20100430-serienbrief.tex
-rw-rw-r-- root/root       444 2018-04-28 11:46 aachen.lco
-rw-rw-r-- root/root      1198 2018-04-28 11:46 anschrift.lco
-rw-rw-r-- root/root       449 2018-04-28 11:46 berlin.lco
-rw-rw-r-- root/root       819 2018-04-28 11:46 dienstbrief.lco
-rw-rw-r-- root/root       460 2018-04-28 11:46 lichtenfels.lco
-rw-rw-r-- root/root       450 2018-04-28 11:46 munich-lhh.lco
-rw-rw-r-- root/root       455 2018-04-28 11:46 munich.lco
-rw-rw-r-- root/root       204 2018-04-28 11:46 privatbrief.lco
+ STATUS=0
+ [ 0 -ne 0 ]
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ /usr/bin/git init -q
+ /usr/bin/git config user.name rpm-build
+ /usr/bin/git config user.email <rpm-build>
+ /usr/bin/git add .
+ /usr/bin/git commit -q -a --author rpm-build <rpm-build> -m tetex-anschrift-1.4 base
+ /usr/bin/unzip -j -n /home/andreas/Work/rpm/SOURCES/rechnung-master.zip
Archive:  /home/andreas/Work/rpm/SOURCES/rechnung-master.zip
ff24ee8e8739ef211810e28fc8b32404321081de
  inflating: Makefile                
  inflating: README.md               
  inflating: kurzref.txt             
  inflating: rechnung.dtx            
  inflating: rechnung.ins            
+ /usr/bin/git add .
+ /usr/bin/git commit -m Third source package added.
[master e855b4f] Third source package added.
 5 files changed, 1363 insertions(+)
 create mode 100644 Makefile
 create mode 100644 README.md
 create mode 100644 kurzref.txt
 create mode 100644 rechnung.dtx
 create mode 100644 rechnung.ins
+ /usr/bin/make
latex rechnung.ins
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018) (preloaded format=latex)
 restricted \write18 enabled.
entering extended mode
(./rechnung.ins
LaTeX2e <2018-04-01> patch level 5
(/opt/texlive/2018/texmf-dist/tex/latex/base/docstrip.tex
Utility: `docstrip' 2.5g <2018/05/03>
English documentation    <2018/05/03>

**********************************************************
* This program converts documented macro-files into fast *
* loadable files by stripping off (nearly) all comments! *
**********************************************************

********************************************************
* No Configuration file found, using default settings. *
********************************************************

)
Generating style file rechnung.sty for the rechnung package:

Generating file(s) ./rechnung.sty 

Processing file rechnung.dtx (package) -> rechnung.sty
File rechnung.dtx ended by \endinput.
Lines  processed: 1110
Comments removed: 737
Comments  passed: 2
Codelines passed: 364

Generating driver file for manual rechnung.drv:

Generating file(s) ./rechnungman.drv 

Processing file rechnung.dtx (driver,manual) -> rechnungman.drv
File rechnung.dtx ended by \endinput.
Lines  processed: 1110
Comments removed: 737
Comments  passed: 2
Codelines passed: 364

Generating driver file for documentation rechnung.drv:

Generating file(s) ./rechnung.drv 

Processing file rechnung.dtx (driver) -> rechnung.drv
File rechnung.dtx ended by \endinput.
Lines  processed: 1110
Comments removed: 737
Comments  passed: 2
Codelines passed: 364

***********************************************************
*
* To finish the installation you have to move the file
* rechnung.sty into a directory searched by TeX:
*
* Optionally you caan copy the file rechnung.dtx into a
* directory searched by TeX, so that users can print
* a copy of the documentation.
*
* Happy TeXing
***********************************************************
Overall statistics:
Files  processed: 3
Lines  processed: 3330
Comments removed: 2211
Comments  passed: 6
Codelines passed: 1092
 )
No pages of output.
Transcript written on rechnung.log.
+ /usr/bin/git add .
+ /usr/bin/git commit -m LaTeX docstrip applied.
[master 76fc7f8] LaTeX docstrip applied.
 3 files changed, 853 insertions(+), 43 deletions(-)
 create mode 100644 rechnung.drv
 create mode 100644 rechnungman.drv
+ + /bin/cat/usr/bin/git /home/andreas/Work/rpm/SOURCES/0001-Ich-will-Rechnungen-schreiben-nicht-Schach-spielen.patch apply
 --index -p1 -
+ /usr/bin/git commit -q -m 0001-Ich-will-Rechnungen-schreiben-nicht-Schach-spielen.patch --author rpm-build <rpm-build>
+ + /bin/cat/usr/bin/git /home/andreas/Work/rpm/SOURCES/0002-Anpassung-der-Bezeichnungen.patch apply
 --index -p1 -
+ /usr/bin/git commit -q -m 0002-Anpassung-der-Bezeichnungen.patch --author rpm-build <rpm-build>
+ + /bin/cat/usr/bin/git /home/andreas/Work/rpm/SOURCES/0003-Fix-overful-hbox-warning.patch apply
 --index -p1 -
+ /usr/bin/git commit -q -m 0003-Fix-overful-hbox-warning.patch --author rpm-build <rpm-build>
+ exit 0
Ausführung(%build): /bin/sh -e /var/tmp/rpm-tmp.z4koiF
+ umask 022
+ cd /home/andreas/Work/rpm/BUILD
+ cd anschrift
+ exit 0
Ausführung(%install): /bin/sh -e /var/tmp/rpm-tmp.LfjgD2
+ umask 022
+ cd /home/andreas/Work/rpm/BUILD
+ cd anschrift
+ /bin/rm -rf /home/andreas/Work/rpm/BUILDROOT/tetex-anschrift-1.4-8.x86_64
+ /bin/mkdir -p /home/andreas/Work/rpm/BUILDROOT/tetex-anschrift-1.4-8.x86_64//opt/texlive/texmf-local/tex/latex/anschrift
+ /bin/cp anschrift.sty /home/andreas/Work/rpm/BUILDROOT/tetex-anschrift-1.4-8.x86_64//opt/texlive/texmf-local/tex/latex/anschrift
+ /bin/cp aachen.lco /home/andreas/Work/rpm/BUILDROOT/tetex-anschrift-1.4-8.x86_64//opt/texlive/texmf-local/tex/latex/anschrift
+ /bin/cp berlin.lco /home/andreas/Work/rpm/BUILDROOT/tetex-anschrift-1.4-8.x86_64//opt/texlive/texmf-local/tex/latex/anschrift
+ /bin/cp lichtenfels.lco /home/andreas/Work/rpm/BUILDROOT/tetex-anschrift-1.4-8.x86_64//opt/texlive/texmf-local/tex/latex/anschrift
+ /bin/cp munich.lco /home/andreas/Work/rpm/BUILDROOT/tetex-anschrift-1.4-8.x86_64//opt/texlive/texmf-local/tex/latex/anschrift
+ /bin/cp anschrift.lco /home/andreas/Work/rpm/BUILDROOT/tetex-anschrift-1.4-8.x86_64//opt/texlive/texmf-local/tex/latex/anschrift
+ /bin/cp dienstbrief.lco /home/andreas/Work/rpm/BUILDROOT/tetex-anschrift-1.4-8.x86_64//opt/texlive/texmf-local/tex/latex/anschrift
+ /bin/cp privatbrief.lco /home/andreas/Work/rpm/BUILDROOT/tetex-anschrift-1.4-8.x86_64//opt/texlive/texmf-local/tex/latex/anschrift
+ /bin/cp rechnung.sty /home/andreas/Work/rpm/BUILDROOT/tetex-anschrift-1.4-8.x86_64//opt/texlive/texmf-local/tex/latex/anschrift
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip /usr/bin/strip
+ /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
Verarbeite Daten: tetex-anschrift-1.4-8.noarch
Provides: tetex-anschrift = 1.4-8
Requires(interp): /bin/sh /bin/sh
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires(post): /bin/sh
Requires(postun): /bin/sh
Prüfe auf nicht gepackte Datei(en): /usr/lib/rpm/check-files /home/andreas/Work/rpm/BUILDROOT/tetex-anschrift-1.4-8.x86_64
Erstellt: /home/andreas/Work/rpm/SRPMS/tetex-anschrift-1.4-8.src.rpm
Erstellt: /home/andreas/Work/rpm/RPMS/noarch/tetex-anschrift-1.4-8.noarch.rpm
Ausführung(%clean): /bin/sh -e /var/tmp/rpm-tmp.43tenq
+ umask 022
+ cd /home/andreas/Work/rpm/BUILD
+ cd anschrift
+ /bin/rm -rf /home/andreas/Work/rpm/BUILDROOT/tetex-anschrift-1.4-8.x86_64
+ exit 0
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/484
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20180729/77e5e77d/attachment-0001.html>


More information about the Rpm-maint mailing list