ElektraInitiative / libelektra

Elektra serves as a universal and secure framework to access configuration settings in a global, hierarchical key database.
https://www.libelektra.org
BSD 3-Clause "New" or "Revised" License
208 stars 123 forks source link

USE_NFTW not available on build server? #2157

Closed markus2330 closed 6 years ago

markus2330 commented 6 years ago

Steps to Reproduce the Problem

See https://build.libelektra.org/jenkins/blue/organizations/jenkins/libelektra/detail/PR-2135/26/pipeline


CYPTO        TESTS

==================

crypto_botan Results: 65 Tests done — 0 errors.

/home/jenkins/workspace/libelektra_PR-2135-KT7KVB3R7BMZPN4PF55YDXXT6WIH7TO44W3NZXZZ7PPZJAFP7MOA/tests/cframework/tests.c:542: error in clean_temp_home: Could not delete TMPHOME manually

--- running testmod_crypto_gcrypt ---

CYPTO        TESTS

==================

crypto_gcrypt Results: 65 Tests done — 0 errors.

/home/jenkins/workspace/libelektra_PR-2135-KT7KVB3R7BMZPN4PF55YDXXT6WIH7TO44W3NZXZZ7PPZJAFP7MOA/tests/cframework/tests.c:542: error in clean_temp_home: Could not delete TMPHOME manually

--- running testmod_crypto_openssl ---

CYPTO        TESTS

==================

crypto_openssl Results: 65 Tests done — 0 errors.

/home/jenkins/workspace/libelektra_PR-2135-KT7KVB3R7BMZPN4PF55YDXXT6WIH7TO44W3NZXZZ7PPZJAFP7MOA/tests/cframework/tests.c:542: error in clean_temp_home: Could not delete TMPHOME manually

Expected Result

That Line 526 of tests.c is executed successfully.

Actual Result

Line 542 is executed and fails.

System Information

ingwinlu commented 6 years ago

It obviously is available else there would be problems with master.

You must have somehow set a feature macro manually which might have disabled the functionality. As long as no feature macro is set glibc automatically enables EVERYTHING (same for libc from apple). As soon as you set some flag manually this automatic enable all thing is switched off and hence the function is no longer exported.

Somewhat related to #2095 .

markus2330 commented 6 years ago

Why did you unassign yourself? You implemented this feature and it does not work.

ingwinlu commented 6 years ago

It does work on master. Your PR breaks it.

It is broken on master too. But it used to work when I implemented it. Probable cause it mentioned in https://github.com/ElektraInitiative/libelektra/issues/2157#issuecomment-410956431. Since I did not commit any of the changes that broke behaviour I do not feel responsible for cleanup.

Way forward is simply unifying how feature macros are set and the issue resolves itself.

markus2330 commented 6 years ago

Yes, unifying feature macros is of course a nice-to-have and I understand it is out of scope for you.

That the build system does not leak files, however, is an important property for a build system. It is like memleaks in source-code.

So to permanently fix this issue, we should have a build server check that verifies that the build process leaks no files. With such a check we would have immediately caught this issue. Now we (you?) need to search which commit introduced the problem.

ingwinlu commented 6 years ago

According to the logs on master it never used nftw.

Which is strange as I am absolutely sure that it used to work at least locally for me.

markus2330 notifications@github.com schrieb am Di., 7. Aug. 2018, 10:25:

Yes, unifying feature macros is of course a nice-to-have and I understand it is out of scope for you.

That the build system does not leak files, however, is an important property for a build system. It is like memleaks in source-code.

So to permanently fix this issue, we should have a build server check that verifies that the build process leaks no files. With such a check we would have immediately caught this issue. Now we (you?) need to search which commit introduced the problem.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/ElektraInitiative/libelektra/issues/2157#issuecomment-410976290, or mute the thread https://github.com/notifications/unsubscribe-auth/AEOv-ptZUKf0raUWng3ndvJhfj3MCulKks5uOU7egaJpZM4Vxj1W .