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

Fix build constraints for OSes other than Linux #53

Merged
merged 1 commit into from
May 23, 2024
Merged

Conversation

knqyf263
Copy link
Owner

Description

After this change, this library cannot be used for FreeBSD or other OSes than Linux, macOS and Windows. Since the purpose of #48 is to avoid conflicts due to RPMDB updates, it is considered sufficient to lock only on Linux. Therefore, this PR does not lock on other operating systems and can be compiled for other platforms.

Signed-off-by: knqyf263 <knqyf263@gmail.com>
@knqyf263 knqyf263 changed the title .......Fix build constraints for OSes other than Linux Fix build constraints for OSes other than Linux May 23, 2024
@knqyf263 knqyf263 merged commit facee9e into master May 23, 2024
3 checks passed
@knqyf263 knqyf263 deleted the fix/other_oses branch May 23, 2024 04:47
yjqg6666 added a commit to yjqg6666/k9s that referenced this pull request Jul 3, 2024
fix build error:
  vendor/github.com/knqyf263/go-rpmdb/pkg/ndb/ndb.go:99:8: undefined: syscallFlock
  vendor/github.com/knqyf263/go-rpmdb/pkg/ndb/ndb.go:99:37: undefined: syscallLOCK_SH
  vendor/github.com/knqyf263/go-rpmdb/pkg/ndb/ndb.go:135:6: undefined: syscallFlock
  vendor/github.com/knqyf263/go-rpmdb/pkg/ndb/ndb.go:135:38: undefined: syscallLOCK_UN
Related to issue knqyf263/go-rpmdb#53.
derailed pushed a commit to derailed/k9s that referenced this pull request Jul 7, 2024
fix build error:
  vendor/github.com/knqyf263/go-rpmdb/pkg/ndb/ndb.go:99:8: undefined: syscallFlock
  vendor/github.com/knqyf263/go-rpmdb/pkg/ndb/ndb.go:99:37: undefined: syscallLOCK_SH
  vendor/github.com/knqyf263/go-rpmdb/pkg/ndb/ndb.go:135:6: undefined: syscallFlock
  vendor/github.com/knqyf263/go-rpmdb/pkg/ndb/ndb.go:135:38: undefined: syscallLOCK_UN
Related to issue knqyf263/go-rpmdb#53.
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

1 participant