public inbox for gentoo-catalyst@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-catalyst] I need generic solution to package non-building uder catalyst...
@ 2014-01-08  0:57 lin pro
  2014-01-08  1:09 ` [gentoo-catalyst] " W. Trevor King
  2014-01-08 19:30 ` [gentoo-catalyst] " Peter Stuge
  0 siblings, 2 replies; 6+ messages in thread
From: lin pro @ 2014-01-08  0:57 UTC (permalink / raw
  To: gentoo-catalyst

Hi,
I have not yet managed to build a stage4 without any fatal errors when
packages are being built.

This time it is about help2man requiring Locale_gettext pearl module package.
The message in itself is very simple and clear. There is no
dev-utils/Locale_gettex  available for emerge durring the configure
phase.
Adding it to spec file does not change anything.
Rerunning catalyst with an -a switch or -p -P or -T,or even deleting
all of the catalyst/tmp directory brings no solution.

My question is hwo to tacke those problems from within catalyst. I no
that one should no intervene in the catalyst build process by hand.
how to manupulate it with config files to solve build issues?

below please find the latest fatal error which stops the spec file.

>>> Emerging (117 of 260) sys-apps/help2man-1.40.11
>>> Failed to emerge sys-apps/help2man-1.40.11, Log file:
>>>  '/var/tmp/portage/sys-apps/help2man-1.40.11/temp/build.log'
 * Package:    sys-apps/help2man-1.40.11
 * Repository: gentoo
 * Maintainer: base-system@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux multilib nls
userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
 * Applying help2man-1.36.4-respect-LDFLAGS.patch ...
 [ ok ]
 * Applying help2man-1.38.4-linguas.patch ...
 [ ok ]
checking for perl... perl
checking for module Locale::gettext... no
checking for msgfmt... /usr/bin/msgfmt
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed
checking for library containing dlsym... -ldl
checking for library containing bindtextdomain... none required
configure: error: perl module Locale::gettext required

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/sys-apps/help2man-1.40.11/work/help2man-1.40.11/config.log
 * ERROR: sys-apps/help2man-1.40.11::gentoo failed (configure phase):
 *   econf failed
 *
 * Call stack:
 *          ebuild.sh, line   93:  Called src_configure
 *        environment, line 2226:  Called econf '--enable-nls'
 *   phase-helpers.sh, line  577:  Called die
 * The specific snippet of code:
 *               die "econf failed"
 *
 * If you need support, post the output of `emerge --info
'=sys-apps/help2man-1.40.11::gentoo'`,
 * the complete build log and the output of `emerge -pqv
'=sys-apps/help2man-1.40.11::gentoo'`.
 * The complete build log is located at
'/var/tmp/portage/sys-apps/help2man-1.40.11/temp/build.log'.
 * The ebuild environment file is located at
'/var/tmp/portage/sys-apps/help2man-1.40.11/temp/environment'.
 * Working directory:
'/var/tmp/portage/sys-apps/help2man-1.40.11/work/help2man-1.40.11'
 * S: '/var/tmp/portage/sys-apps/help2man-1.40.11/work/help2man-1.40.11'

 * Messages for package media-fonts/dejavu-2.33:

 * The following fontconfig configuration files have been installed:
 *
 *   20-unhint-small-dejavu-sans-mono.conf
 *   20-unhint-small-dejavu-sans.conf
 *   20-unhint-small-dejavu-serif.conf
 *   57-dejavu-sans-mono.conf
 *   57-dejavu-sans.conf
 *   57-dejavu-serif.conf
 *
 * Use `eselect fontconfig` to enable/disable them.

 * Messages for package sci-astronomy/wcstools-3.8.7:

 * The following execs have been renamed to avoid colliding
 * with other packages:
 *  getdate -> wcsgetdate
 *  crlf    -> wcscrlf
 *  remap   -> wcsremap

 * Messages for package media-fonts/urw-fonts-2.4.9:

 * If you upgraded from urw-fonts-2.1-r2 some fonts will look a bit
 * different. Take a look at bug #208990 if interested.

 * Messages for package media-fonts/stix-fonts-1.0.0-r1:

 * The following fontconfig configuration files have been installed:
 *
 *   61-stix.conf
 *
 * Use `eselect fontconfig` to enable/disable them.

 * Messages for package app-portage/portage-utils-0.30:

 * This package will overwrite one or more files that may belong to other
 * packages (see list below).
 *
 * Detected file collision(s):
 *
 *     /etc/portage/postsync.d/q-reinitialize
 *     /etc/portage/bin/post_sync
 *
 * Searching all installed packages for file collisions...
 *
 * Press Ctrl-C to Stop
 *
 * None of the installed packages claim the file(s).
 *
 * Package 'app-portage/portage-utils-0.30' merged despite file
 * collisions. If necessary, refer to your elog messages for the whole
 * content of the above message.
 * /etc/portage/postsync.d/q-reinitialize has been installed for convenience
 * If you wish for it to be automatically run at the end of every --sync:
 *    # chmod +x /etc/portage/postsync.d/q-reinitialize
 * Normally this should only take a few seconds to run but file systems
 * such as ext3 can take a lot longer.  To disable, simply do:
 *    # chmod -x /etc/portage/postsync.d/q-reinitialize

 * Messages for package x11-libs/libXi-1.7.2:

 * Some special keys and keyboard layouts may stop working.
 * To fix them, recompile xorg-server.

 * Messages for package sys-apps/help2man-1.40.11:

 * ERROR: sys-apps/help2man-1.40.11::gentoo failed (configure phase):
 *   econf failed
 *
 * Call stack:
 *          ebuild.sh, line   93:  Called src_configure
 *        environment, line 2226:  Called econf '--enable-nls'
 *   phase-helpers.sh, line  577:  Called die
 * The specific snippet of code:
 *               die "econf failed"
 *
 * If you need support, post the output of `emerge --info
'=sys-apps/help2man-1.40.11::gentoo'`,
 * the complete build log and the output of `emerge -pqv
'=sys-apps/help2man-1.40.11::gentoo'`.
 * The complete build log is located at
'/var/tmp/portage/sys-apps/help2man-1.40.11/temp/build.log'.
 * The ebuild environment file is located at
'/var/tmp/portage/sys-apps/help2man-1.40.11/temp/environment'.
 * Working directory:
'/var/tmp/portage/sys-apps/help2man-1.40.11/work/help2man-1.40.11'
 * S: '/var/tmp/portage/sys-apps/help2man-1.40.11/work/help2man-1.40.11'

!!! catalyst: cmd() NON-zero return value from: Error in attempt to
build packages


!!! catalyst: stage4build aborting due to error.

--- Exeption running action sequence:build_packages
!!! catalyst: Error encountered during run of target stage4
Catalyst aborting....
lockfile does not exist
'/var/tmp/catalyst/tmp/default/stage4-core2-2013.12/.catalyst_lock'


As you can clearly see at the top the gettext  module is not available
for emerge at the time of building.

The spec file has this:

stage4/packages: dev-perl/Locale-gettext @astronomy


Theoretically the module should have been built before the @astronomy
set. And yet it is not there.

Let me mention that the stage4 file was modified to use the latest
snapshot 20140107.


If this was a regular system, not catalyst, I would diagnosed it
somehow. I just have no clue how to tackle it.
Could catalyst have build phases?
imagine this:
catalyst --phase stage4/packages -f specfile
catalyst --phase stage/fsscript -f specfile
catalyst --phase stage/rcadd -f specfile
catalyst --phase boot/kernel/gentoo/sources -f specfile

and so on and on.
this way one could step in,chroot into untarred 'phase', modify it and
then proceed?

this is just a thought. I am not a programmer, please do not take it
too seriously.

Thank for any input.
Ben



-- 
best regards
linforpros


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [gentoo-catalyst] Re: I need generic solution to package non-building uder catalyst...
  2014-01-08  0:57 [gentoo-catalyst] I need generic solution to package non-building uder catalyst lin pro
@ 2014-01-08  1:09 ` W. Trevor King
  2014-01-08 17:51   ` lin pro
  2014-01-08 19:30 ` [gentoo-catalyst] " Peter Stuge
  1 sibling, 1 reply; 6+ messages in thread
From: W. Trevor King @ 2014-01-08  1:09 UTC (permalink / raw
  To: gentoo-catalyst

[-- Attachment #1: Type: text/plain, Size: 601 bytes --]

On Tue, Jan 07, 2014 at 06:57:16PM -0600, lin pro wrote:
> If this was a regular system, not catalyst, I would diagnosed it
> somehow. I just have no clue how to tackle it.
> …
> this way one could step in,chroot into untarred 'phase', modify it
> and then proceed?

The unpacked stage is still under /var/tmp/catalyst/tmp/.  Why don't
you setup the mounts, chroot into it, and debug as if Catalyst didn't
exist?

Cheers,
Trevor

-- 
This email may be signed or encrypted with GnuPG (http://www.gnupg.org).
For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-catalyst] Re: I need generic solution to package non-building uder catalyst...
  2014-01-08  1:09 ` [gentoo-catalyst] " W. Trevor King
@ 2014-01-08 17:51   ` lin pro
  2014-01-08 17:59     ` W. Trevor King
  0 siblings, 1 reply; 6+ messages in thread
From: lin pro @ 2014-01-08 17:51 UTC (permalink / raw
  To: gentoo-catalyst

Thank you for prompt answer.
Forgive my impertinence:-)
How do you setup the mounts and then to convnice configure phase to
find the Locale-gettext pearl module?
Let me mention that the module gets registered in the world file,
according to messages from catalyst.

Thank you
Ben


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [gentoo-catalyst] Re: I need generic solution to package non-building uder catalyst...
  2014-01-08 17:51   ` lin pro
@ 2014-01-08 17:59     ` W. Trevor King
  0 siblings, 0 replies; 6+ messages in thread
From: W. Trevor King @ 2014-01-08 17:59 UTC (permalink / raw
  To: gentoo-catalyst

[-- Attachment #1: Type: text/plain, Size: 853 bytes --]

On Wed, Jan 08, 2014 at 11:51:07AM -0600, lin pro wrote:
> How do you setup the mounts

The same way you'd set them up for a new Gentoo installation [1].
You'll also want to mount a few more filesystems (/dev/shm,
/usr/portage, …) in your chroot.  For more details on what's actually
mounted during a Catalyst run, just cat /etc/mtab during the run.

> and then to convnice configure phase to find the Locale-gettext
> pearl module?

Once you're in the chroot, figuring out why the Perl module is not
working is a generic Gentoo problem, not a Catalyst problem.  Good
luck!

Cheers,
Trevor

[1]: http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=6#doc_chap1

-- 
This email may be signed or encrypted with GnuPG (http://www.gnupg.org).
For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-catalyst] I need generic solution to package non-building uder catalyst...
  2014-01-08  0:57 [gentoo-catalyst] I need generic solution to package non-building uder catalyst lin pro
  2014-01-08  1:09 ` [gentoo-catalyst] " W. Trevor King
@ 2014-01-08 19:30 ` Peter Stuge
  2014-01-09  2:56   ` Jorge Manuel B. S. Vicetto
  1 sibling, 1 reply; 6+ messages in thread
From: Peter Stuge @ 2014-01-08 19:30 UTC (permalink / raw
  To: gentoo-catalyst

lin pro wrote:
> This time it is about help2man requiring Locale_gettext pearl
> module package.
> The message in itself is very simple and clear. There is no
> dev-utils/Locale_gettex  available for emerge durring the configure
> phase.

At first that might seem like a bug in the help2man ebuild.

However,

RDEPEND="dev-lang/perl
        elibc_glibc? ( nls? (
                dev-perl/Locale-gettext
        ) )"

..the dependency looks fine, meaning that dev-perl/Locale-gettext
is in fact installed on your system.

The problem may be that perl has been upgraded, perhaps as a result
of using a newer portage tree for the stage4 than the stage3 was
built with, but perl modules haven't been upgraded to be availble in
the new version of perl.

Either chroot into the stage4 temp dir as already described, or hack
the catalyst stage4-chroot.sh script to run perl-cleaner --all right
after run_merge -uav system.


> My question is hwo to tacke those problems from within catalyst.

Avoid the problem by building a full set of stage1, stage2, stage3
and stage4 using only one specific portage tree.


//Peter


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-catalyst] I need generic solution to package non-building uder catalyst...
  2014-01-08 19:30 ` [gentoo-catalyst] " Peter Stuge
@ 2014-01-09  2:56   ` Jorge Manuel B. S. Vicetto
  0 siblings, 0 replies; 6+ messages in thread
From: Jorge Manuel B. S. Vicetto @ 2014-01-09  2:56 UTC (permalink / raw
  To: gentoo-catalyst

On Wed, 8 Jan 2014, Peter Stuge wrote:

> lin pro wrote:
>> This time it is about help2man requiring Locale_gettext pearl
>> module package.
>> The message in itself is very simple and clear. There is no
>> dev-utils/Locale_gettex  available for emerge durring the configure
>> phase.
>
> At first that might seem like a bug in the help2man ebuild.
>
> However,
>
> RDEPEND="dev-lang/perl
>        elibc_glibc? ( nls? (
>                dev-perl/Locale-gettext
>        ) )"
>
> ..the dependency looks fine, meaning that dev-perl/Locale-gettext
> is in fact installed on your system.
>
> The problem may be that perl has been upgraded, perhaps as a result
> of using a newer portage tree for the stage4 than the stage3 was
> built with, but perl modules haven't been upgraded to be availble in
> the new version of perl.

My first impression is the same. You likely need to update / redo your 
stage3 so that your perl applications are built for the same perl version 
that stage4 is picking up.

> Either chroot into the stage4 temp dir as already described, or hack
> the catalyst stage4-chroot.sh script to run perl-cleaner --all right
> after run_merge -uav system.
>
>
>> My question is hwo to tacke those problems from within catalyst.
>
> Avoid the problem by building a full set of stage1, stage2, stage3
> and stage4 using only one specific portage tree.

From my experience building and debugging catalyst builds, the hardest 
part is getting a working spec. When you have a spec that builds, you just 
need to check packages that fail to build to see if they have become 
broken or check here (or even better #gentoo-releng) to see if there were 
any changes to the tree that break catalyst or stage building.

> //Peter

Regards,

Jorge Manuel B. S. Vicetto



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-01-09  2:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-08  0:57 [gentoo-catalyst] I need generic solution to package non-building uder catalyst lin pro
2014-01-08  1:09 ` [gentoo-catalyst] " W. Trevor King
2014-01-08 17:51   ` lin pro
2014-01-08 17:59     ` W. Trevor King
2014-01-08 19:30 ` [gentoo-catalyst] " Peter Stuge
2014-01-09  2:56   ` Jorge Manuel B. S. Vicetto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox