[Reproducible-commits] [texlive-bin] 101/400: fix reading from and writing to pipes from within tex: new patch fix-pipe-in-out-regression (Closes: #679065)
Maria Valentina Marin Rodrigues
akira-guest at moszumanska.debian.org
Thu Jul 9 21:39:38 UTC 2015
This is an automated email from the git hooks/post-receive script.
akira-guest pushed a commit to branch master
in repository texlive-bin.
commit 594186edf4be35e6095ae5b1d311debdd7b8e7dc
Author: Norbert Preining <preining at debian.org>
Date: Tue Jun 26 07:05:02 2012 +0000
fix reading from and writing to pipes from within tex: new
patch fix-pipe-in-out-regression (Closes: #679065)
---
debian/changelog | 7 +++++++
debian/quilt/fix-pipe-in-out-regression | 34 +++++++++++++++++++++++++++++++++
debian/quilt/series | 1 +
3 files changed, 42 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 00d5e2c..eb09c9d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+texlive-bin (2012.20120623-2) unstable; urgency=low
+
+ * fix reading from and writing to pipes from within tex: new
+ patch fix-pipe-in-out-regression (Closes: #679065)
+
+ -- Norbert Preining <preining at debian.org> Tue, 26 Jun 2012 16:02:17 +0900
+
texlive-bin (2012.20120623-1) unstable; urgency=low
* post release fixed from Peter Breitenlohner (will be included upstream):
diff --git a/debian/quilt/fix-pipe-in-out-regression b/debian/quilt/fix-pipe-in-out-regression
new file mode 100644
index 0000000..6f4868c
--- /dev/null
+++ b/debian/quilt/fix-pipe-in-out-regression
@@ -0,0 +1,34 @@
+reading from pipes and writing to pipes is currently broken, because
+the argument passed to popen is one that should only be used on
+Windows. (additional "b"). Since we will never compile these sources
+on Windows, simply remove the problematics "b"s and get it back on.
+---
+ texk/web2c/lib/texmfmp.c | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+Index: texlive-bin-2012.20120623/texk/web2c/lib/texmfmp.c
+===================================================================
+--- texlive-bin-2012.20120623.orig/texk/web2c/lib/texmfmp.c 2012-04-16 22:39:06.000000000 +0900
++++ texlive-bin-2012.20120623/texk/web2c/lib/texmfmp.c 2012-06-26 16:00:03.154246698 +0900
+@@ -1853,7 +1853,7 @@
+ fname = xmalloc(strlen((const_string)(nameoffile+1))+1);
+ strcpy(fname,(const_string)(nameoffile+1));
+ recorder_record_input (fname + 1);
+- *f_ptr = runpopen(fname+1,"rb");
++ *f_ptr = runpopen(fname+1,"r");
+ free(fname);
+ for (i=0; i<NUM_PIPES; i++) {
+ if (pipes[i]==NULL) {
+@@ -1895,10 +1895,10 @@
+ is better to be prepared */
+ if (STREQ((fname+strlen(fname)-4),".tex"))
+ *(fname+strlen(fname)-4) = 0;
+- *f_ptr = runpopen(fname+1,"wb");
++ *f_ptr = runpopen(fname+1,"w");
+ *(fname+strlen(fname)) = '.';
+ } else {
+- *f_ptr = runpopen(fname+1,"wb");
++ *f_ptr = runpopen(fname+1,"w");
+ }
+ recorder_record_output (fname + 1);
+ free(fname);
diff --git a/debian/quilt/series b/debian/quilt/series
index b53353b..c5ba941 100644
--- a/debian/quilt/series
+++ b/debian/quilt/series
@@ -24,3 +24,4 @@ patch-lacheck -p0
patch-pdftex -p0
patch-update-updmap-manpage
xdvi-upupstream-fixes
+fix-pipe-in-out-regression
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/texlive-bin.git
More information about the Reproducible-commits
mailing list