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

Linux fixes #1

Merged
merged 6 commits into from Mar 12, 2018
Merged

Linux fixes #1

merged 6 commits into from Mar 12, 2018

Conversation

vbmithr
Copy link
Contributor

@vbmithr vbmithr commented Jan 28, 2018

I fixed the build under Linux (modernized the autoconf files a bit), and added a pkg-config file.
Archlinux package here: https://aur.archlinux.org/packages/ta-lib-git/


Since there are a lot of space changes in the PR, to make it easier to review, the following way is suggested.

git fetch origin pull/1/head:fix-build
git checkout fix-build
git diff --ignore-space-change 48f5ed37b6e4b66eba6a9ab1dee78b23607117d9 HEAD

@mckelvin
Copy link
Contributor

mckelvin commented Mar 8, 2018

Hey Vincent - this repo was just a mirror of the original SVN repo on SF. I'm not planning to maintain the project. But since the upstream is frozen for a long time, I'd like merge some compatible improvements to make it easier for community to use (like this PR).

.gitignore Outdated
@@ -0,0 +1,10 @@
**/*.in
Copy link
Contributor

Choose a reason for hiding this comment

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

Usually .in files are use for generating some other files. I don't think we should ignore them.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These files are autogenerated from Makefile.am files. They should not be commited in a repository.

Copy link
Contributor

Choose a reason for hiding this comment

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

$ find . -name "*.in"
./ta-lib.dpkg.in
./ta-lib.pc.in
./ta-lib.spec.in

What about these files?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed (and improved, now ignoring all generated files).

.gitignore Outdated
@@ -0,0 +1,10 @@
**/*.in
**/*.o
Copy link
Contributor

Choose a reason for hiding this comment

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

I think *.o is enough if you want to ignore all .o files in the repo. The same to the other lines in the file.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok.

.gitignore Outdated
**/*.o
**/*.lo
**/*.la
**/Makefile
Copy link
Contributor

Choose a reason for hiding this comment

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

There're several Makefiles in the repo, which is generated using tmake. I'd like to remove them and add this line if all existed Makefiles can be generated from the source (make/gen_make/). Otherwise I'd prefer to remove Makefile here.


sprintf( buffer, TA_MCPP_EXE " -@compat -+ -z -P -I.." TA_FS_SLASH "src" TA_FS_SLASH "ta_common -I.." TA_FS_SLASH "src" TA_FS_SLASH "ta_abstract -I.." TA_FS_SLASH "include -D _JAVA .." TA_FS_SLASH "temp" TA_FS_SLASH "CoreJavaCode1.tmp | sed '/^#include/d' > .." TA_FS_SLASH "temp" TA_FS_SLASH "CoreJavaCode2.tmp " );
system( buffer );
ret = system( buffer );
Copy link
Contributor

Choose a reason for hiding this comment

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

Why adding the ret? I think it's never used.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it was triggering a warning (possibly error) in my machine. I remember thinking that it was indeed useless.

all-local:
$(MAKE) $(AM_MAKEFLAGS) gen_code
cp gen_code ../../../bin
# all-local:
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd prefer to leave it unchanged. Is it possible to not install the gen_code script in the PKGBUILD?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was triggering a recursive make that was screwing up the compilation when using parallel compilation.

@mckelvin mckelvin merged commit 400eed5 into TA-Lib:master Mar 12, 2018
@mckelvin
Copy link
Contributor

Thanks @vbmithr !

@wony-zheng wony-zheng mentioned this pull request Dec 26, 2023
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