Bug 99497
| Summary: | kernel.spec no longer supports --with/--without | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | Keith Owens <kaos> |
| Component: | kernel | Assignee: | Arjan van de Ven <arjanv> |
| Status: | CLOSED DUPLICATE | QA Contact: | Brian Brock <bbrock> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 9 | CC: | riel |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2006-02-21 18:57:07 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
*** This bug has been marked as a duplicate of 99496 *** Changed to 'CLOSED' state since 'RESOLVED' has been deprecated. |
From Bugzilla Helper: User-Agent: Opera/7.10 (Linux 2.4.21-xfs i686; U) [en] Description of problem: RH 9 deleted these lines from kernel.spec # allow --with[out] <feature|kernel> at rpm command line build # e.g. --with smp --without smp --without BOOT --without bigmem --with ibcs # --with overrides --without %{?_without_up: %{expand: %%define buildup 0}} %{?_without_smp: %{expand: %%define buildsmp 0}} %{?_without_BOOT: %{expand: %%define buildBOOT 0}} ... so rpmbuild ignores --with/--without on the command line when building the kernel. The lines were in RH 8 (kernel-2.4.18-14.src.rpm), they are also missing from the latest RH 7, 8 and 9 errata kernel.spec files (kernel-2.4.20-18.[789].src.rpm). There is nothing in the changelog about removing this facility and the kernel.spec comments still say that --with/--without can be used. On the same subject, what do these lines do? Nothing seems to test the defined macros. # we can't test values inline, only whether a macro exists %{expand: %%define buildup_%{buildup} yadda} %{expand: %%define buildsmp_%{buildsmp} yadda} Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. rpmbuild -ba --without smp kernel-2.4.spec 2. 3. Actual Results: --without smp ignored on rh 9 and recent rh [78] errata kernels. Expected Results: Build without any of the SMP kernels. Additional info: