mirror of
https://github.com/SELinuxProject/selinux
synced 2024-12-12 09:05:00 +00:00
libselinux: versioned ruby pkg-config and query vendorarchdir properly
Gentoo and Arch have pkg-config entries for "ruby-$(RUBYLIBVER)" but not for "ruby". Check if that exists first then fall back to plain ruby if it does not. The ruby install paths were incorrect. Fedora 20 installed to /usr/lib64/ruby/vendor_ruby/, Arch needs it to be vendor_ruby as well, site_ruby does not work. Thanks to Nicolas Iooss for the correct way to query for the path. Signed-off-by: Jason Zaman <jason@perfinion.com>
This commit is contained in:
parent
0cea223d33
commit
1cd80faa53
@ -16,9 +16,8 @@ PYLIBVER ?= $(shell $(PYTHON) -c 'import sys;print("python%d.%d" % sys.version_i
|
|||||||
PYINC ?= $(shell $(PKG_CONFIG) --cflags $(PYPREFIX))
|
PYINC ?= $(shell $(PKG_CONFIG) --cflags $(PYPREFIX))
|
||||||
PYLIBDIR ?= $(LIBDIR)/$(PYLIBVER)
|
PYLIBDIR ?= $(LIBDIR)/$(PYLIBVER)
|
||||||
RUBYLIBVER ?= $(shell $(RUBY) -e 'print RUBY_VERSION.split(".")[0..1].join(".")')
|
RUBYLIBVER ?= $(shell $(RUBY) -e 'print RUBY_VERSION.split(".")[0..1].join(".")')
|
||||||
RUBYPLATFORM ?= $(shell $(RUBY) -e 'print RUBY_PLATFORM')
|
RUBYINC ?= $(shell $(PKG_CONFIG) --exists ruby-$(RUBYLIBVER) && $(PKG_CONFIG) --cflags ruby-$(RUBYLIBVER) || $(PKG_CONFIG) --cflags ruby)
|
||||||
RUBYINC ?= $(shell $(PKG_CONFIG) --cflags ruby)
|
RUBYINSTALL ?= $(DESTDIR)$(shell $(RUBY) -e 'puts RbConfig::CONFIG["vendorarchdir"]')
|
||||||
RUBYINSTALL ?= $(LIBDIR)/ruby/site_ruby/$(RUBYLIBVER)/$(RUBYPLATFORM)
|
|
||||||
LIBBASE ?= $(shell basename $(LIBDIR))
|
LIBBASE ?= $(shell basename $(LIBDIR))
|
||||||
|
|
||||||
VERSION = $(shell cat ../VERSION)
|
VERSION = $(shell cat ../VERSION)
|
||||||
|
Loading…
Reference in New Issue
Block a user