Skip to content

Conversation

@paveljanik
Copy link
Contributor

When comparing two separate build logs (both being done in its own, different directory), the log line containing protoc shines in the diff:

$ diff -u 7774.log  master.log | grep protoc
-/opt/local/bin/protoc --cpp_out=qt --proto_path=/private/tmp/bitcoin-7774/src/qt /private/tmp/bitcoin-7774/src/qt/paymentrequest.proto
+/opt/local/bin/protoc --cpp_out=qt --proto_path=/private/tmp/bitcoin-master/src/qt /private/tmp/bitcoin-master/src/qt/paymentrequest.proto
$ 

There is no reason to use absolute paths here.

After this change, the protoc command line is always

/opt/local/bin/protoc --cpp_out=qt --proto_path=qt/ qt/paymentrequest.proto

@theuni Please have a look.

@paveljanik
Copy link
Contributor Author

Travis failure is unrelated to this change.

@theuni
Copy link
Member

theuni commented Apr 4, 2016

I think this should be ok. I suspect it was absolute as part of the initial recursive buildsystem.

Please make it ... --proto_path=$(<D) $< though, rather than using "dir".

@paveljanik paveljanik force-pushed the 20160402_protoc_use_relpath branch from 87fac00 to 0087f26 Compare April 4, 2016 17:58
@paveljanik
Copy link
Contributor Author

Done. Thanks.

@paveljanik
Copy link
Contributor Author

So after this, the remaining changes/diffs are

-=== configuring in src/univalue (/tmp/bitcoin-master/src/univalue)
+=== configuring in src/univalue (/tmp/bitcoin-7788/src/univalue)

for univalue and secp265k1 directories.

@theuni
Copy link
Member

theuni commented Apr 4, 2016

Thanks. ACK.

Don't think we can do anything about the configure subdirs, the pwd is hard-coded.

@paveljanik
Copy link
Contributor Author

@theuni yes, I can live with it and ignore such lines.

@laanwj
Copy link
Member

laanwj commented Apr 5, 2016

Nice, makes the line a few characters shorter too. utACK 0087f26

@laanwj laanwj merged commit 0087f26 into bitcoin:master Apr 5, 2016
laanwj added a commit that referenced this pull request Apr 5, 2016
…alls

0087f26 Use relative paths instead of absolute paths (Pavel Janík)
codablock pushed a commit to codablock/dash that referenced this pull request Dec 19, 2017
…rotoc calls

0087f26 Use relative paths instead of absolute paths (Pavel Janík)
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants