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

Ensure new .a file needed before deleting old #168

Merged
merged 2 commits into from May 22, 2018

Conversation

ccollins476ad
Copy link
Contributor

When creating a .a file for a package, newt first deletes the existing .a file from the previous build. There is one case where this causes problems: the package's source directory contains a .a file with the same name that newt plans to use. In this case, newt confuses the input .a file as an artifact from a prior build and deletes it.

The fix is to delay the deletion of the old .a file until after ensuring that a new .a file will be built. Newt determines if it will be building a new .a file by checking if any .o files were produced for the package. Thus, a package consisting only of .a files does not generate
a new .a file.

Newt prints a message when it compiles, copies, archives, or links.  The
first letter of this message is capitalized in all cases except the
"copying" message.

This commit changes it to "Copying..."
When creating a .a file for a package, newt first deletes the existing
.a file from the previous build.  There is one case where this causes
problems: the package's source directory contains a .a file with the
same name that newt plans to use.  In this case, newt confuses the
input .a file as an artifact from a prior build and deletes it.

The fix is to delay the deletion of the old .a file until after ensuring
that a new .a file will be built.  Newt determines if it will be
building a new .a file by checking if any .o files were produced for the
package.  Thus, a package consisting only of .a files does not generate
a new .a file.
@ccollins476ad ccollins476ad merged commit 0cf72ff into apache:master May 22, 2018
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

Successfully merging this pull request may close these issues.

None yet

2 participants