{"action":"created","issue":{"url":"https://api.github.com/repos/anestisb/android-prepare-vendor/issues/142","repository_url":"https://api.github.com/repos/anestisb/android-prepare-vendor","labels_url":"https://api.github.com/repos/anestisb/android-prepare-vendor/issues/142/labels{/name}","comments_url":"https://api.github.com/repos/anestisb/android-prepare-vendor/issues/142/comments","events_url":"https://api.github.com/repos/anestisb/android-prepare-vendor/issues/142/events","html_url":"https://github.com/anestisb/android-prepare-vendor/issues/142","id":393818394,"node_id":"MDU6SXNzdWUzOTM4MTgzOTQ=","number":142,"title":"Output not deterministic for crosshatch:","user":{"login":"lrvick","id":69200,"node_id":"MDQ6VXNlcjY5MjAw","avatar_url":"https://avatars2.githubusercontent.com/u/69200?v=4","gravatar_id":"","url":"https://api.github.com/users/lrvick","html_url":"https://github.com/lrvick","followers_url":"https://api.github.com/users/lrvick/followers","following_url":"https://api.github.com/users/lrvick/following{/other_user}","gists_url":"https://api.github.com/users/lrvick/gists{/gist_id}","starred_url":"https://api.github.com/users/lrvick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lrvick/subscriptions","organizations_url":"https://api.github.com/users/lrvick/orgs","repos_url":"https://api.github.com/users/lrvick/repos","events_url":"https://api.github.com/users/lrvick/events{/privacy}","received_events_url":"https://api.github.com/users/lrvick/received_events","type":"User","site_admin":false},"labels":[{"id":1117782689,"node_id":"MDU6TGFiZWwxMTE3NzgyNjg5","url":"https://api.github.com/repos/anestisb/android-prepare-vendor/labels/blueline","name":"blueline","color":"a0d8e5","default":false},{"id":1117782429,"node_id":"MDU6TGFiZWwxMTE3NzgyNDI5","url":"https://api.github.com/repos/anestisb/android-prepare-vendor/labels/crosshatch","name":"crosshatch","color":"d4c5f9","default":false},{"id":319291533,"node_id":"MDU6TGFiZWwzMTkyOTE1MzM=","url":"https://api.github.com/repos/anestisb/android-prepare-vendor/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":{"login":"anestisb","id":428644,"node_id":"MDQ6VXNlcjQyODY0NA==","avatar_url":"https://avatars2.githubusercontent.com/u/428644?v=4","gravatar_id":"","url":"https://api.github.com/users/anestisb","html_url":"https://github.com/anestisb","followers_url":"https://api.github.com/users/anestisb/followers","following_url":"https://api.github.com/users/anestisb/following{/other_user}","gists_url":"https://api.github.com/users/anestisb/gists{/gist_id}","starred_url":"https://api.github.com/users/anestisb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anestisb/subscriptions","organizations_url":"https://api.github.com/users/anestisb/orgs","repos_url":"https://api.github.com/users/anestisb/repos","events_url":"https://api.github.com/users/anestisb/events{/privacy}","received_events_url":"https://api.github.com/users/anestisb/received_events","type":"User","site_admin":false},"assignees":[{"login":"anestisb","id":428644,"node_id":"MDQ6VXNlcjQyODY0NA==","avatar_url":"https://avatars2.githubusercontent.com/u/428644?v=4","gravatar_id":"","url":"https://api.github.com/users/anestisb","html_url":"https://github.com/anestisb","followers_url":"https://api.github.com/users/anestisb/followers","following_url":"https://api.github.com/users/anestisb/following{/other_user}","gists_url":"https://api.github.com/users/anestisb/gists{/gist_id}","starred_url":"https://api.github.com/users/anestisb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anestisb/subscriptions","organizations_url":"https://api.github.com/users/anestisb/orgs","repos_url":"https://api.github.com/users/anestisb/repos","events_url":"https://api.github.com/users/anestisb/events{/privacy}","received_events_url":"https://api.github.com/users/anestisb/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-12-24T06:21:54Z","updated_at":"2018-12-24T07:58:57Z","closed_at":null,"author_association":"NONE","body":"So comparing 2 output directories for crosshatch with diffoscope we get:\r\n\r\n```\r\n--- out1/crosshatch/pq1a.181205.006/vendor/google_devices/crosshatch\r\n+++ out2/crosshatch/pq1a.181205.006/vendor/google_devices/crosshatch\r\n├── file_signatures.txt\r\n│ @@ -18,23 +18,23 @@\r\n│  5e1b492874c221a7e1188fc3a5369d32b3e67969  vendor/google_devices/crosshatch/proprietary/etc/permissions/embms.xml\r\n│  5aed30f29c7fbe91dcf7eef9dddbdf96ac6bcbee  vendor/google_devices/crosshatch/proprietary/etc/permissions/lpa.xml\r\n│  0454d4d27fb5bbe87c1d6ebd4e9432508de76c9b  vendor/google_devices/crosshatch/proprietary/etc/permissions/LteDirectDiscovery.xml\r\n│  9fc58a3d54d20ac1d53bab14608815121aefbce5  vendor/google_devices/crosshatch/proprietary/etc/permissions/qcrilhook.xml\r\n│  3d95597dc6db9a071bfb06d55d1a0cdf309a2854  vendor/google_devices/crosshatch/proprietary/etc/permissions/RemoteSimlock.xml\r\n│  b297c8a27443570377d78586b00198839ce326bb  vendor/google_devices/crosshatch/proprietary/etc/permissions/telephonyservice.xml\r\n│  a2bb4abefd281692e6af2c1c5785c09a5ab89703  vendor/google_devices/crosshatch/proprietary/etc/permissions/UimService.xml\r\n│ -4e437a4e0ddcdcbe37dd5f3621c7af57f76064f1  vendor/google_devices/crosshatch/proprietary/framework/com.qualcomm.qti.uceservice-V2.0-java.jar\r\n│ +e4b3aa9415cf949ba7478385f111febf9f42c2aa  vendor/google_devices/crosshatch/proprietary/framework/com.qualcomm.qti.uceservice-V2.0-java.jar\r\n│  180d4d6b65d989023364457eb1bf6e1d45f7e274  vendor/google_devices/crosshatch/proprietary/framework/embmslibrary.jar\r\n│ -4d43b859b520f750364539f84fcba8db54d0eefc  vendor/google_devices/crosshatch/proprietary/framework/qcrilhook.jar\r\n│ -a190c39bcc0c0af6ee41fa95395357884478b575  vendor/google_devices/crosshatch/proprietary/framework/QtiTelephonyServicelibrary.jar\r\n│ -bb938b38da8286ad0faa6364c1c1fe4a00b16621  vendor/google_devices/crosshatch/proprietary/framework/uimlpalibrary.jar\r\n│ -e74042e504122d2ded3a0fbcc7792ded6abbe2b0  vendor/google_devices/crosshatch/proprietary/framework/uimremotesimlocklibrary.jar\r\n│ -7671e6429d92d9e4f70de05fae1836c2e7a6261f  vendor/google_devices/crosshatch/proprietary/framework/vendor.qti.hardware.alarm-V1.0-java.jar\r\n│ -484d6c6d52217922c461e181a90e95dcf43fc8c8  vendor/google_devices/crosshatch/proprietary/framework/vendor.qti.hardware.data.latency-V1.0-java.jar\r\n│ -4084d8127ada7cff2f8065f6201247ddaa51fe21  vendor/google_devices/crosshatch/proprietary/framework/vendor.qti.hardware.soter-V1.0-java.jar\r\n│ +56294b43cc57ee63494d39c81751b64f5e2984f5  vendor/google_devices/crosshatch/proprietary/framework/qcrilhook.jar\r\n│ +3e068a11f96d4165102337702ef13f652487c5e9  vendor/google_devices/crosshatch/proprietary/framework/QtiTelephonyServicelibrary.jar\r\n│ +d1a277aeeb7aed24988b7f15f0cb27945903fd64  vendor/google_devices/crosshatch/proprietary/framework/uimlpalibrary.jar\r\n│ +bfe9c4d52a15e86bd8c5dccbd8e25a24ce6bd0f6  vendor/google_devices/crosshatch/proprietary/framework/uimremotesimlocklibrary.jar\r\n│ +6973d23fc5e71aed15ab8946623bdc982954c801  vendor/google_devices/crosshatch/proprietary/framework/vendor.qti.hardware.alarm-V1.0-java.jar\r\n│ +6d11e76ed07055d10d341e803722a63f4a9356cd  vendor/google_devices/crosshatch/proprietary/framework/vendor.qti.hardware.data.latency-V1.0-java.jar\r\n│ +6c7d6060b5da240d43a7375c1adf68fd4741f45d  vendor/google_devices/crosshatch/proprietary/framework/vendor.qti.hardware.soter-V1.0-java.jar\r\n│  e8bafa7ba87211891ad43aa34ae82977b975e14c  vendor/google_devices/crosshatch/proprietary/lib64/libadsprpc_system.so\r\n│  2c6181a5dec26e3b9cf40db28e572da0f6c44206  vendor/google_devices/crosshatch/proprietary/lib64/libcdsprpc_system.so\r\n│  27f124237363f705cf5aa101f4030dfdcdb00842  vendor/google_devices/crosshatch/proprietary/lib64/libdiag_system.so\r\n│  13659d690c39441a6b20a41cea0f72bdbb79007b  vendor/google_devices/crosshatch/proprietary/lib64/libGPQTEEC_system.so\r\n│  7c59864d839499414fff7b6a62475cc81843d5cc  vendor/google_devices/crosshatch/proprietary/lib64/libGPTEE_system.so\r\n│  42a3449245e77e32222e31fb12bcc119e5bcb00a  vendor/google_devices/crosshatch/proprietary/lib64/libimscamera_jni.so\r\n│  c38a168d7c576456d9a3b3270303c352c92a1b9e  vendor/google_devices/crosshatch/proprietary/lib64/libimsmedia_jni.so\r\n├── proprietary\r\n│ ├── framework\r\n│ │ ├── QtiTelephonyServicelibrary.jar\r\n│ │ │ ├── zipinfo /dev/stdin\r\n│ │ │ │ @@ -1,4 +1,4 @@\r\n│ │ │ │  Zip file size: 40398 bytes, number of entries: 2\r\n│ │ │ │  -rw----     2.0 fat       61 bX defN 08-Jan-01 00:00 META-INF/MANIFEST.MF\r\n│ │ │ │ --rw----     2.0 fat    97160 bl defN 18-Dec-23 21:04 classes.dex\r\n│ │ │ │ +-rw----     2.0 fat    97160 bl defN 18-Dec-23 20:57 classes.dex\r\n│ │ │ │  2 files, 97221 bytes uncompressed, 40122 bytes compressed:  58.7%\r\n│ │ ├── com.qualcomm.qti.uceservice-V2.0-java.jar\r\n│ │ │ ├── zipinfo /dev/stdin\r\n│ │ │ │ @@ -1,4 +1,4 @@\r\n│ │ │ │  Zip file size: 34772 bytes, number of entries: 2\r\n│ │ │ │  -rw----     1.0 fat       45 bx stor 08-Jan-01 00:00 META-INF/MANIFEST.MF\r\n│ │ │ │ --rw----     2.0 fat   108208 bl defN 18-Dec-23 21:04 classes.dex\r\n│ │ │ │ +-rw----     2.0 fat   108208 bl defN 18-Dec-23 20:57 classes.dex\r\n│ │ │ │  2 files, 108253 bytes uncompressed, 34512 bytes compressed:  68.1%\r\n│ │ ├── qcrilhook.jar\r\n│ │ │ ├── zipinfo /dev/stdin\r\n│ │ │ │ @@ -1,4 +1,4 @@\r\n│ │ │ │  Zip file size: 63138 bytes, number of entries: 2\r\n│ │ │ │  -rw----     2.0 fat       61 bX defN 08-Jan-01 00:00 META-INF/MANIFEST.MF\r\n│ │ │ │ --rw----     2.0 fat   174624 bl defN 18-Dec-23 21:04 classes.dex\r\n│ │ │ │ +-rw----     2.0 fat   174624 bl defN 18-Dec-23 20:57 classes.dex\r\n│ │ │ │  2 files, 174685 bytes uncompressed, 62862 bytes compressed:  64.0%\r\n│ │ ├── uimlpalibrary.jar\r\n│ │ │ ├── zipinfo /dev/stdin\r\n│ │ │ │ @@ -1,4 +1,4 @@\r\n│ │ │ │  Zip file size: 7595 bytes, number of entries: 2\r\n│ │ │ │  -rw----     2.0 fat       61 bX defN 08-Jan-01 00:00 META-INF/MANIFEST.MF\r\n│ │ │ │ --rw----     2.0 fat    20752 bl defN 18-Dec-23 21:04 classes.dex\r\n│ │ │ │ +-rw----     2.0 fat    20752 bl defN 18-Dec-23 20:57 classes.dex│ │ │ │  2 files, 20813 bytes uncompressed, 7319 bytes compressed:  64.8%\r\n│ │ ├── uimremotesimlocklibrary.jar\r\n│ │ │ ├── zipinfo /dev/stdin\r\n│ │ │ │ @@ -1,4 +1,4 @@\r\n│ │ │ │  Zip file size: 3940 bytes, number of entries: 2\r\n│ │ │ │  -rw----     2.0 fat       61 bX defN 08-Jan-01 00:00 META-INF/MANIFEST.MF\r\n│ │ │ │ --rw----     2.0 fat    10544 bl defN 18-Dec-23 21:04 classes.dex\r\n│ │ │ │ +-rw----     2.0 fat    10544 bl defN 18-Dec-23 20:57 classes.dex\r\n│ │ │ │  2 files, 10605 bytes uncompressed, 3664 bytes compressed:  65.5%\r\n│ │ ├── vendor.qti.hardware.alarm-V1.0-java.jar\r\n│ │ │ ├── zipinfo /dev/stdin\r\n│ │ │ │ @@ -1,4 +1,4 @@\r\n│ │ │ │  Zip file size: 14508 bytes, number of entries: 2\r\n│ │ │ │  -rw----     1.0 fat       45 bx stor 08-Jan-01 00:00 META-INF/MANIFEST.MF\r\n│ │ │ │ --rw----     2.0 fat    34568 bl defN 18-Dec-23 21:04 classes.dex\r\n│ │ │ │ +-rw----     2.0 fat    34568 bl defN 18-Dec-23 20:57 classes.dex\r\n│ │ │ │  2 files, 34613 bytes uncompressed, 14248 bytes compressed:  58.8%\r\n│ │ ├── vendor.qti.hardware.data.latency-V1.0-java.jar\r\n│ │ │ ├── zipinfo /dev/stdin\r\n│ │ │ │ @@ -1,4 +1,4 @@\r\n│ │ │ │  Zip file size: 17969 bytes, number of entries: 2\r\n│ │ │ │  -rw----     1.0 fat       45 bx stor 08-Jan-01 00:00 META-INF/MANIFEST.MF\r\n│ │ │ │ --rw----     2.0 fat    48048 bl defN 18-Dec-23 21:04 classes.dex\r\n│ │ │ │ +-rw----     2.0 fat    48048 bl defN 18-Dec-23 20:57 classes.dex\r\n│ │ │ │  2 files, 48093 bytes uncompressed, 17709 bytes compressed:  63.2%\r\n│ │ ├── vendor.qti.hardware.soter-V1.0-java.jar\r\n│ │ │ ├── zipinfo /dev/stdin\r\n│ │ │ │ @@ -1,4 +1,4 @@\r\n│ │ │ │  Zip file size: 18255 bytes, number of entries: 2\r\n│ │ │ │  -rw----     1.0 fat       45 bx stor 08-Jan-01 00:00 META-INF/MANIFEST.MF\r\n│ │ │ │ --rw----     2.0 fat    45728 bl defN 18-Dec-23 21:04 classes.dex\r\n│ │ │ │ +-rw----     2.0 fat    45728 bl defN 18-Dec-23 20:57 classes.dex\r\n│ │ │ │  2 files, 45773 bytes uncompressed, 17995 bytes compressed:  60.7%\r\n```\r\n\r\nIf we look at the generated vendor files we find that the symlink paths for toolbox are not consistent. These are defined in both Android.mk and proprietary/device-vendor.mk. \r\nPossible race condition?\r\n\r\n```\r\n--- target_files_1/VENDOR\r\n+++ target_files_2/VENDOR\r\n├── bin\r\n│ ├── dd\r\n│ │┄ symlink\r\n│ │ @@ -1 +1 @@\r\n│ │ -destination: /vendor/bin/toolbox\r\n│ │ +destination: toolbox\r\n│ ├── egrep\r\n│ │┄ symlink\r\n│ │ @@ -1 +1 @@\r\n│ │ -destination: grep\r\n│ │ +destination: /vendor/bin/grep\r\n│ ├── fgrep\r\n│ │┄ symlink\r\n│ │ @@ -1 +1 @@\r\n│ │ -destination: grep\r\n│ │ +destination: /vendor/bin/grep\r\n│ ├── getevent\r\n│ │┄ symlink\r\n│ │ @@ -1 +1 @@\r\n│ │ -destination: /vendor/bin/toolbox\r\n│ │ +destination: toolbox\r\n│ ├── getprop\r\n│ │┄ symlink\r\n│ │ @@ -1 +1 @@\r\n│ │ -destination: /vendor/bin/toolbox\r\n│ │ +destination: toolbox\r\n│ ├── newfs_msdos\r\n│ │┄ symlink\r\n│ │ @@ -1 +1 @@\r\n│ │ -destination: /vendor/bin/toolbox\r\n│ │ +destination: toolbox\r\n```\r\n\r\nThe above seems to be the last thing standing in the way of my goal to reach a fully deterministic pie build that will be easy for others to reproduce and verify. \r\n\r\nEven if you can only point me in the right direction for solving this it would be appreciated :)"},"comment":{"url":"https://api.github.com/repos/anestisb/android-prepare-vendor/issues/comments/449699472","html_url":"https://github.com/anestisb/android-prepare-vendor/issues/142#issuecomment-449699472","issue_url":"https://api.github.com/repos/anestisb/android-prepare-vendor/issues/142","id":449699472,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTY5OTQ3Mg==","user":{"login":"anestisb","id":428644,"node_id":"MDQ6VXNlcjQyODY0NA==","avatar_url":"https://avatars2.githubusercontent.com/u/428644?v=4","gravatar_id":"","url":"https://api.github.com/users/anestisb","html_url":"https://github.com/anestisb","followers_url":"https://api.github.com/users/anestisb/followers","following_url":"https://api.github.com/users/anestisb/following{/other_user}","gists_url":"https://api.github.com/users/anestisb/gists{/gist_id}","starred_url":"https://api.github.com/users/anestisb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anestisb/subscriptions","organizations_url":"https://api.github.com/users/anestisb/orgs","repos_url":"https://api.github.com/users/anestisb/repos","events_url":"https://api.github.com/users/anestisb/events{/privacy}","received_events_url":"https://api.github.com/users/anestisb/received_events","type":"User","site_admin":false},"created_at":"2018-12-24T07:58:57Z","updated_at":"2018-12-24T07:58:57Z","author_association":"OWNER","body":"Ok that's a new one. Will investigate since I have no idea why this might happen.\r\n\r\nBtw are you running on Linux or macOS?"}}
{"actor":{"display_login":"anestisb"}}