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

move texstudio from qt4 to qt5 #34794

Merged
merged 1 commit into from Feb 13, 2018
Merged

Conversation

ajs124
Copy link
Member

@ajs124 ajs124 commented Feb 10, 2018

Motivation for this change

The move from qt4 to qt5 is motivated by #32883, because poppler_qt4 is deprecated.

Texstudio is one of the 4 remaining packages using poppler_qt4, but it also supports qt5.
I also tried upgrading texmaker to version 5.0.2 and fix the same issue for it, but could not get it to compile.

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
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • 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.

@andir
Copy link
Member

andir commented Feb 10, 2018

@GrahamcOfBorg build texstudio

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Partial log (click to expand)

Package ‘texstudio-2.12.6’ in /Users/graham/nix-borg/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-ndnd/pkgs/applications/editors/texstudio/default.nix:20 is not supported on ‘x86_64-darwin’, refusing to evaluate.

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowBroken = true; }
to ~/.config/nixpkgs/config.nix.

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Partial log (click to expand)

/nix/store/7fxbh1yhagvwbdrmdyyy5ghcjhwjndhs-bash-4.4-p12/bin/bash: tabdialog.ui: command not found
/nix/store/7fxbh1yhagvwbdrmdyyy5ghcjhwjndhs-bash-4.4-p12/bin/bash: arraydialog.ui: command not found
/nix/store/7fxbh1yhagvwbdrmdyyy5ghcjhwjndhs-bash-4.4-p12/bin/bash: letterdialog.ui: command not found
make: *** [Makefile:2528: .ui/ui_letterdialog.h] Error 127
make: *** [Makefile:2522: .ui/ui_arraydialog.h] Error 127
make: *** [Makefile:2525: .ui/ui_tabdialog.h] Error 127
/nix/store/7fxbh1yhagvwbdrmdyyy5ghcjhwjndhs-bash-4.4-p12/bin/bash: quickdocumentdialog.ui: command not found
make: *** [Makefile:2531: .ui/ui_quickdocumentdialog.h] Error 127
builder for '/nix/store/6slmgjqczg5bym7vn4zndmsgxfxpjw0r-texstudio-2.12.6.drv' failed with exit code 2
error: build of '/nix/store/6slmgjqczg5bym7vn4zndmsgxfxpjw0r-texstudio-2.12.6.drv' failed

@Mic92
Copy link
Member

Mic92 commented Feb 10, 2018

@andir there seems something seriously broken with qmake.

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Partial log (click to expand)

shrinking RPATHs of ELF executables and libraries in /nix/store/15jm8p17wcjhwhcjw6ma8b68fhks1nl3-texstudio-2.12.6
shrinking /nix/store/15jm8p17wcjhwhcjw6ma8b68fhks1nl3-texstudio-2.12.6/bin/texstudio
strip is /nix/store/5qj61lcvzlap87rf6blvf8p577d482bv-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/15jm8p17wcjhwhcjw6ma8b68fhks1nl3-texstudio-2.12.6/bin 
patching script interpreter paths in /nix/store/15jm8p17wcjhwhcjw6ma8b68fhks1nl3-texstudio-2.12.6
checking for references to /tmp/nix-build-texstudio-2.12.6.drv-0 in /nix/store/15jm8p17wcjhwhcjw6ma8b68fhks1nl3-texstudio-2.12.6...
postPatchMkspecs
postPatchMkspecs
postPatchMkspecs
/nix/store/15jm8p17wcjhwhcjw6ma8b68fhks1nl3-texstudio-2.12.6

@andir
Copy link
Member

andir commented Feb 10, 2018

@GrahamcOfBorg build texstudio

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Partial log (click to expand)

Package ‘texstudio-2.12.6’ in /Users/graham/nix-borg/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-ndnd/pkgs/applications/editors/texstudio/default.nix:20 is not supported on ‘x86_64-darwin’, refusing to evaluate.

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowBroken = true; }
to ~/.config/nixpkgs/config.nix.

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Partial log (click to expand)

tabbingdialog.ui -o .ui/ui_tabbingdialog.h
/nix/store/7fxbh1yhagvwbdrmdyyy5ghcjhwjndhs-bash-4.4-p12/bin/bash: filechooser.ui: command not found
make: *** [Makefile:2513: .ui/ui_filechooser.h] Error 127
make: *** Waiting for unfinished jobs....
/nix/store/7fxbh1yhagvwbdrmdyyy5ghcjhwjndhs-bash-4.4-p12/bin/bash: insertgraphics.ui: command not found
make: *** [Makefile:2516: .ui/ui_insertgraphics.h] Error 127
/nix/store/7fxbh1yhagvwbdrmdyyy5ghcjhwjndhs-bash-4.4-p12/bin/bash: tabbingdialog.ui: command not found
make: *** [Makefile:2519: .ui/ui_tabbingdialog.h] Error 127
builder for '/nix/store/6slmgjqczg5bym7vn4zndmsgxfxpjw0r-texstudio-2.12.6.drv' failed with exit code 2
error: build of '/nix/store/6slmgjqczg5bym7vn4zndmsgxfxpjw0r-texstudio-2.12.6.drv' failed

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Partial log (click to expand)

shrinking RPATHs of ELF executables and libraries in /nix/store/15jm8p17wcjhwhcjw6ma8b68fhks1nl3-texstudio-2.12.6
shrinking /nix/store/15jm8p17wcjhwhcjw6ma8b68fhks1nl3-texstudio-2.12.6/bin/texstudio
strip is /nix/store/5qj61lcvzlap87rf6blvf8p577d482bv-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/15jm8p17wcjhwhcjw6ma8b68fhks1nl3-texstudio-2.12.6/bin
patching script interpreter paths in /nix/store/15jm8p17wcjhwhcjw6ma8b68fhks1nl3-texstudio-2.12.6
checking for references to /build in /nix/store/15jm8p17wcjhwhcjw6ma8b68fhks1nl3-texstudio-2.12.6...
postPatchMkspecs
postPatchMkspecs
postPatchMkspecs
/nix/store/15jm8p17wcjhwhcjw6ma8b68fhks1nl3-texstudio-2.12.6

@andir
Copy link
Member

andir commented Feb 10, 2018

@GrahamcOfBorg build texstudio

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Partial log (click to expand)

Package ‘texstudio-2.12.6’ in /Users/graham/nix-borg/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-ndnd/pkgs/applications/editors/texstudio/default.nix:20 is not supported on ‘x86_64-darwin’, refusing to evaluate.

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowBroken = true; }
to ~/.config/nixpkgs/config.nix.

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Partial log (click to expand)

                                ^~~~~~
bookmarks.cpp: In member function 'void Bookmarks::updateLineWithBookmark(int)':
bookmarks.cpp:162:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if(!dlh)
     ^~
bookmarks.cpp:164:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
  QList<QListWidgetItem *> lst = bookmarksWidget->findItems(text, Qt::MatchStartsWith);
  ^~~~~
builder for '/nix/store/6slmgjqczg5bym7vn4zndmsgxfxpjw0r-texstudio-2.12.6.drv' failed with exit code 2
error: build of '/nix/store/6slmgjqczg5bym7vn4zndmsgxfxpjw0r-texstudio-2.12.6.drv' failed

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Partial log (click to expand)

shrinking RPATHs of ELF executables and libraries in /nix/store/15jm8p17wcjhwhcjw6ma8b68fhks1nl3-texstudio-2.12.6
shrinking /nix/store/15jm8p17wcjhwhcjw6ma8b68fhks1nl3-texstudio-2.12.6/bin/texstudio
strip is /nix/store/5qj61lcvzlap87rf6blvf8p577d482bv-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/15jm8p17wcjhwhcjw6ma8b68fhks1nl3-texstudio-2.12.6/bin 
patching script interpreter paths in /nix/store/15jm8p17wcjhwhcjw6ma8b68fhks1nl3-texstudio-2.12.6
checking for references to /tmp/nix-build-texstudio-2.12.6.drv-0 in /nix/store/15jm8p17wcjhwhcjw6ma8b68fhks1nl3-texstudio-2.12.6...
postPatchMkspecs
postPatchMkspecs
postPatchMkspecs
/nix/store/15jm8p17wcjhwhcjw6ma8b68fhks1nl3-texstudio-2.12.6

@andir
Copy link
Member

andir commented Feb 10, 2018

@ajs124 Can you please have a look at the aarch64 output and see if you can find a solution? If not please change the supported platforms to just "x86_64-linux".

@ajs124
Copy link
Member Author

ajs124 commented Feb 12, 2018

I tried to disable that warning, but I kind of doubt that did anything, because qmake is being qmake. So if it doesn't compile, I'll set supported platforms to "x86_64-linux" and remove the NIX_COMPILE_CFLAGS thing again.

@andir
Copy link
Member

andir commented Feb 12, 2018

@GrahamcOfBorg build texstudio

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Partial log (click to expand)

Package ‘texstudio-2.12.6’ in /private/var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/lnl7-mac/pkgs/applications/editors/texstudio/default.nix:21 is not supported on ‘x86_64-darwin’, refusing to evaluate.

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowBroken = true; }
to ~/.config/nixpkgs/config.nix.

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Partial log (click to expand)

  memcpy(&STACK_FROM_UCONTEXT(context), &this->stack, sizeof(char*));
          ^~~~~~~~~~~~~~~~~~~
make: *** [Makefile:5048: .obj/debughelper.o] Error 1
make: *** Waiting for unfinished jobs....
latexstructure.cpp: In member function 'void StructureEntry::debugPrint(const char*) const':
latexstructure.cpp:90:2: warning: nonnull argument 'this' compared to NULL [-Wnonnull-compare]
  if (!this) return;
  ^~
builder for '/nix/store/3lpk8l5mzndx93835s3ackcvsqpp04sf-texstudio-2.12.6.drv' failed with exit code 2
error: build of '/nix/store/3lpk8l5mzndx93835s3ackcvsqpp04sf-texstudio-2.12.6.drv' failed

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Partial log (click to expand)

shrinking RPATHs of ELF executables and libraries in /nix/store/w1lcfyrb616hblprgklkplgp8vm4g99w-texstudio-2.12.6
shrinking /nix/store/w1lcfyrb616hblprgklkplgp8vm4g99w-texstudio-2.12.6/bin/texstudio
strip is /nix/store/5qj61lcvzlap87rf6blvf8p577d482bv-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/w1lcfyrb616hblprgklkplgp8vm4g99w-texstudio-2.12.6/bin 
patching script interpreter paths in /nix/store/w1lcfyrb616hblprgklkplgp8vm4g99w-texstudio-2.12.6
checking for references to /tmp/nix-build-texstudio-2.12.6.drv-0 in /nix/store/w1lcfyrb616hblprgklkplgp8vm4g99w-texstudio-2.12.6...
postPatchMkspecs
postPatchMkspecs
postPatchMkspecs
/nix/store/w1lcfyrb616hblprgklkplgp8vm4g99w-texstudio-2.12.6

@ajs124
Copy link
Member Author

ajs124 commented Feb 12, 2018

Ok, I can also disable that warning, but I'm not sure why it occurs and if it's safe to disable. How would you prefer this to be handled?

@andir
Copy link
Member

andir commented Feb 13, 2018

It is not the warning that made the build fail. There are more compile time issues: https://logs.nix.ci/?key=nixos/nixpkgs.34794&attempt_id=6e5953b7-b303-4b14-8a10-0428fa8ccd49

Can you restrict this to x86_64-linux unless you want to investigate further? :-)

@GrahamcOfBorg eval

@ajs124
Copy link
Member Author

ajs124 commented Feb 13, 2018

Ok, I restricted it to x86_64-linux. Thanks for your help on this.

@andir andir merged commit 358b821 into NixOS:master Feb 13, 2018
@ajs124 ajs124 deleted the update/texmaker_and_studio branch July 31, 2018 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants