Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
1200wd/bitcoinlib .ebuild
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
kr1sk0
n00b
n00b


Joined: 25 Apr 2025
Posts: 4

PostPosted: Fri Apr 25, 2025 2:57 pm    Post subject: 1200wd/bitcoinlib .ebuild Reply with quote

I recently got AI to write ebuild for https://github.com/1200wd/bitcoinlib. Here it is: https://github.com/krisk0/ebuilds/blob/main/dev-python/bitcoinlib/bitcoinlib-0.7.3.ebuild .

python_prepare_all() function is ugly -- it cooks setup.cfg :cry: . Can someone fix the .ebuild?
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23677

PostPosted: Fri Apr 25, 2025 3:34 pm    Post subject: Reply with quote

Welcome to the forums. Please note that use of AI in lieu of actual expertise is discouraged because of situations like this, where AI creates for you a problem that you lack the background to solve. Before we can help you, please explain your problem. What is wrong with the AI-generated setup.cfg? How did you determine that it was wrong?
Back to top
View user's profile Send private message
kr1sk0
n00b
n00b


Joined: 25 Apr 2025
Posts: 4

PostPosted: Fri Apr 25, 2025 3:43 pm    Post subject: Reply with quote

AI solved my problem. I prefer to install everything via ebuilds, and AI helped me.

The ebuild looks ugly. I am unhappy with that and want to improve it.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23677

PostPosted: Sat Apr 26, 2025 12:57 am    Post subject: Reply with quote

Have you tried asking the AI to generate a nicer one? Could you quantify what you mean by "ugly"?
Back to top
View user's profile Send private message
kr1sk0
n00b
n00b


Joined: 25 Apr 2025
Posts: 4

PostPosted: Sat Apr 26, 2025 2:42 am    Post subject: Reply with quote

The ebuild creates auxillary file which is vital for installation process. Most other ebuilds do not do that. At least ebuilds for well-known and recognized software. And bictoinlib is well-known and recoginized -- it has long history of development, is hosted on pypi.org, has good rating in google search.

I therefore think that bitcoinlib is good and there should be a straightforward regular ebuild for it, without hacks.
Back to top
View user's profile Send private message
kr1sk0
n00b
n00b


Joined: 25 Apr 2025
Posts: 4

PostPosted: Sat Apr 26, 2025 3:49 am    Post subject: Reply with quote

I asked another AI. Result looks slightly better, I updated the ebuild.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55452
Location: 56N 3W

PostPosted: Sat Apr 26, 2025 11:49 am    Post subject: Reply with quote

kr1sk0,

AI is always out of date as it is trained on historical data.
Gentoo is updated every 30 minutes, so AI will lead you astray as it can't keep up.

AI is a sales term for 'Expert System'. Its not 'Intelligent'.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 3152

PostPosted: Mon Apr 28, 2025 7:10 am    Post subject: Reply with quote

kr1sk0 wrote:
The ebuild creates auxillary file which is vital for installation process. Most other ebuilds do not do that. At least ebuilds for well-known and recognized software. And bictoinlib is well-known and recoginized -- it has long history of development, is hosted on pypi.org, has good rating in google search.

I therefore think that bitcoinlib is good and there should be a straightforward regular ebuild for it, without hacks.


Perfectly valid and actually clever idea. If you don't like it that way, extract the file and put it in files and then copy it into the build directory from there.

The second version is also clever but it's way more hacky.

Best Regards,
Georgi
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