Hi!
More than nine months ago I did some initial steps to start a repository
with Linux vanilla kernels packaged for Fedora and asked for feedback
here (see
http://thread.gmane.org/gmane.linux.redhat.fedora.kernel/3583/ ). I had
to suspend that effort for a while due to unforeseen real life issues,
but found some time now to do all the work to maintain such a repo it
without to much hassle (IOW: I wrote script to automate much of the work).
Everything I planed for the start is at its place now and I'll likely
announce that repo in some more public channels in a week or two. I
mention this plan here first to give everybody subscribed to this list a
chance to look at the setup first, in case someone here thinks I should
do things differently.
The wiki has usage instructions and a lot of boring details, including
some some warnings why ordinary people should not use those repositories:
https://fedoraproject.org/wiki/Kernel_Vanilla_Repositories
The git repo can be found at:
http://fedorapeople.org/cgit/thl/public_git/kernel.git/
The yum repos for F17 and F18:
http://repos.fedorapeople.org/repos/thl/kernel-vanilla-mainline/
http://repos.fedorapeople.org/repos/thl/kernel-vanilla-stable/
A build log for one of the kernels:
http://kojipkgs.fedoraproject.org//work/tasks/5546/4645546/build.log
A patch that shows the changes to kernel.spec file can be found below.
Cu
knurd
P.S.: Flying to Barcelona for a few vacation days and LinuxCon Europe
early tomorrow, so I might be slower than usual to reply to mails
diff --git a/kernel.spec b/kernel.spec
index 92dee5c..cd24dde 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -32,6 +32,8 @@ Summary: The Linux kernel
# (Uncomment the '#' and both spaces below to set the buildid.)
#
# % define buildid .local
+%define packager Thorsten Leemhuis https://fedoraproject.org/wiki/Kernel_Vanilla_Repositories
+%define buildid .vanilla.mainline.knurd.1
###################################################################
# The buildid can also be specified on the rpmbuild command line
@@ -117,7 +119,7 @@ Summary: The Linux kernel
# kernel-PAE (only valid for i686)
%define with_pae %{?_without_pae: 0} %{?!_without_pae: 1}
# kernel-debug
-%define with_debug %{?_without_debug: 0} %{?!_without_debug: 1}
+%define with_debug %{?_with_debug: 1} %{?!_with_debug: 0}
# kernel-doc
%define with_doc %{?_without_doc: 0} %{?!_without_doc: 1}
# kernel-headers
@@ -127,7 +129,7 @@ Summary: The Linux kernel
# tools
%define with_tools %{?_without_tools: 0} %{?!_without_tools: 1}
# kernel-debuginfo
-%define with_debuginfo %{?_without_debuginfo: 0} %{?!_without_debuginfo: 1}
+%define with_debuginfo %{?_with_debuginfo: 1} %{?!_with_debuginfo: 0}
# kernel-bootwrapper (for creating zImages from kernel + initrd)
%define with_bootwrapper %{?_without_bootwrapper: 0} %{?!_without_bootwrapper: 1}
# Want to build a the vsdo directories installed
@@ -158,7 +160,7 @@ Summary: The Linux kernel
%define with_sparse %{?_with_sparse: 1} %{?!_with_sparse: 0}
#
# build a release kernel on rawhide
-%define with_release %{?_with_release: 1} %{?!_with_release: 0}
+%define with_release %{?_without_release: 0} %{?!_without_release: 1}
# Set debugbuildsenabled to 1 for production (build separate debug kernels)
# and 0 for rawhide (all kernels are debug kernels).
@@ -166,7 +168,7 @@ Summary: The Linux kernel
%define debugbuildsenabled 0
# Want to build a vanilla kernel build without any non-upstream patches?
-%define with_vanilla %{?_with_vanilla: 1} %{?!_with_vanilla: 0}
+%define with_vanilla %{?_without_vanilla: 0} %{?!_without_vanilla: 1}
# Build the kernel-doc package, but don't fail the build if it botches.
# Here "true" means "continue" and "false" means "fail the build".
@@ -176,7 +178,7 @@ Summary: The Linux kernel
%define doc_build_fail true
%endif
-%define rawhide_skip_docs 1
+%define rawhide_skip_docs 0
%if 0%{?rawhide_skip_docs}
%define with_doc 0
%define doc_build_fail true
@@ -228,7 +230,7 @@ Summary: The Linux kernel
%if %{nopatches}
%define with_bootwrapper 0
-%define variant -vanilla
+#define variant -vanilla
%else
%define variant_fedora -fedora
%endif
@@ -2378,6 +2380,14 @@ fi
* Sun Oct 21 2012 Justin M. Forbes <jforbes@xxxxxxxxxx> - 3.7.0-0.rc1.git3.2
- Disable debugging options.
+* Sat Oct 20 2012 Thorsten Leemhuis <fedora@xxxxxxxxxxxxx> - 3.7.0-0.rc1.git3.1.vanilla.mainline.knurd.1
+- add buildid ".vanilla.mainline.knurd.1"
+- switch defines to build
+ - a vanilla kernel without debuging
+ - no debug kernel and no debuginfo packages, to big to handle for me right now
+- disable the variant macro as that adds "-vanilla" to %%name, which confuses
+ fedpkg and prevents installonly handling of packages in yum
+
* Fri Oct 19 2012 Justin M. Forbes <jforbes@xxxxxxxxxx> - 3.7.0-0.rc1.git3.1
- Linux v3.7-rc1-154-gc9623de
_______________________________________________
kernel mailing list
kernel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/kernel