Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 903105 Details for
Bug 1105775
pdfbklt does not support A3
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Create and install a patched rpm, so that pdfbklt supports A0, A1, A2 and A3
patch2 (text/plain), 1.68 KB, created by
Marco Motta
on 2014-06-07 15:02:28 UTC
(
hide
)
Description:
Create and install a patched rpm, so that pdfbklt supports A0, A1, A2 and A3
Filename:
MIME Type:
Creator:
Marco Motta
Created:
2014-06-07 15:02:28 UTC
Size:
1.68 KB
patch
obsolete
>#!/bin/bash >cd ~; >mkdir -p pdf-tools-con-patch; >rm -rf ~/pdf-tools-con-patch/*; >cd pdf-tools-con-patch; >yumdownloader --source pdf-tools; >rpm2cpio perl-Text-PDF*.rpm | cpio -ivd; >VERSIONE=`grep "Version" perl-Text-PDF.spec | sed 's/Version://g' | sed 's/ //g'`; >rm perl-Text-PDF-$VERSIONE*.rpm; >mkdir -p ~/rpmbuild/SOURCES ~/rpmbuild/BUILD ~/rpmbuild/RPMS/noarch ~/rpmbuild/SPECS; >mv perl-Text-PDF.spec ~/rpmbuild/SPECS; >TAR=$(ls *.tar.gz); >tar -xzvf "$TAR"; >rm "$TAR"; >DIR=$(ls); >GREP=`grep "'a4' => '595;842'" "$DIR/scripts/pdfbklt"`; >if [ "$GREP" == "" ]; then > echo "Error: cannot apply the patch. Press Enter to exit."; > read; > exit 1; >fi; >GREP=`grep "'a3' => '842;1191'" "$DIR/scripts/pdfbklt"`; >if [ "$GREP" != "" ]; then > echo "Error: patch already applied. Press Enter to exit."; > read; > exit 1; >fi; >sed -i "s/'a4' => '595;842'/'a0' => '2384;3370',\n 'a0l' => '3370;2384',\n 'a1' => '1684;2384',\n 'a1l' => '2384;1684',\n 'a2' => '1191;1684',\n 'a2l' => '1684;1191',\n 'a3' => '842;1191',\n 'a3l' => '1191;842',\n 'a4' => '595;842',/g" "$DIR/scripts/pdfbklt"; >sed -i "s/A4,ltr,lgl,A5/A0,A1,A2,A3,A4,ltr,lgl,A5/g" "$DIR/scripts/pdfbklt"; >sed -i 's/Version: $version/Version: $version patched by Marco Motta/g' "$DIR/scripts/pdfbklt"; >tar --remove-files -czvf "$TAR" "$DIR"; >mv * ~/rpmbuild/SOURCES; >cd ~/rpmbuild/RPMS/noarch; >rm -f pdf-tools*.rpm perl-Text-PDF*.rpm; >rpmbuild -v -bb --clean ~/rpmbuild/SPECS/perl-Text-PDF.spec; >if [ "$?" == "0" ]; then > echo "Type root password to remove the original package and install the patched one"; > su -c 'yum remove "pdf-tools*"; rpm -iv pdf-tools*.rpm perl-Text-PDF*.rpm'; >fi; >rmdir ~/pdf-tools-con-patch; >echo "Press Enter to exit.; >read;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1105775
:
903104
| 903105 |
910053