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

draftsight: 2018SP2 -> 2019SP0 #58666

Closed
wants to merge 1 commit into from

Conversation

r-ryantm
Copy link
Contributor

@r-ryantm r-ryantm commented Apr 1, 2019

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/draftsight/versions.

meta.description for draftsight is: '"2D design & drafting application, meant to be similar to AutoCAD"'.

Checks done (click to expand)
Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

1 x86_64-linux rebuild(s)
0 i686-linux rebuild(s)
0 x86_64-darwin rebuild(s)
0 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
draftsight

Instructions to test this update (click to expand)

Either download from Cachix:

nix-store -r /nix/store/lssvlln6hi3pqkmqzqg7v23g7dnqmf6z-draftsight-2019SP0 \
  --option binary-caches 'https://cache.nixos.org/ https://r-ryantm.cachix.org/' \
  --option trusted-public-keys '
  r-ryantm.cachix.org-1:gkUbLkouDAyvBdpBX0JOdIiD2/DP1ldF3Z3Y6Gqcc4c=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(r-ryantm's Cachix cache is only trusted for this store-path realization.)

Or, build yourself:

nix-build -A draftsight https://github.com/r-ryantm/nixpkgs/archive/fdc572ca75c619f5d8f9b25e85c7fe0fd173de9b.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:

ls -la /nix/store/lssvlln6hi3pqkmqzqg7v23g7dnqmf6z-draftsight-2019SP0
ls -la /nix/store/lssvlln6hi3pqkmqzqg7v23g7dnqmf6z-draftsight-2019SP0/bin

cc @Hodapp87 for testing.

Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/draftsight/versions
Copy link
Contributor

@tomberek tomberek left a comment

Choose a reason for hiding this comment

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

Does not find dependency harfbuzz. Might be broken.

Copy link
Contributor

@xeji xeji left a comment

Choose a reason for hiding this comment

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

Builds but looks broken indeed:

$ DraftSight
/nix/store/9dfz2x9crnl9b2slk05lrcn16yznkfh6-draftsight-2019SP0/draftsight/opt/dassault-systemes/DraftSight/Linux/DraftSight: error while loading shared libraries: libharfbuzz.so.0: cannot open shared object file: No such file or directory

@aanderse
Copy link
Member

@Hodapp87 would you possibly have time to take a look at this?

@Hodapp87
Copy link
Contributor

I am looking at it now, but can't make any promises on how much time I'll have to do so

@Hodapp87
Copy link
Contributor

I was able to get past the harfbuzz error merely with this:

diff --git a/pkgs/applications/graphics/draftsight/default.nix b/pkgs/applications/graphics/draftsight/default.nix
index e22580646c4..0314168431a 100644
--- a/pkgs/applications/graphics/draftsight/default.nix
+++ b/pkgs/applications/graphics/draftsight/default.nix
@@ -2,7 +2,7 @@
   dbus, alsaLib, cups, fontconfig, glib, icu, libpng12,
   xkeyboard_config, zlib, libxslt, libxml2, sqlite, orc,
   libX11, libXcursor, libXrandr, libxcb, libXi, libSM, libICE,
-  libXrender, libXcomposite }:
+  libXrender, libXcomposite, harfbuzz }:

 let version = "2019SP0"; in
 stdenv.mkDerivation {
@@ -74,7 +74,7 @@ stdenv.mkDerivation {
     dbus alsaLib cups.lib fontconfig glib icu libpng12
     xkeyboard_config zlib libxslt libxml2 sqlite orc libX11
     libXcursor libXrandr libxcb libXi libSM libICE libXrender
-    libXcomposite ];
+    libXcomposite harfbuzz ];

   meta = with stdenv.lib; {
     description = "2D design & drafting application, meant to be similar to AutoCAD";

but I am then stuck with this familiar error...

terminate called after throwing an instance of 'std::runtime_error'
  what():  This application failed to start because it could not find or load the Qt platform plugin "xcb"
in "".

Available platform plugins are: linuxfb, minimal, offscreen, vnc, xcb.

Reinstalling the application may fix this problem.
Aborted

I have dealt with this before but I completely forget how I fixed it.

@aanderse
Copy link
Member

@Hodapp87 I see a couple references to this issue, including #56921

@aanderse
Copy link
Member

@Hodapp87 A new version of draftsight has been released so this PR is out of date. If you're able to figure things out please go ahead and make a new PR with the latest version of draftsight.

@aanderse aanderse closed this Jul 13, 2019
@r-ryantm r-ryantm deleted the auto-update/draftsight branch July 19, 2019 03:57
@nixos-discourse
Copy link

This pull request has been mentioned on Nix community. There might be relevant details there:

https://discourse.nixos.org/t/prs-in-distress/3604/1

@tbenst
Copy link
Contributor

tbenst commented Dec 11, 2019

@Hodapp87 I think this is #65399

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

9 participants