Bug 174060 - at (and others) fail to compile with WITH_SELINUX=0
at (and others) fail to compile with WITH_SELINUX=0
Product: Fedora
Classification: Fedora
Component: at (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jason Vas Dias
Mike McLean
Depends On:
  Show dependency treegraph
Reported: 2005-11-24 01:33 EST by JW
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-11-30 12:19:35 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Patch to fix at.spec SELINUX conditional build (331 bytes, patch)
2005-11-24 01:55 EST, JW
no flags Details | Diff

  None (edit)
Description JW 2005-11-24 01:33:50 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (compatible; MSIE 6.0; Windows; U; AIIEEEE!; Win98; Windows 98; en-US; Gecko masquerading as IE; should it matter?; rv:1.8b) Gecko/20050217

Description of problem:
When compiling at (and other programs with autoconf) with SELINUX disabled a lot of the patches fail because they expect to see WITH_SELINUX macros in text which has been diff'ed.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.rpmbuild -v -ba --define "WITH_SELINUX 0" at.spec

Actual Results:  2 out of 2 hunks FAILED

Expected Results:  Compile should work!

Additional info:

The problem is if you have a patch that conditionally adds code to configure.in then you have patches that patch code which may or may not have WITH_SELINUX and SELINUXLIB macros in them then you break a lot of patches.
So when, for example, Makefile.in is generated and it has no $(SELINUXLIB) macro in it (instead of just an empty one) then subsequent patches are going to fail.
Comment 1 JW 2005-11-24 01:55:02 EST
Created attachment 121434 [details]
Patch to fix at.spec SELINUX conditional build

You have to ensure that the "at-selinux.patch" (Patch22) is applied even if
WITH_SELINUX is 0 otherwise subsequent patches will fail.
Comment 2 Jason Vas Dias 2005-11-30 12:19:35 EST
at does not need to compile without SELinux support - hence, this is NOTABUG.
A new enhanced version of at that I am working on will move SELinux support to
a separate source file, which should make compilation without SELinux much easier.

Note You need to log in before you can comment on or make changes to this bug.