Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Syntax error during own ebuild creation
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
pogwizd
Tux's lil' helper
Tux's lil' helper


Joined: 26 Mar 2006
Posts: 79
Location: Warszawa

PostPosted: Wed Sep 10, 2025 7:22 am    Post subject: [Solved] Syntax error during own ebuild creation Reply with quote

Hi,

So I am attempting to create my first ebuild, following the following wiki page: https://wiki.gentoo.org/wiki/Basic_guide_to_write_Gentoo_Ebuilds., and I must confess, I am stuck in an error that I cannot understand at almost the very beginning.
This is even more strange, that the only thing I have added are "filling the template's blank".

So here is the ebuild file I have create so far: https://bpa.st/raw/KYUQ

And when trying to test it as mentioned in the wiki, I've got this:
Code:
myPC /var/db/repos/gentoo-kk/dev-lang/beremiz # GENTOO_MIRRORS="" ebuild ./beremiz-1.4-rc1.ebuild manifest clean unpack
ebuild: /var/db/repos/gentoo-kk/dev-lang/beremiz/beremiz-1.4-rc1.ebuild: dev-lang/beremiz-1.4-rc1: does not follow correct package syntax


The file was created and edited with vim.

Does anyone has any idea?


Last edited by pogwizd on Wed Sep 10, 2025 7:27 am; edited 1 time in total
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 2457

PostPosted: Wed Sep 10, 2025 7:23 am    Post subject: Reply with quote

You want _rc1, not -rc1. See https://devmanual.gentoo.org/ebuild-writing/file-format/index.html#file-naming-rules
Back to top
View user's profile Send private message
pogwizd
Tux's lil' helper
Tux's lil' helper


Joined: 26 Mar 2006
Posts: 79
Location: Warszawa

PostPosted: Wed Sep 10, 2025 7:27 am    Post subject: Reply with quote

Yeah,
Like always, small details matters. :oops:

Thanks sam_
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 2457

PostPosted: Wed Sep 10, 2025 7:49 am    Post subject: Reply with quote

You're welcome! It's a bit subtle and I think the error message could probably be a bit nicer. That error is actually usually when people get the category/package name layout wrong (missing one, or mismatched). Maybe we could add a hint if something looks close enough to a valid suffix, or something. Dunno, will think about it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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