Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
linux-rt-devel-9999 ebuild file and a question!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Demo
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2022
Posts: 85

PostPosted: Tue May 07, 2024 5:48 pm    Post subject: linux-rt-devel-9999 ebuild file and a question! Reply with quote

Hello folks ...

I wanted to have your opinion about this ebuild file, I wanted to submit a request for it to be added to the official repository, however I need peer review first!
Code:
EAPI="8"

inherit git-r3

DESCRIPTION="Full Linux kernel sources with the CONFIG_PREEMPT_RT develpment branch"
HOMEPAGE="https://wiki.linuxfoundation.org/realtime/start"
      
EGIT_REPO_URI="https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git -> linux-rt-devel-${P}.git"
EGIT_CLONE_TYPE="shallow"

LICENSE="GPL-2+"
SLOT="0"
KEYWORDS=""

src_unpack() {
   git-r3_src_unpack
}

src_prepare() {
   default

   # 627796
   sed \
      "s/default PREEMPT_NONE/default PREEMPT_RT/g" \
      -i "${S}/kernel/Kconfig.preempt" || die "sed failed"
}

src_compile() {
   :;
}

src_install() {
   dodir /usr/src/
   cp -R "${S}/" "${D}/usr/src/" || die "Install failed!"
}

pkg_postinst() {
   kernel-2_pkg_postinst
   ewarn
   ewarn "${PN} are *not* supported by the Gentoo Kernel Project in any way."
   ewarn "If you need support, please contact the RT project developers directly."
   ewarn "Do *not* open bugs in Gentoo's bugzilla unless you have issues with"
   ewarn "the ebuilds."
   ewarn
}

K_EXTRAEINFO="For more info on rt-sources and details on how to report problems, see: \
${HOMEPAGE}."


The question is, is it possible to have 2 .config files for the same kernel at the same time under "/etc/portage/savedconfig/sys-kernel/" and choose one of them with the emerge command at build time?
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21756

PostPosted: Tue May 07, 2024 6:06 pm    Post subject: Re: linux-rt-devel-9999 ebuild file and a question! Reply with quote

Demo wrote:
Code:
DESCRIPTION="Full Linux kernel sources with the CONFIG_PREEMPT_RT develpment branch"
LICENSE="GPL-2+"
I think the Linux kernel license is GPL-2 only, not GPL-2+.
Demo wrote:
Code:
src_unpack() {
   git-r3_src_unpack
}
Isn't this default since you only have one inherit?
Back to top
View user's profile Send private message
Demo
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2022
Posts: 85

PostPosted: Tue May 07, 2024 6:23 pm    Post subject: Reply with quote

Quote:
I think the Linux kernel license is GPL-2 only, not GPL-2+.


I think this means some of the current kernel release ebuilds need review :D

Quote:
Isn't this default since you only have one inherit?


Noted! And thank you for the feedback.

There's another question, I was hesitant to ask it as I was still seeking some proof. On my previous Gentoo install, using make gconfig I was able to search the config options with ctrl+f and it was very convenient. It's not working now and I know that kernel documentation homepage says this option isn't available for gconfig which is also weird. However I'm sure I was able to use it somehow.

In order to recheck again I have to restore my previous install from its dump file which is absolutely daunting! Anyone else was able to search options on gconfig? And if yes what am I missing?
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21756

PostPosted: Tue May 07, 2024 6:29 pm    Post subject: Reply with quote

Demo wrote:
Quote:
I think the Linux kernel license is GPL-2 only, not GPL-2+.
I think this means some of the current kernel release ebuilds need review :D
Could you provide specifics? I checked the license line for vanilla-sources before my prior post, and it was GPL-2.
Demo wrote:
There's another question, I was hesitant to ask it as I was still seeking some proof. On my previous Gentoo install, using make gconfig I was able to search the config options with ctrl+f and it was very convenient. It's not working now and I know that kernel documentation homepage says this option isn't available for gconfig which is also weird. However I'm sure I was able to use it somehow.

In order to recheck again I have to restore my previous install from its dump file which is absolutely daunting! Anyone else was able to search options on gconfig? And if yes what am I missing?
I think this question deserves a separate thread.
Back to top
View user's profile Send private message
Demo
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2022
Posts: 85

PostPosted: Tue May 07, 2024 6:42 pm    Post subject: Reply with quote

Quote:
Could you provide specifics? I checked the license line for vanilla-sources before my prior post, and it was GPL-2.

linux-next-9999.ebuild

Code:
sudo grep -ire "gpl-2+" /var/db/repos/gentoo/sys-kernel/|grep -v firmware


Quote:
I think this question deserves a separate thread.

Sure! Although I know many will just follow the official kernel documentation in their replies, which is absolutely correct, however I'm also sure I used it ...
Back to top
View user's profile Send private message
Demo
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2022
Posts: 85

PostPosted: Tue May 07, 2024 7:07 pm    Post subject: Reply with quote

BTW, I forgot to ask for help adding the USE flag "savedconfig" to the ebuild file. Or is it just safe to add an IUSE section with it?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum