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

[SR-422] Foundation install script fails when installing to any prefix other than /usr/lib #4472

Closed
swift-ci opened this issue Dec 30, 2015 · 1 comment

Comments

@swift-ci
Copy link
Contributor

Previous ID SR-422
Radar None
Original Reporter emanuel (JIRA User)
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Foundation
Labels Bug, BuildScript
Assignee emanuel (JIRA)
Priority Medium

md5: 6e75117ac24bd401933dc0bf15ee291e

Issue Description:

Steps to reproduce:

Run:

./swift/utils/build-script -R --foundation --xctest -- --install-foundation --install-destdir=/install-destdir --install-prefix=/prefix-dir

Expected Results:
Foundation should build and be installed to /install-destdir/prefix-dir.

Actual Results:

Build completes successfully, but install fails with the following error message:

mkdir -p "/install-destdir//prefix-dir/lib/swift/linux"; cp "../build/Ninja-ReleaseAssert/foundation-linux-x86_64/Foundation/libFoundation.so" "/install-destdir//prefix-dir/lib/swift/linux"; mkdir -p "/install-destdir//prefix-dir/lib/swift/linux/x86_64"; cp "../build/Ninja-ReleaseAssert/foundation-linux-x86_64/Foundation/Foundation.swiftmodule" "/install-destdir//prefix-dir/lib/swift/linux/x86_64/"; cp "../build/Ninja-ReleaseAssert/foundation-linux-x86_64/Foundation/Foundation.swiftdoc" "/install-destdir//prefix-dir/lib/swift/linux/x86_64/"; mkdir -p "/install-destdir//prefix-dir/local/include"; rsync -r "../build/Ninja-ReleaseAssert/foundation-linux-x86_64/Foundation//prefix-dir/lib/swift/CoreFoundation" "/install-destdir//prefix-dir/lib/swift/"

In particular, the line

rsync -r "../build/Ninja-ReleaseAssert/foundation-linux-x86_64/Foundation//prefix-dir/lib/swift/CoreFoundation" "/install-destdir//prefix-dir/lib/swift/"

fails because these files are still placed in usr instead of prefix-dir during the build.

@swift-ci
Copy link
Contributor Author

Comment by Emanuel Zephir (JIRA)

Pull request 198 submitted to resolve this issue.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 5, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant