Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gdbus-codegen Command not found with overlay rindeal
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Progman3K
l33t
l33t


Joined: 03 Jan 2004
Posts: 665

PostPosted: Sat Oct 13, 2018 12:11 am    Post subject: gdbus-codegen Command not found with overlay rindeal Reply with quote

Hi,

After activating an overlay, I am getting build errors on any build that uses gdbus-codegen.
Quote:
>>> Emerging (75 of 377) dev-util/gdbus-codegen-2.99::rindeal
>>> Unpacking source...
>>> Source unpacked in /var/tmp/portage/dev-util/gdbus-codegen-2.99/work
>>> Preparing source in /var/tmp/portage/dev-util/gdbus-codegen-2.99/work ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-util/gdbus-codegen-2.99/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-util/gdbus-codegen-2.99/work ...
>>> Source compiled.
>>> Test phase [not enabled]: dev-util/gdbus-codegen-2.99

>>> Install gdbus-codegen-2.99 into /var/tmp/portage/dev-util/gdbus-codegen-2.99/image/ category dev-util
>>> Completed installing gdbus-codegen-2.99 into /var/tmp/portage/dev-util/gdbus-codegen-2.99/image/

* Final size of build directory: 4 KiB
* Final size of installed tree: 4 KiB

./
>>> Done.

>>> Installing (75 of 377) dev-util/gdbus-codegen-2.99::rindeal
* checking 0 files for package collisions
>>> Merging dev-util/gdbus-codegen-2.99 to /
>>> Safely unmerging already-installed instance...
No package files given... Grabbing a set.
>>> Regenerating /etc/ld.so.cache...
>>> Original instance of package unmerged safely.

* This is a virtual package existing just to satisfy gentoo deps.
* Make sure you use dev-util/gdbus-codegen package from 'rindeal' repo.
* Otherwise you'll end up with no gdbus-codegen, which will cause subsequent builds to fail.

>>> dev-util/gdbus-codegen-2.99 merged.


I'm not sure how to interpret the post-build message, isn't portage using the gdbus-codegen from the rindeal repository?
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 7113
Location: Austria

PostPosted: Sat Oct 13, 2018 7:09 am    Post subject: Reply with quote

>>> dev-util/gdbus-codegen-2.99 merged.

^ this does not exist in portage, so you are using rindeal's 'virtual'. Why this is done is puzzling to me.

...after a brief look at the work, I would recommend to default mask all packages from ::rindeal and unmask only those packages that you seek to get in the overlay that are not in portage.
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
rindeal
n00b
n00b


Joined: 09 Mar 2015
Posts: 26
Location: Central Europe

PostPosted: Sat Aug 03, 2019 6:51 pm    Post subject: Reply with quote

I've rectified the error in the warning message and converted it into a hard error at preinst phase so that existing installations won't be affected in cases of mis-configuration such as these.
I've also increased the verbosity of the message and added a link directing users to my issue tracker.

Mis-configuration will now look like this:
Code:
>>> Installing (1 of 1) dev-util/gdbus-codegen-2.99::rindeal
 * checking 0 files for package collisions
>>> Merging dev-util/gdbus-codegen-2.99 to /
 *
 * This is a virtual package, which exists just to satisfy
 * dependency constraints of packages from the 'gentoo' repository.
 * 'gdbus-codegen' utility should've been installed from
 * the 'dev-libs/glib:2' package found in the 'rindeal' repository.
 *
 * You have 2 options now:
 *
 *     1) Put these two lines into 'package.mask' file:
 *
 *         dev-libs/glib:2::gentoo
 *         dev-util/gdbus-codegen::gentoo
 *
 *     2) Put these two lines into 'package.mask' file:
 *
 *         dev-libs/glib:2::rindeal
 *         dev-util/gdbus-codegen::rindeal
 *
 * Otherwise you'll end up with no 'gdbus-codegen',
 * which will cause subsequent builds to fail.
 *
 * ERROR: dev-util/gdbus-codegen-2.99::rindeal failed (preinst phase):
 *   Package dev-libs/glib:2::rindeal not installed
 *
 * Call stack:
 *     ebuild.sh, line 124:  Called pkg_preinst
 *   environment, line 709:  Called die
 * The specific snippet of code:
 *           die "Package dev-libs/glib:2::rindeal not installed";
 *
 * If you need support, post the output of `emerge --info '=dev-util/gdbus-codegen-2.99::rindeal'`,
 * the complete build log and the output of `emerge -pqv '=dev-util/gdbus-codegen-2.99::rindeal'`.
 *
 * Ask for help at https://github.com/rindeal/rindeal-ebuild-repo/issues
 * instead of posting to https://forums.gentoo.org/ or worse https://bugs.gentoo.org/.
 *
 * The complete build log is located at


To answer the question of why is this package 'virtual'. Gentoo devs extracted the 'gdbus-codegen' utility from 'glib' software suite into this separate hacked-together package just to work around some issues in building stage* images or something like that. I don't have the need for such hacks in my repository thus I converted it into a 'virtual' package so that packages from the 'gentoo' repository, which depend on it, won't brake.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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