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 #65065
Conversation
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
@worldofpeace can you please assist with this package? It fails with following:
I did try to wrap it around with |
That's weird. I don't see it using anything qt related anywhere in the expression. The reason wrapping had no effect is because it's already wrapped and So to fix this we should probably
Then you have to set
cc @Hodapp87 |
ping @Hodapp87 do you mind looking at this? |
@mmahut I am going to look at it a little today as time permits |
@worldofpeace I am trying to follow your directions here, but I am still stuck at:
Below is the patch for what I'm trying from diff --git a/pkgs/applications/graphics/draftsight/default.nix b/pkgs/applications/graphics/draftsight/default.nix
index 0314168431a..3e500b28000 100644
--- a/pkgs/applications/graphics/draftsight/default.nix
+++ b/pkgs/applications/graphics/draftsight/default.nix
@@ -27,9 +27,7 @@ stdenv.mkDerivation {
patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
--set-rpath $libPath:\$ORIGIN/../Libraries \
$out/draftsight/opt/dassault-systemes/DraftSight/Linux/$exe
- makeWrapper $out/draftsight/opt/dassault-systemes/DraftSight/Linux/$exe \
- $out/bin/$exe \
- --prefix "QT_XKB_CONFIG_ROOT" ":" "${xkeyboard_config}/share/X11/xkb"
+ ln -s $out/draftsight/opt/dassault-systemes/DraftSight/Linux/$exe $out/bin/$exe
done
for lib in $out/draftsight/opt/dassault-systemes/DraftSight/Libraries/*.so*; do
# DraftSight ships with broken symlinks for some reason
@@ -55,6 +53,8 @@ stdenv.mkDerivation {
find $out/draftsight/opt/dassault-systemes/DraftSight/APISDK/Samples/C++ \
-type d -name _lib | xargs rm -r
'';
+ qtWrapperArgs = [ "--prefix" "QT_XKB_CONFIG_ROOT" ":" "${xkeyboard_config}/share/X11/xkb" ];
+ qtPluginPrefix = "$out/draftsight/opt/dassault-systemes/DraftSight/PlugIns/QtPlugIns";
# TODO: Figure out why HelpGuide segfaults at startup.
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index f642f9e1832..5b8ce6df559 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -17459,7 +17459,7 @@ in
dr14_tmeter = callPackage ../applications/audio/dr14_tmeter { };
- draftsight = callPackage ../applications/graphics/draftsight { };
+ draftsight = qt5.callPackage ../applications/graphics/draftsight { };
dragonfly-reverb = callPackage ../applications/audio/dragonfly-reverb { };
|
- "--prefix" "QT_XKB_CONFIG_ROOT" ":" "${xkeyboard_config}/share/X11/xkb"
+ "--prefix QT_XKB_CONFIG_ROOT : ${xkeyboard_config}/share/X11/xkb" and I think you should be using - draftsight = qt5.callPackage ../applications/graphics/draftsight { };
+ draftsight = libsForQt5.callPackage ../applications/graphics/draftsight { }; Can you also check if the executable at Also, there was a regression on 19.09 and master recently that prevent |
I'm now at the below diff and having the same errors. The hash was identical, so I don't think it changed anything.
diff --git a/pkgs/applications/graphics/draftsight/default.nix b/pkgs/applications/graphics/draftsight/default.nix
index 0314168431a..e9f2e0be189 100644
--- a/pkgs/applications/graphics/draftsight/default.nix
+++ b/pkgs/applications/graphics/draftsight/default.nix
@@ -27,9 +27,7 @@ stdenv.mkDerivation {
patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
--set-rpath $libPath:\$ORIGIN/../Libraries \
$out/draftsight/opt/dassault-systemes/DraftSight/Linux/$exe
- makeWrapper $out/draftsight/opt/dassault-systemes/DraftSight/Linux/$exe \
- $out/bin/$exe \
- --prefix "QT_XKB_CONFIG_ROOT" ":" "${xkeyboard_config}/share/X11/xkb"
+ ln -s $out/draftsight/opt/dassault-systemes/DraftSight/Linux/$exe $out/bin/$exe
done
for lib in $out/draftsight/opt/dassault-systemes/DraftSight/Libraries/*.so*; do
# DraftSight ships with broken symlinks for some reason
@@ -55,6 +53,8 @@ stdenv.mkDerivation {
find $out/draftsight/opt/dassault-systemes/DraftSight/APISDK/Samples/C++ \
-type d -name _lib | xargs rm -r
'';
+ qtWrapperArgs = [ "--prefix QT_XKB_CONFIG_ROOT : ${xkeyboard_config}/share/X11/xkb" ];
+ qtPluginPrefix = "$out/draftsight/opt/dassault-systemes/DraftSight/PlugIns/QtPlugIns";
# TODO: Figure out why HelpGuide segfaults at startup.
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index f642f9e1832..2f7d8b26475 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -17459,7 +17459,7 @@ in
dr14_tmeter = callPackage ../applications/audio/dr14_tmeter { };
- draftsight = callPackage ../applications/graphics/draftsight { };
+ draftsight = libsForQt5.callPackage ../applications/graphics/draftsight { };
dragonfly-reverb = callPackage ../applications/audio/dragonfly-reverb { };
|
@Hodapp87 what's the status of this PR? Does it make sense to keep this open? |
@bennofs I'm still stuck at trying to follow what @worldofpeace said. I'm guessing DraftSight has seen updates since then, but the issue here probably persists. |
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"'.
meta.homepage for draftsight is: '"https://www.3ds.com/products-services/draftsight-cad-software/"
Checks done (click to expand)
passthru.tests
, if any, passedRebuild 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:
(r-ryantm's Cachix cache is only trusted for this store-path realization.)
Or, build yourself:
After you've downloaded or built it, look at the files and if there are any, run the binaries:
cc @Hodapp87 for testing.