Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 501918 | Differences between
and this patch

Collapse All | Expand All

(-)binwalk-1.3.0.old/src/setup.py (-29 lines)
Lines 64-98 Link Here
64
	
64
	
65
	warning(msg, prompt=True)
65
	warning(msg, prompt=True)
66
66
67
# Build / install C compression libraries
68
c_lib_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), "C")
69
c_lib_makefile = os.path.join(c_lib_dir, "Makefile")
70
71
working_directory = os.getcwd()
72
os.chdir(c_lib_dir)
73
status = 0
74
75
if not os.path.exists(c_lib_makefile):
76
	status |= os.system("./configure")
77
78
status |= os.system("make")
79
80
if status != 0:
81
	msg = ["Build warning: failed to build compression libraries.",
82
		"Some plugins will not work without these libraries."
83
	]
84
	
85
	warning(msg, prompt=True)
86
elif "install" in sys.argv:
87
		if os.system("make install") != 0:
88
			msg = ["Install warning: failed to install compression libraries.",
89
				"Some plugins will not work without these libraries."
90
			]
91
92
			warning(msg, prompt=True)
93
		
94
os.chdir(working_directory)
95
96
# Generate a new magic file from the files in the magic directory
67
# Generate a new magic file from the files in the magic directory
97
print("generating binwalk magic file")
68
print("generating binwalk magic file")
98
magic_files = listdir("magic")
69
magic_files = listdir("magic")

Return to bug 501918