Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 436838 - sys-libs/libselinux-2.1.9: Add ruby 1.9 support
Summary: sys-libs/libselinux-2.1.9: Add ruby 1.9 support
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: SELinux (show other bugs)
Hardware: All Linux
: Normal enhancement with 1 vote (vote)
Assignee: Sven Vermeulen (RETIRED)
URL:
Whiteboard: selinux-utils
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-01 22:15 UTC by Michael Morak
Modified: 2012-11-17 17:02 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Ebuild for libselinux-2.1.9 with ruby19 support (libselinux-2.1.9-r3.ebuild,2.56 KB, text/plain)
2012-10-01 22:23 UTC, Michael Morak
Details
Patch to get the correct include paths for ruby19 (libselinux-2.1.9-ruby19.patch,760 bytes, patch)
2012-10-01 22:24 UTC, Michael Morak
Details | Diff
Patch to get the correct include paths for ruby19 (libselinux-2.1.9-ruby19.patch,652 bytes, patch)
2012-10-03 21:47 UTC, Michael Morak
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Morak 2012-10-01 22:15:08 UTC
As of the fix for Bug #417303, ruby 1.9 support was removed from libselinux.

This is a request to include ruby 1.9 support again.

Reproducible: Always
Comment 1 Michael Morak 2012-10-01 22:23:14 UTC
Created attachment 325506 [details]
Ebuild for libselinux-2.1.9 with ruby19 support
Comment 2 Michael Morak 2012-10-01 22:24:01 UTC
Created attachment 325508 [details, diff]
Patch to get the correct include paths for ruby19
Comment 3 Sven Vermeulen (RETIRED) gentoo-dev 2012-10-03 20:31:24 UTC
libselinux-2.1.12 (should hit the tree soon) has the following for the ruby stuff:

RUBYLIBVER ?= $(shell $(RUBY) -e 'print RUBY_VERSION.split(".")[0..1].join(".")')
RUBYINC ?= $(shell pkg-config --cflags ruby-$(RUBYLIBVER))

I *think* that's ok too, not? Or would that still fail within Gentoo?
Comment 4 Michael Morak 2012-10-03 21:47:56 UTC
Created attachment 325624 [details, diff]
Patch to get the correct include paths for ruby19

Yep, that seems to work very well, at least on my boxes.

I've adapted the patch accordingly, in case anyone still wants to include it in libselinux-2.1.9.
Comment 5 Sven Vermeulen (RETIRED) gentoo-dev 2012-10-06 19:23:14 UTC
Both libselinux-2.1.9-r3 and libselinux-2.1.12 in hardened-dev overlay.

libselinux-2.1.9-r3 contains the patch towards the Makefile; libselinux-2.1.12 only has the ebuild updated to reflect supporting ruby19 again.
Comment 6 Sven Vermeulen (RETIRED) gentoo-dev 2012-10-14 13:13:35 UTC
In main portage tree (since October 9th)
Comment 7 Sven Vermeulen (RETIRED) gentoo-dev 2012-11-17 17:02:37 UTC
recent selinux userspace utilities are now stabilized