Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gede: init at 2.0.3 #23229

Merged
merged 1 commit into from
Mar 18, 2017
Merged

gede: init at 2.0.3 #23229

merged 1 commit into from
Mar 18, 2017

Conversation

juliendehos
Copy link
Contributor

Motivation for this change

Init gede, a graphical frontent to GDB.

Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

try:
shutil.copyfile("gede", g_dest_path + "/bin/gede")
- os.chmod(g_dest_path + "/bin/gede", 0775);
+ os.chmod(g_dest_path + "/bin/gede", 775);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The argument to chmod needs to be octal:
In python3 this is done by prefixing 0o

 os.chmod(g_dest_path + "/bin/gede", 0o755)

configurePhase = "";
buildPhase = "";
installPhase = ''
./build.py install --prefix=$out
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems to me that you ported this script from python2 to python3. I think it is better if you send your changes upstream and keep the patch minimal (only qmake-qt4 -> qmake) by using python2 here for the meantime.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. I've switched to python2 and modified the patch.

@7c6f434c 7c6f434c merged commit e096d7c into NixOS:master Mar 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants