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

gImageReader: init at 3.2.99 [rdy] #46844

Merged
merged 1 commit into from Nov 1, 2018
Merged

gImageReader: init at 3.2.99 [rdy] #46844

merged 1 commit into from Nov 1, 2018

Conversation

teto
Copy link
Member

@teto teto commented Sep 18, 2018

GImageReader is a GUI for tesseract, an optical character recognition engine.

Motivation for this change

Tired of CLI.

Things done

While the program supports multiple GUI (qt4/5/gtk), I just implemented gtk. I believe a Qt one might miss some dependencies so I leave it for someone else :)

  • Tested using sandboxing (nix.useSandbox on NixOS, or option 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/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: gImageReader

Partial log (click to expand)

-- Installing: /nix/store/kjghn7j6i4hcdv0k976rw51ki9q9xbz3-gImageReader-3.2.99/share/doc/gimagereader/manual.html
glibPreFixupPhase
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/kjghn7j6i4hcdv0k976rw51ki9q9xbz3-gImageReader-3.2.99
shrinking /nix/store/kjghn7j6i4hcdv0k976rw51ki9q9xbz3-gImageReader-3.2.99/bin/gimagereader-gtk
strip is /nix/store/h0lbngpv6ln56hjj59i6l77vxq25flbz-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/kjghn7j6i4hcdv0k976rw51ki9q9xbz3-gImageReader-3.2.99/bin
patching script interpreter paths in /nix/store/kjghn7j6i4hcdv0k976rw51ki9q9xbz3-gImageReader-3.2.99
checking for references to /build in /nix/store/kjghn7j6i4hcdv0k976rw51ki9q9xbz3-gImageReader-3.2.99...
/nix/store/kjghn7j6i4hcdv0k976rw51ki9q9xbz3-gImageReader-3.2.99

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: gImageReader

Partial log (click to expand)

-- Installing: /nix/store/ck4pm1qsmm4qpgq1nl0r430xq6n2s4wy-gImageReader-3.2.99/share/doc/gimagereader/manual.html
glibPreFixupPhase
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/ck4pm1qsmm4qpgq1nl0r430xq6n2s4wy-gImageReader-3.2.99
shrinking /nix/store/ck4pm1qsmm4qpgq1nl0r430xq6n2s4wy-gImageReader-3.2.99/bin/gimagereader-gtk
strip is /nix/store/y4ymnvgxygpq05h03kyzbj572zmh6zla-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/ck4pm1qsmm4qpgq1nl0r430xq6n2s4wy-gImageReader-3.2.99/bin
patching script interpreter paths in /nix/store/ck4pm1qsmm4qpgq1nl0r430xq6n2s4wy-gImageReader-3.2.99
checking for references to /build in /nix/store/ck4pm1qsmm4qpgq1nl0r430xq6n2s4wy-gImageReader-3.2.99...
/nix/store/ck4pm1qsmm4qpgq1nl0r430xq6n2s4wy-gImageReader-3.2.99

@teto
Copy link
Member Author

teto commented Sep 18, 2018

I have pusehd a version with your suggestions.

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: gImageReader

Partial log (click to expand)

glibPreFixupPhase
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/54p8zy9z1nfp2m4mvravw4w622sad0l8-gImageReader-3.2.99
shrinking /nix/store/54p8zy9z1nfp2m4mvravw4w622sad0l8-gImageReader-3.2.99/bin/gimagereader-gtk
strip is /nix/store/y4ymnvgxygpq05h03kyzbj572zmh6zla-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/54p8zy9z1nfp2m4mvravw4w622sad0l8-gImageReader-3.2.99/bin
patching script interpreter paths in /nix/store/54p8zy9z1nfp2m4mvravw4w622sad0l8-gImageReader-3.2.99
checking for references to /build in /nix/store/54p8zy9z1nfp2m4mvravw4w622sad0l8-gImageReader-3.2.99...
Wrapping program /nix/store/54p8zy9z1nfp2m4mvravw4w622sad0l8-gImageReader-3.2.99/bin/gimagereader-gtk
/nix/store/54p8zy9z1nfp2m4mvravw4w622sad0l8-gImageReader-3.2.99

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: gImageReader

Partial log (click to expand)

glibPreFixupPhase
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/w9i4nkqrv0nx6pqzrdjp8rlc5qm71w34-gImageReader-3.2.99
shrinking /nix/store/w9i4nkqrv0nx6pqzrdjp8rlc5qm71w34-gImageReader-3.2.99/bin/gimagereader-gtk
strip is /nix/store/h0lbngpv6ln56hjj59i6l77vxq25flbz-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/w9i4nkqrv0nx6pqzrdjp8rlc5qm71w34-gImageReader-3.2.99/bin
patching script interpreter paths in /nix/store/w9i4nkqrv0nx6pqzrdjp8rlc5qm71w34-gImageReader-3.2.99
checking for references to /build in /nix/store/w9i4nkqrv0nx6pqzrdjp8rlc5qm71w34-gImageReader-3.2.99...
Wrapping program /nix/store/w9i4nkqrv0nx6pqzrdjp8rlc5qm71w34-gImageReader-3.2.99/bin/gimagereader-gtk
/nix/store/w9i4nkqrv0nx6pqzrdjp8rlc5qm71w34-gImageReader-3.2.99

cmakeFlags = [ "-DINTERFACE_TYPE=${variant}" ];

meta = with stdenv.lib; {
description = "A simple Gtk/Qt front-end to tesseract-ocr.";
Copy link
Contributor

Choose a reason for hiding this comment

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

No need for full-stop here.

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: gImageReader

Partial log (click to expand)

glibPreFixupPhase
post-installation fixup
Wrapping program /nix/store/98l396p2kjlxd94pyl0zzpglbr3j3m4v-gImageReader-3.2.99/bin/gimagereader-gtk
shrinking RPATHs of ELF executables and libraries in /nix/store/98l396p2kjlxd94pyl0zzpglbr3j3m4v-gImageReader-3.2.99
shrinking /nix/store/98l396p2kjlxd94pyl0zzpglbr3j3m4v-gImageReader-3.2.99/bin/.gimagereader-gtk-wrapped
strip is /nix/store/h0lbngpv6ln56hjj59i6l77vxq25flbz-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/98l396p2kjlxd94pyl0zzpglbr3j3m4v-gImageReader-3.2.99/bin
patching script interpreter paths in /nix/store/98l396p2kjlxd94pyl0zzpglbr3j3m4v-gImageReader-3.2.99
checking for references to /build in /nix/store/98l396p2kjlxd94pyl0zzpglbr3j3m4v-gImageReader-3.2.99...
/nix/store/98l396p2kjlxd94pyl0zzpglbr3j3m4v-gImageReader-3.2.99

@teto teto force-pushed the gImageReader branch 2 times, most recently from 9949832 to ed2be46 Compare September 21, 2018 09:37
@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: gImageReader

Partial log (click to expand)

glibPreFixupPhase
post-installation fixup
Wrapping program /nix/store/6289zvzk177i8dhm08prsciq8m84fxnn-gImageReader-3.2.99/bin/gimagereader-gtk
shrinking RPATHs of ELF executables and libraries in /nix/store/6289zvzk177i8dhm08prsciq8m84fxnn-gImageReader-3.2.99
shrinking /nix/store/6289zvzk177i8dhm08prsciq8m84fxnn-gImageReader-3.2.99/bin/.gimagereader-gtk-wrapped
strip is /nix/store/y4ymnvgxygpq05h03kyzbj572zmh6zla-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/6289zvzk177i8dhm08prsciq8m84fxnn-gImageReader-3.2.99/bin
patching script interpreter paths in /nix/store/6289zvzk177i8dhm08prsciq8m84fxnn-gImageReader-3.2.99
checking for references to /build in /nix/store/6289zvzk177i8dhm08prsciq8m84fxnn-gImageReader-3.2.99...
/nix/store/6289zvzk177i8dhm08prsciq8m84fxnn-gImageReader-3.2.99

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: gImageReader

Partial log (click to expand)

/nix/store/6289zvzk177i8dhm08prsciq8m84fxnn-gImageReader-3.2.99

@GrahamcOfBorg
Copy link

Unexpected error: command failed with exit code 1 on x86_64-linux (full log)

Attempted: gImageReader

Partial log (click to expand)

copying path '/nix/store/r24a5i9zyrszx1q6ij5y2mj6k3kfrj0i-hook' from 'https://cache.nixos.org'...
copying path '/nix/store/gml8a1sxgxygkaia61x7b59z2wn2g9z5-gtksourceview-3.24.6-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/jxfhy3jcmf43zghfan45cqnbsj9cw1l8-gtkmm-3.22.2-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/iwpxyiwxjjbha27skfd447m1a3c5lp27-gtksourceviewmm-3.21.3' from 'https://cache.nixos.org'...
copying path '/nix/store/06wacbdw5x5z8lbp204ksax8950k2xd9-gtkspell-3.0.9-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/spz3llnzrjsb3v7miy6vfpr4f7kl02gj-gtkspellmm-3.0.5' from 'https://cache.nixos.org'...
warning: unable to download 'https://cache.nixos.org/nar/0nn54apwx4ybcank1hfpai9wf9xddmcxmm5bzhz5i4j63vik5qjy.nar.xz': HTTP error 200 (curl error: Stream error in the HTTP/2 framing layer); retrying in 295 ms
error 9 while decompressing xz file
cannot build derivation '/nix/store/x9yfajpq5pqwiy7rj2kkkj6akky3hfpg-gImageReader-3.2.99.drv': 1 dependencies couldn't be built
error: build of '/nix/store/x9yfajpq5pqwiy7rj2kkkj6akky3hfpg-gImageReader-3.2.99.drv' failed

@teto teto changed the title gImageReader: init at 3.2.99 gImageReader: init at 3.2.99 [wip] Oct 15, 2018
@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: gImageReader

Partial log (click to expand)

glibPreFixupPhase
post-installation fixup
Wrapping program /nix/store/4gx7cv8dyqdvzqx58gjsr1r02ckd9aix-gImageReader-3.2.99/bin/gimagereader-gtk
shrinking RPATHs of ELF executables and libraries in /nix/store/4gx7cv8dyqdvzqx58gjsr1r02ckd9aix-gImageReader-3.2.99
shrinking /nix/store/4gx7cv8dyqdvzqx58gjsr1r02ckd9aix-gImageReader-3.2.99/bin/.gimagereader-gtk-wrapped
strip is /nix/store/vcc4svb8gy29g4pam2zja6llkbcwsyiq-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/4gx7cv8dyqdvzqx58gjsr1r02ckd9aix-gImageReader-3.2.99/bin
patching script interpreter paths in /nix/store/4gx7cv8dyqdvzqx58gjsr1r02ckd9aix-gImageReader-3.2.99
checking for references to /build in /nix/store/4gx7cv8dyqdvzqx58gjsr1r02ckd9aix-gImageReader-3.2.99...
/nix/store/4gx7cv8dyqdvzqx58gjsr1r02ckd9aix-gImageReader-3.2.99

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: gImageReader

Partial log (click to expand)

glibPreFixupPhase
post-installation fixup
Wrapping program /nix/store/a3f6zvwqb5g5dy9r19b3f1l3vi32f2lf-gImageReader-3.2.99/bin/gimagereader-gtk
shrinking RPATHs of ELF executables and libraries in /nix/store/a3f6zvwqb5g5dy9r19b3f1l3vi32f2lf-gImageReader-3.2.99
shrinking /nix/store/a3f6zvwqb5g5dy9r19b3f1l3vi32f2lf-gImageReader-3.2.99/bin/.gimagereader-gtk-wrapped
strip is /nix/store/p9akxn2sfy4wkhqdqa3li97pc6jaz3r1-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/a3f6zvwqb5g5dy9r19b3f1l3vi32f2lf-gImageReader-3.2.99/bin
patching script interpreter paths in /nix/store/a3f6zvwqb5g5dy9r19b3f1l3vi32f2lf-gImageReader-3.2.99
checking for references to /build in /nix/store/a3f6zvwqb5g5dy9r19b3f1l3vi32f2lf-gImageReader-3.2.99...
/nix/store/a3f6zvwqb5g5dy9r19b3f1l3vi32f2lf-gImageReader-3.2.99

++ [ wrapGAppsHook gobjectIntrospection ];

buildInputs = [
pythonEnv
Copy link
Contributor

Choose a reason for hiding this comment

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

pkgs/applications/misc/gImageReader/default.nix Outdated Show resolved Hide resolved
pkgs/applications/misc/gImageReader/default.nix Outdated Show resolved Hide resolved
@teto teto force-pushed the gImageReader branch 3 times, most recently from 0dcc14b to e1a45d8 Compare November 1, 2018 15:31
@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: gImageReader

Partial log (click to expand)

glibPreFixupPhase
post-installation fixup
Wrapping program /nix/store/jzc1jnwc0w0z0sw31p02kbak069izdmj-gImageReader-3.2.99/bin/gimagereader-gtk
shrinking RPATHs of ELF executables and libraries in /nix/store/jzc1jnwc0w0z0sw31p02kbak069izdmj-gImageReader-3.2.99
shrinking /nix/store/jzc1jnwc0w0z0sw31p02kbak069izdmj-gImageReader-3.2.99/bin/.gimagereader-gtk-wrapped
strip is /nix/store/vcc4svb8gy29g4pam2zja6llkbcwsyiq-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/jzc1jnwc0w0z0sw31p02kbak069izdmj-gImageReader-3.2.99/bin
patching script interpreter paths in /nix/store/jzc1jnwc0w0z0sw31p02kbak069izdmj-gImageReader-3.2.99
checking for references to /build in /nix/store/jzc1jnwc0w0z0sw31p02kbak069izdmj-gImageReader-3.2.99...
/nix/store/jzc1jnwc0w0z0sw31p02kbak069izdmj-gImageReader-3.2.99

gImageReader is a GUI for tesseract, an optical character recognition engine.
While the UI supports Qt/Gtk, I have only added the gtk one in the nix derivation.
@teto teto changed the title gImageReader: init at 3.2.99 [wip] gImageReader: init at 3.2.99 [rdy] Nov 1, 2018
@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: gImageReader

Partial log (click to expand)

glibPreFixupPhase
post-installation fixup
Wrapping program /nix/store/llwd0cy6c7l83l9zkxqaqnxlgm88ll68-gImageReader-3.2.99/bin/gimagereader-gtk
shrinking RPATHs of ELF executables and libraries in /nix/store/llwd0cy6c7l83l9zkxqaqnxlgm88ll68-gImageReader-3.2.99
shrinking /nix/store/llwd0cy6c7l83l9zkxqaqnxlgm88ll68-gImageReader-3.2.99/bin/.gimagereader-gtk-wrapped
strip is /nix/store/p9akxn2sfy4wkhqdqa3li97pc6jaz3r1-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/llwd0cy6c7l83l9zkxqaqnxlgm88ll68-gImageReader-3.2.99/bin
patching script interpreter paths in /nix/store/llwd0cy6c7l83l9zkxqaqnxlgm88ll68-gImageReader-3.2.99
checking for references to /build in /nix/store/llwd0cy6c7l83l9zkxqaqnxlgm88ll68-gImageReader-3.2.99...
/nix/store/llwd0cy6c7l83l9zkxqaqnxlgm88ll68-gImageReader-3.2.99

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: gImageReader

Partial log (click to expand)

/nix/store/llwd0cy6c7l83l9zkxqaqnxlgm88ll68-gImageReader-3.2.99

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: gImageReader

Partial log (click to expand)

glibPreFixupPhase
post-installation fixup
Wrapping program /nix/store/jzc1jnwc0w0z0sw31p02kbak069izdmj-gImageReader-3.2.99/bin/gimagereader-gtk
shrinking RPATHs of ELF executables and libraries in /nix/store/jzc1jnwc0w0z0sw31p02kbak069izdmj-gImageReader-3.2.99
shrinking /nix/store/jzc1jnwc0w0z0sw31p02kbak069izdmj-gImageReader-3.2.99/bin/.gimagereader-gtk-wrapped
strip is /nix/store/vcc4svb8gy29g4pam2zja6llkbcwsyiq-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/jzc1jnwc0w0z0sw31p02kbak069izdmj-gImageReader-3.2.99/bin
patching script interpreter paths in /nix/store/jzc1jnwc0w0z0sw31p02kbak069izdmj-gImageReader-3.2.99
checking for references to /build in /nix/store/jzc1jnwc0w0z0sw31p02kbak069izdmj-gImageReader-3.2.99...
/nix/store/jzc1jnwc0w0z0sw31p02kbak069izdmj-gImageReader-3.2.99

@jtojnar jtojnar merged commit 96bb8ce into NixOS:master Nov 1, 2018
@teto teto deleted the gImageReader branch November 1, 2018 18:08
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

3 participants