|
@@ -5256,7 +5256,7 @@ def MakeInstallerLinux():
|
|
|
txt = INSTALLER_SPEC_FILE[1:]
|
|
txt = INSTALLER_SPEC_FILE[1:]
|
|
|
txt = txt.replace("VERSION", VERSION).replace("RPMRELEASE", RPMRELEASE).replace("PANDASOURCE", pandasource).replace("PV", PV)
|
|
txt = txt.replace("VERSION", VERSION).replace("RPMRELEASE", RPMRELEASE).replace("PANDASOURCE", pandasource).replace("PV", PV)
|
|
|
WriteFile("panda3d.spec", txt)
|
|
WriteFile("panda3d.spec", txt)
|
|
|
- oscmd("rpmbuild --define '_rpmdir "+pandasource+"' --buildroot '"+os.path.abspath("targetroot")+"' -bb panda3d.spec")
|
|
|
|
|
|
|
+ oscmd("fakeroot rpmbuild --define '_rpmdir "+pandasource+"' --buildroot '"+os.path.abspath("targetroot")+"' -bb panda3d.spec")
|
|
|
if (RUNTIME):
|
|
if (RUNTIME):
|
|
|
oscmd("mv "+ARCH+"/panda3d-runtime-"+VERSION+"-"+RPMRELEASE+"."+ARCH+".rpm .")
|
|
oscmd("mv "+ARCH+"/panda3d-runtime-"+VERSION+"-"+RPMRELEASE+"."+ARCH+".rpm .")
|
|
|
else:
|
|
else:
|
|
@@ -5301,9 +5301,9 @@ def MakeInstallerLinux():
|
|
|
oscmd("rm -rf targetroot/debian")
|
|
oscmd("rm -rf targetroot/debian")
|
|
|
oscmd("chmod -R 755 targetroot/DEBIAN")
|
|
oscmd("chmod -R 755 targetroot/DEBIAN")
|
|
|
if (RUNTIME):
|
|
if (RUNTIME):
|
|
|
- oscmd("dpkg-deb -b targetroot panda3d-runtime_"+DEBVERSION+"_"+ARCH+".deb")
|
|
|
|
|
|
|
+ oscmd("fakeroot dpkg-deb -b targetroot panda3d-runtime_"+DEBVERSION+"_"+ARCH+".deb")
|
|
|
else:
|
|
else:
|
|
|
- oscmd("dpkg-deb -b targetroot panda3d"+MAJOR_VERSION+"_"+DEBVERSION+"_"+ARCH+".deb")
|
|
|
|
|
|
|
+ oscmd("fakeroot dpkg-deb -b targetroot panda3d"+MAJOR_VERSION+"_"+DEBVERSION+"_"+ARCH+".deb")
|
|
|
oscmd("chmod -R 755 targetroot")
|
|
oscmd("chmod -R 755 targetroot")
|
|
|
|
|
|
|
|
if not (os.path.exists("/usr/bin/rpmbuild") or os.path.exists("/usr/bin/dpkg-deb")):
|
|
if not (os.path.exists("/usr/bin/rpmbuild") or os.path.exists("/usr/bin/dpkg-deb")):
|