Gentoo Archives: gentoo-commits

From: "Timothy Redaelli (drizzt)" <drizzt@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-emulation/zsnes/files: zsnes-1.51-depbuild.patch
Date: Mon, 02 Feb 2009 16:41:47
Message-Id: E1LU1rl-0005HV-Az@stork.gentoo.org
1 drizzt 09/02/02 16:41:45
2
3 Added: zsnes-1.51-depbuild.patch
4 Log:
5 Fix a (possible) compilation problem wrt bug #170108
6 (Portage version: 2.2_rc23/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 games-emulation/zsnes/files/zsnes-1.51-depbuild.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-emulation/zsnes/files/zsnes-1.51-depbuild.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-emulation/zsnes/files/zsnes-1.51-depbuild.patch?rev=1.1&content-type=text/plain
13
14 Index: zsnes-1.51-depbuild.patch
15 ===================================================================
16 --- src/tools/depbuild.cpp.orig 2006-12-27 12:04:05.000000000 +0100
17 +++ src/tools/depbuild.cpp 2009-02-02 17:24:17.980006252 +0100
18 @@ -130,7 +130,20 @@
19 void dependency_calculate_asm(const char *filename)
20 {
21 string command = nasm + " " + nflags + " -M " + filename;
22 - system(command.c_str());
23 + FILE *fp = popen(command.c_str(), "r");
24 + if (fp)
25 + {
26 + char line[256];
27 + while (fgets(line, sizeof(line), fp)) //Process all lines of output
28 + {
29 + cout << line;
30 + }
31 + pclose(fp);
32 + }
33 + else
34 + {
35 + cerr << "Failed on: " << filename << "\n";
36 + }
37 }
38
39 void dependency_calculate_psr(const char *filename)