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

[email protected]: fails to move folders after extracting on 64bit #6470

Closed
3 tasks done
gitrauno opened this issue Jan 18, 2025 · 1 comment
Closed
3 tasks done

Comments

@gitrauno
Copy link

gitrauno commented Jan 18, 2025

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all issues/PRs to ensure it has not already been reported or fixed.
  • I have verified that I am using the latest version of Scoop and corresponding bucket.

I did try to report it with #6469 but it was autoclosed. I chose "bug" template for the issue and I guess that was wrong.

Package Name

psqlodbc

Expected/Current Behaviour

scoop install psqlodbc

Expected behaviour - installation of psqlodbc. Current behaviour - fails to install on 64bit architecture.

Steps to Reproduce

On 64bit architecture

scoop install psqlodbc
Installing 'psqlodbc' (17.00.0004) [64bit] from 'main' bucket  
Loading psqlodbc_x64.msi from cache  
Checking hash of psqlodbc_x64.msi ... ok.  
Extracting psqlodbc_x64.msi ...   
Could not find '1700'! (error 16)  
At C:\Users\user\scoop\apps\scoop\current\lib\core.ps1:892 char:9  
+         throw "Could not find '$(fname $from)'! (error $($proc.ExitCo ...  
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
    + CategoryInfo          : OperationStopped: (Could not find '1700'! (error 16):String) [], RuntimeException  
    + FullyQualifiedErrorId : Could not find '1700'! (error 16)

Possible Solution

psqlodbc.json

Attribute extract_dir should be moved under architecture and should differ for 64bit and 32bit. I downloaded both x86 and x64 variants and unpacked them with msiexec to their respective _tmp folders. tree /F output (with insides of bin and docs folders omitted) is as follows:

├───32bit
│   │   psqlodbc_x86.msi
│   │
│   └───_tmp
│       │   psqlodbc_x86.msi
│       │
│       └───PFiles
│           └───psqlODBC
│               └───1700
│                   ├───bin
│                   └───docs
│
└───64bit
    │   psqlodbc_x64.msi
    │
    └───_tmp
        │   psqlodbc_x64.msi
        │
        └───PFiles64
            └───psqlODBC
                └───1700
                    ├───bin
                    └───docs

For 32bit folder structure is as expected PFiles\\psqlODBC\\1700

For 64bit the folder structure is PFiles64\\psqlODBC\\1700 instead. Allow me to emphasize PFiles64

As per contributing guide I am to open issue first and have it approved before making a pull request. But feel free to do the pull request on your own if that is simple enough, no need to wait for me to figure that out.

I assume same must be done for autoupdate attribute then.

Scoop and Buckets Version

Current Scoop version:
859d1db5 (HEAD -> master, tag: v0.5.2, origin/master, origin/HEAD) chore(release): Bump to version 0.5.2 (#6080)

'main' bucket:
70ac8453a (HEAD -> master, origin/master, origin/HEAD) task: Update to version 3.41.0

Scoop Config

scoop config

last_update                       scoop_repo                              scoop_branch
-----------                       ----------                              ------------
2025-01-18T21:00:57.5976281+02:00 https://github.com/ScoopInstaller/Scoop master

PowerShell Version

$PSVersionTable
Name                           Value
----                           -----
PSVersion                      5.1.26100.2161
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.26100.2161
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Additional Softwares

No response

Copy link
Contributor

You reported version 17.00.004, but the latest available version is 17.00.0004.

Run scoop update; scoop update psqlodbc --force

@gitrauno gitrauno changed the title [email protected]: fails to move folders after extracting on 64bit [email protected]: fails to move folders after extracting on 64bit Jan 18, 2025
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

No branches or pull requests

1 participant