[opensuse-kernel] creating rpms from git
Hi, using the instructions from I could easily create OpenSuSE rpms using rpmbuild. Wrote: /var/tmp/rpmbuild/SRPMS/kernel-desktop-3.11.10-0.nosrc.rpm Wrote: /var/tmp/rpmbuild/RPMS/i686/kernel-desktop-3.11.10-0.i686.rpm Wrote: /var/tmp/rpmbuild/RPMS/i686/kernel-desktop-base-3.11.10-0.i686.rpm Wrote: /var/tmp/rpmbuild/RPMS/i686/kernel-desktop-devel-3.11.10-0.i686.rpm Wrote: /var/tmp/rpmbuild/RPMS/i686/kernel-desktop-devel- debuginfo-3.11.10-0.i686.rpm I am no wondering how to create kernel-source-3.11.10.noarch.rpm and a suitable kernel-devel-3.11.10.noarch from the git sources. Alternativly I am wondering how to create kernel-source-3.11.10.src.rpm from git sources escpecially when using osc_wrapper. I have the kernel-source, kernel and linux git repositories available. Yours, -- martin konold -- Dipl.-Physiker Martin Konold e r f r a k o n Erlewein, Frank, Konold & Partner - Beratende Ingenieure und Physiker Registergericht: Amtsgericht Stuttgart PR 126 Firmensitz: Adolfstraße 23, 70469 Stuttgart fon: 0711 67400961 fax: 0711 67400959 email: martin.konold@erfrakon.de http://www.erfrakon.de -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 4/22/14, 4:06 PM, Martin Konold wrote:
Hi,
using the instructions from
I could easily create OpenSuSE rpms using rpmbuild.
Wrote: /var/tmp/rpmbuild/SRPMS/kernel-desktop-3.11.10-0.nosrc.rpm Wrote: /var/tmp/rpmbuild/RPMS/i686/kernel-desktop-3.11.10-0.i686.rpm Wrote: /var/tmp/rpmbuild/RPMS/i686/kernel-desktop-base-3.11.10-0.i686.rpm Wrote: /var/tmp/rpmbuild/RPMS/i686/kernel-desktop-devel-3.11.10-0.i686.rpm
Wrote: /var/tmp/rpmbuild/RPMS/i686/kernel-desktop-devel-
debuginfo-3.11.10-0.i686.rpm
I am no wondering how to create kernel-source-3.11.10.noarch.rpm and a suitable kernel-devel-3.11.10.noarch from the git sources.
Alternativly I am wondering how to create kernel-source-3.11.10.src.rpm from git sources escpecially when using osc_wrapper.
I have the kernel-source, kernel and linux git repositories available.
All you need is the kernel-source git repository and a copy of linux-3.11.tar.bz2 (or it is .xz now?). scripts/tar-up.sh will create a kernel-source directory that contains exactly what becomes the package as uploaded to OBS. kernel-source.spec will create kernel-source and kernel-devel. kernel-$flavor.spec will create kernel-$flavor{,-base,devel} (and debuginfos, if configured). If you want to create the source RPM, rpmbuild -bs will build JUST the source RPM. Or you can use rpmbuild -ba will build both the source RPM and the installable RPM. I'm not sure how you'd use osc_wrapper as I don't use it myself. - -Jeff - -- Jeff Mahoney SUSE Labs -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.19 (Darwin) iQIcBAEBAgAGBQJTWBXAAAoJEB57S2MheeWyINMP/2PrD1NeW9Hm/rSqjaAsByRD a+va/3+nk2/G2mng4yuXHo18nykfG6AfPcqnhqW/D6ngin8iyzjJUYzuHbWKVKbY Za81WykoYhjDemB63x/nx8tFgrjktR2T/9kIq01wkjE8hhgOtxRK3Vv8vhCQPm3R QtBJB6bcWfOI6lAuv9p/K7x8/1J+ebG87SZGKUUR2j5N/dyXjOctyosXPeupmORx ZUBPo3A1ma13x4sg20WHzNwfE5I8a4hs2xhB5xber/hhpNlvKUkjbWB8oW/jD7E7 PawBIBI23Ug1C0IZVPTPNkkHpJFOK1Ivc5TH/C88hF76mopYwSxYs4sbb/rGuEp8 6OJJLWtjhAT8J3Xl5O4fAWj+M4GHhCfr00xU5PnSlBmYv7y42US20CewfMA5sUhi kaC9YWBlP39LBjiyjuyElud04G7Xm8u/9Xg6QI1385ZGyyvCrI1EdkxGRGequdkh WoWoUJCJ0X88hhWBDsdlwGaiXasZqu8lp2e3OST4duR5jXq8Gx0M13VeroqY20jH qOQexawPLioopXyEUUxzcrtZ6D4prkO2zOQp32jFZRCi2B7t6/KPCVXrywNYr3Vx 2Y9bmTDj752cidmwJpIe1HP9JCdBm1PZWrWCiP6iiVCEwCvZrRbXarPIhpHCK5n8 ZEbRQ5Zd0hT1elTwxekw =fnQC -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
Am Mittwoch, 23. April 2014, 15:34:24 schrieb Jeff Mahoney: Hi Jeff, Thank you very much. This was all I needed. I am now successfully building kernel rpms for all required flavours and additionally the generic kernel- source and kernel-devel packages. Maybe you can also provide me with a hint regarding adding another kernel flavour. I created a custom flavour adding another configuration to config.conf and providing the configuration in config/i386/newflavour. scripts/tar-up.sh executes "cd kernel-source; ./mkspec". I will then get "warning: no description for kernel-newflavour found" Adding an appropriate section to kernel-source/package-descriptions does not help. Where I am supposed to provide the package description texts for new flavours? Are you interested in trivial patches which mainly improve documentation for newbies to SuSE kernel development? Yours, -- martin konold -- Dipl.-Physiker Martin Konold e r f r a k o n Erlewein, Frank, Konold & Partner - Beratende Ingenieure und Physiker Registergericht: Amtsgericht Stuttgart PR 126 Firmensitz: Adolfstraße 23, 70469 Stuttgart fon: 0711 67400961 fax: 0711 67400959 email: martin.konold@erfrakon.de http://www.erfrakon.de
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 4/23/14, 4:34 PM, Martin Konold wrote:
Am Mittwoch, 23. April 2014, 15:34:24 schrieb Jeff Mahoney:
Hi Jeff,
Thank you very much. This was all I needed. I am now successfully building kernel rpms for all required flavours and additionally the generic kernel- source and kernel-devel packages.
Great!
Maybe you can also provide me with a hint regarding adding another kernel flavour.
I created a custom flavour adding another configuration to config.conf and providing the configuration in config/i386/newflavour.
scripts/tar-up.sh executes "cd kernel-source; ./mkspec".
I will then get "warning: no description for kernel-newflavour found"
Adding an appropriate section to kernel-source/package-descriptions does not help.
Where I am supposed to provide the package description texts for new flavours?
That *should* do it. Can you post the file you're using? It's pretty sensitive to the formatting IIRC.
Are you interested in trivial patches which mainly improve documentation for newbies to SuSE kernel development?
Yeah, absolutely! - -Jeff - -- Jeff Mahoney SUSE Labs -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQIcBAEBAgAGBQJTWboGAAoJEB57S2MheeWys3sP+wZt0x6NXavBm0kz+GGrjTfd wb4/8ZLZNIEp2pkUKnG5Mkhny/VgRcPzlkjF4QcG8w9Iy8MktK9fr5aB1XTNlhdP vrVh4YST3kuq1ZtdYVLklUbdSgucCUItLNbOXVzILr22pEa4OodxRw8/gzk5z2Th e3YWKrF7BbE7Cv4Rbjs66gD78knjl3LG1y5FIXNuPya9iwV7XVnQfFWhja79Nz6r 4CcpKBfMt7NBduhCcK8Vhq7QvrLnAaezSIW8uJXaJiRUOMURyZxKuvlk9hgpuNBn lm8c+nH/11IHrXbkMvQrpd690pZPpWtf6woSruucZAPCc6E7UwAXLGo91mPj9W3c TczZzd3V6UieMeemVNMGIval9WRJWwTWCaIMpNwxPHnI8f5C9BKshVoZ3cNL2Y6u 2yfyGvKGDuBl+SZLCR+b0v3AVpvY2YNJ3MemYP6wxUXD+4S+VsMESV3XFtZrr/CI UntfQ0Sb42zT47nlPbqLOT+PzLWC4hmAmRoJlBNi2zD04T/hzIP8o2g7xZxlmDXO nLZ9SAocDlbc0zeJrhtNi5/d2BtX3C2LzYM0CrDBZlHtKmGu3B7DGR+fdZVc0M4t EOHE5ovNu6teOWNjq5IMmG/iJ0b5RzALwWErPVI5GYVtkhBoTjZc9Tau56biztK4 cPm8jBUu+2KsK2MVcVom =MKcI -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
Am Donnerstag, 24. April 2014, 21:27:35 schrieb Jeff Mahoney: Hi Jeff,
That *should* do it. Can you post the file you're using? It's pretty sensitive to the formatting IIRC.
Thanks for the hint. Indeed some more strict formatting did help!
Are you interested in trivial patches which mainly improve documentation for newbies to SuSE kernel development?
Yeah, absolutely!
Ok, I start with a one-liner for improved error message in order to learn how to properly contribute patches. (e.g. formatting etc.) Regards, -- martin -- Dipl.-Physiker Martin Konold e r f r a k o n Erlewein, Frank, Konold & Partner - Beratende Ingenieure und Physiker Registergericht: Amtsgericht Stuttgart PR 126 Firmensitz: Adolfstraße 23, 70469 Stuttgart fon: 0711 67400961 fax: 0711 67400959 email: martin.konold@erfrakon.de http://www.erfrakon.de
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 4/25/14, 4:37 AM, Martin Konold wrote:
Am Donnerstag, 24. April 2014, 21:27:35 schrieb Jeff Mahoney:
Hi Jeff,
That *should* do it. Can you post the file you're using? It's pretty sensitive to the formatting IIRC. Thanks for the hint. Indeed some more strict formatting did help!
Are you interested in trivial patches which mainly improve documentation for newbies to SuSE kernel development?
Yeah, absolutely! Ok, I start with a one-liner for improved error message in order to learn how to properly contribute patches. (e.g. formatting etc.)
Sure. Review below.
wd-functions.diff
From: Martin Konold <martin.konold@erfrakon.de> Subject: linux 2.6 is ancient avoid explicit kernel version, LINUX_GIT is an environment variable
This should be something like: Subject: scripts: use 'linux' git repo instead of 'linux-2.6' .. and then put the message you have in your Subject line as the commit text.
Patch-mainline: never. Improves SUSE specific code References:
If this is empty, it can be omitted.
diff --git a/scripts/wd-functions.sh b/scripts/wd-functions.sh index aa2c526..3b02f5f 100644
Acked-by:
You can omit this. Whoever adds your patch can add their own.
Signed-off-by:
This should be your signed-off-by, which is essentially the same thing as your From.
--- a/scripts/wd-functions.sh +++ b/scripts/wd-functions.sh @@ -74,7 +74,7 @@ _get_tarball_from_git()
git=${LINUX_GIT:-$HOME/linux-2.6} if test ! -d "$git/.git"; then - echo "No linux-2.6 git tree found (try setting the LINUX_GIT variable)" >&2 + echo "No linux git tree found (try setting the LINUX_GIT environment variable)" >&2 exit 1 fi case "$version" in
Otherwise, looks good. - -Jeff - -- Jeff Mahoney SUSE Labs -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQIcBAEBAgAGBQJTWoHuAAoJEB57S2MheeWyfScP/3iLRgcJLFYY9LQCKAm1Va4l nmKvsFuypcddXl8uo637RvOKEn9tVK7jeE5gT99fy6IBvAhgkrUFUmQ4gyD+nQx5 O0o5SBicq9IiWjTm9dMUUbkKo5EZntHNYJGfhBbVvQg59tOFQxC+hyjWuJCAtG3x c3hR2R5qfnaJVkOvatRgwUxcezfI1Rz6BDaqv0PsstmtzpeN1DNADNnHJF1Ju62v VjHlDHFNNkijgd/uyvMdUFUN4cH3pD2tP9yHbZdu574xcONiHFhSPJ1kxltTdESu a3C+MMj7e88SAW8fVh376t74DO61VGAYyhanxPED74cWxVqPF5hLLCgEg6/7GXcG eNAdupzVngH8UF7ofpbTbEOVITdPPTBvNFl7zSKZ5gBAIv49AAuE44LhxRso2qCW 1AkKKoLiPmwQoYPLkQPIMzeHhPxzRyspifm1GRfGUEyuTtR6D0CcKQBjgy5t78ye 5SQKdF+6Av59BES+pxDm5bePfcCQW3OIov5H5eTIKApwthT2UAN/njnjoVn7C3lH Py5kr2TUW8QbPM2QF7BTdm5VjOwEh3SrTClXZCOvnrRbjFwUIlfs7R5r6BkLctF7 DbrjzFqAsNaahzRsKIbuhOH3Yb5At/pqXVMpsU5g+sjgEUh/QrWilSl+ji30RyhP CYHgV/rsnZL6GlhyEdfx =Y94k -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
participants (2)
-
Jeff Mahoney
-
Martin Konold