From: Petr Lautrbach <plautrba@redhat.com>
To: selinux@tycho.nsa.gov
Subject: Re: ANN: SELinux userspace 2.7-rc2 release
Date: Tue, 20 Jun 2017 12:54:52 +0200 [thread overview]
Message-ID: <6388c501-4700-ac73-fc1f-4b5a641cefba@redhat.com> (raw)
In-Reply-To: <20170618074655.GA9590@meriadoc.perfinion.com>
On 06/18/2017 09:46 AM, Jason Zaman wrote:
> On Sun, Jun 18, 2017 at 03:32:33PM +0800, Jason Zaman wrote:
>> There is a bug that needs to be fixed before the final release:
>> https://bugs.gentoo.org/show_bug.cgi?id=621762
>>
>> I think the fix is just add override in utils/Makefile to the LDLIBS and
>> LDFLAGS bits. I'm not sure I'll have time to get around to testing
>> it so just wanted to let you know before the final release.
>
> Yep, thats the fix, I sent a patch.
> https://gitweb.gentoo.org/repo/gentoo.git/tree/sys-libs/libselinux/libselinux-9999.ebuild#n58
> The gentoo ebuild overrides LDFLAGS on the commandline which is why the
> override was required. When i first tried to repro manually i just
> exported LDFLAGS and couldnt repro. once i read the docs on override it
> was pretty obvious.
A similar patch is needed almost for every other part when you try to
build everything from git first and then install it.
In order to that I need to apply a patch [1] and do the following steps:
ln -s ../../cil/include/cil libsepol/include/sepol/cil
make \
CFLAGS="%{optflags}" LDFLAGS="%{?__global_ldflags}" \
LIBSEPOLA="`pwd`/libsepol/src/libsepol.a"
make -C libselinux \
CFLAGS="%{optflags}" LDFLAGS="%{?__global_ldflags}" \
LIBSEPOLA="`pwd`/libsepol/src/libsepol.a" \
PYTHON=%{__python} pywrap
make \
DESTDIR="%{buildroot}" LIBDIR="%{buildroot}%{_libdir}" \
CFLAGS="%{optflags}" LDFLAGS="%{?__global_ldflags}" \
SHLIBDIR="%{buildroot}/%{_lib}" \
BINDIR="%{buildroot}%{_bindir}" \
SBINDIR="%{buildroot}%{_sbindir}" \
PYTHON=%{__python} \
install install-pywrap
[1]
https://gitlab.com/bachradsusi/selinux-rpm/blob/master/0001-Fix-build-without-install.patch
Using this I preserve rpath problems pointing to DESTDIR and rpm can
simply use everything from DESTDIR for /
Petr
>> -- Jason
>>
>> On Fri, Jun 16, 2017 at 12:55:09PM -0400, Stephen Smalley wrote:
>>> A second release candidate for the SELinux userspace is now available
>>> at:
>>> https://github.com/SELinuxProject/selinux/wiki/Releases
>>>
>>> Please give it a test and let us know if there are any issues.
>>>
>>> Changes from the -rc1 release:
>>>
>>> James Carter (2):
>>> libsepol: Fix neverallow bug when checking conditional policy
>>> libsepol/cil: Fix bugs when writing policy.conf rules
>>>
>>> Nicolas Iooss (1):
>>> libsepol: destroy the expanded level when
>>> mls_semantic_level_expand() fails
>>>
>>> Richard Haines (2):
>>> libsepol/cil: ibendportcon fails to resolve in CIL policy
>>> secilc: Update test policy and documentation for Infiniband
>>>
>>> Stephen Smalley (1):
>>> Update VERSION files for 2.7-rc2 release.
>>>
>>> Vit Mojzis (1):
>>> policycoreutils/fixfiles: do not dereference link files in tmp
next prev parent reply other threads:[~2017-06-20 10:54 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-09 17:18 ANN: SELinux userspace 2.7-rc1 release Stephen Smalley
2017-06-09 17:31 ` Stephen Smalley
2017-06-16 16:55 ` ANN: SELinux userspace 2.7-rc2 release Stephen Smalley
2017-06-18 7:32 ` Jason Zaman
2017-06-18 7:46 ` Jason Zaman
2017-06-20 10:54 ` Petr Lautrbach [this message]
2017-06-20 12:14 ` Stephen Smalley
2017-06-20 13:28 ` Petr Lautrbach
2017-06-20 13:31 ` Petr Lautrbach
2017-06-20 14:22 ` Jason Zaman
2017-06-21 17:58 ` Petr Lautrbach
2017-06-19 17:06 ` Stephen Smalley
2017-06-20 4:55 ` Jason Zaman
2017-06-21 18:04 ` [PATCH] Use DESTDIR only in install targets Petr Lautrbach
2017-06-21 19:51 ` Stephen Smalley
2017-06-22 16:25 ` Petr Lautrbach
2017-06-22 16:45 ` Stephen Smalley
2017-06-23 17:07 ` ANN: SELinux userspace 2.7-rc3 release candidate Stephen Smalley
2017-06-30 17:53 ` ANN: SELinux userspace 2.7-rc4 " Stephen Smalley
2017-07-09 10:12 ` Jason Zaman
2017-07-18 16:14 ` ANN: SELinux userspace 2.7-rc5 " Stephen Smalley
2017-07-28 19:47 ` ANN: SELinux userspace 2.7-rc6 " Stephen Smalley
2017-08-04 18:57 ` ANN: SELinux userspace release 20170804 / 2.7 Stephen Smalley
2017-08-04 19:21 ` Dominick Grift
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6388c501-4700-ac73-fc1f-4b5a641cefba@redhat.com \
--to=plautrba@redhat.com \
--cc=selinux@tycho.nsa.gov \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.