You are not logged in.

#1 2020-06-14 08:11:25

yeems
Member
Registered: 2020-06-14
Posts: 3

[SOLVED] ERROR: A failure occurred in prepare()

I'm trying to build gconf to be able to build the minecraft-launcher package, and whenever I attempt to build gconf I get the error: "A failure occurred in prepare()". I'm unsure how to go about this, the research that I have done is just about building the linux kernel on Arch-ARM systems. Any help is appreciated!

Last edited by yeems (2020-06-15 00:02:21)

Offline

#2 2020-06-14 08:41:18

mpan
Member
Registered: 2012-08-01
Posts: 1,205
Website

Re: [SOLVED] ERROR: A failure occurred in prepare()

The thread is in “Newbie Corner” and not in “AUR issues”: are we talking about gconf in AUR?
You are mentioning “Arch-ARM systems”: are we taling about Arch Linux or Arch Linux ARM? If it’s the latter: this is forum for Arch Linux, Arch Linux ARM has its own forum.

If the answer to those questions are “yes” and “Arch Linux”: pleae provide the full error — not only the last line of it. That output contains the information about the cause of the error.


Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#3 2020-06-14 08:57:03

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,845
Website

Re: [SOLVED] ERROR: A failure occurred in prepare()

Mod note: moving to AUR Issues


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2020-06-14 21:11:34

yeems
Member
Registered: 2020-06-14
Posts: 3

Re: [SOLVED] ERROR: A failure occurred in prepare()

mpan wrote:

The thread is in “Newbie Corner” and not in “AUR issues”: are we talking about gconf in AUR?
You are mentioning “Arch-ARM systems”: are we taling about Arch Linux or Arch Linux ARM? If it’s the latter: this is forum for Arch Linux, Arch Linux ARM has its own forum.

If the answer to those questions are “yes” and “Arch Linux”: pleae provide the full error — not only the last line of it. That output contains the information about the cause of the error.

I am talking about Arch Linux, not ARM. I was simply stating that I had only previously found answers on how to fix my issue on ARM systems, and that it was a completely unrelated fix. My apologies for not realizing there is an AUR Issues section of the forums. I am having issues with the gconf package in the AUR. I am getting my error as stated above, would you perhaps know any fixes?

Offline

#5 2020-06-14 21:29:38

loqs
Member
Registered: 2014-03-06
Posts: 17,321

Re: [SOLVED] ERROR: A failure occurred in prepare()

mpan wrote:

If the answer to those questions are “yes” and “Arch Linux”: pleae provide the full error — not only the last line of it. That output contains the information about the cause of the error.

Builds locally in a clean chroot.  Contents of gconf-3.2.6+11+g07808097-6-x86_64-prepare.log

patching file gconf/gconftool.c
Hunk #1 succeeded at 1038 (offset 75 lines).
Hunk #2 succeeded at 1052 (offset 75 lines).
patching file backends/markup-tree.c
Hunk #1 succeeded at 89 (offset 37 lines).
Hunk #2 succeeded at 1631 (offset 37 lines).
Hunk #3 succeeded at 1845 (offset 37 lines).
Hunk #4 succeeded at 2370 (offset 26 lines).
Hunk #5 succeeded at 2409 (offset 26 lines).
Hunk #6 succeeded at 2716 (offset 26 lines).
Hunk #7 succeeded at 2727 (offset 26 lines).
Hunk #8 succeeded at 2736 (offset 26 lines).
Hunk #9 succeeded at 2804 (offset 26 lines).
Hunk #10 succeeded at 3753 (offset 24 lines).
Hunk #11 succeeded at 3779 (offset 24 lines).
patching file doc/gconf-1.0.dtd
patching file gconf/gconf-internals.c
Hunk #1 succeeded at 514 (offset 1 line).
Hunk #2 succeeded at 602 (offset 1 line).
patching file gconf/gconf-schema.c
patching file gconf/gconf-schema.h
Hunk #1 succeeded at 55 (offset 7 lines).
Hunk #2 succeeded at 74 (offset 7 lines).
patching file gconf/gconftool.c
Hunk #1 succeeded at 3297 (offset 2 lines).
Hunk #2 succeeded at 3550 (offset 2 lines).
Hunk #3 succeeded at 3648 (offset 2 lines).
Hunk #4 succeeded at 3780 (offset 2 lines).
Hunk #5 succeeded at 3817 (offset 2 lines).
patching file gconf/GConfX.idl
RefactoringTool: Skipping optional fixer: buffer
RefactoringTool: Skipping optional fixer: idioms
RefactoringTool: Skipping optional fixer: set_literal
RefactoringTool: Skipping optional fixer: ws_comma
RefactoringTool: Refactored gsettings/gsettings-schema-convert
RefactoringTool: Files that were modified:
RefactoringTool: gsettings/gsettings-schema-convert
--- gsettings/gsettings-schema-convert	(original)
+++ gsettings/gsettings-schema-convert	(refactored)
@@ -398,7 +398,7 @@
 
     def _word_to_token(self, word):
         lower = word.lower()
-        if lower and lower in self.allowed_tokens.keys():
+        if lower and lower in list(self.allowed_tokens.keys()):
             return lower
         raise GSettingsSchemaConvertException('\'%s\' is not a valid token.' % lower)
 
@@ -603,7 +603,7 @@
             for line in lines:
                 current_line_nb += 1
                 self.parse_line(line)
-        except GSettingsSchemaConvertException, e:
+        except GSettingsSchemaConvertException as e:
             raise GSettingsSchemaConvertException('%s:%s: %s' % (os.path.basename(self.file), current_line_nb, e))
 
         return self.root
@@ -711,7 +711,7 @@
             schema = self._parse_schema(schema_node)
 
             for (child_schema, child_name) in schema._children:
-                if parent.has_key(child_schema):
+                if child_schema in parent:
                     raise GSettingsSchemaConvertException('Child \'%s\' is declared by two different schemas: \'%s\' and \'%s\'.' % (child_schema, parent[child_schema], schema.id))
                 parent[child_schema] = schema
 
@@ -719,7 +719,7 @@
 
         # now let's move all schemas where they should leave
         for schema in schemas:
-            if parent.has_key(schema.id):
+            if schema.id in parent:
                 parent_schema = parent[schema.id]
 
                 # check that the paths of parent and child are supported by
@@ -1054,31 +1054,31 @@
     (options, args) = parser.parse_args()
 
     if len(args) < 1:
-        print >> sys.stderr, 'Need a filename to work on.'
+        print('Need a filename to work on.', file=sys.stderr)
         return 1
     elif len(args) > 1:
-        print >> sys.stderr, 'Too many arguments.'
+        print('Too many arguments.', file=sys.stderr)
         return 1
 
     if options.simple and options.xml:
-        print >> sys.stderr, 'Too many output formats requested.'
+        print('Too many output formats requested.', file=sys.stderr)
         return 1
 
     if not options.gconf and options.gettext_domain:
-        print >> sys.stderr, 'Default gettext domain can only be specified when converting a gconf schema.'
+        print('Default gettext domain can only be specified when converting a gconf schema.', file=sys.stderr)
         return 1
 
     if not options.gconf and options.schema_id:
-        print >> sys.stderr, 'Default schema ID can only be specified when converting a gconf schema.'
+        print('Default schema ID can only be specified when converting a gconf schema.', file=sys.stderr)
         return 1
 
     if not options.gconf and options.keep_underscores:
-        print >> sys.stderr, 'The --keep-underscores option can only be specified when converting a gconf schema.'
+        print('The --keep-underscores option can only be specified when converting a gconf schema.', file=sys.stderr)
         return 1
 
     argfile = os.path.expanduser(args[0])
     if not os.path.exists(argfile):
-        print >> sys.stderr, '\'%s\' does not exist.' % argfile
+        print('\'%s\' does not exist.' % argfile, file=sys.stderr)
         return 1
 
     if options.output:
@@ -1095,7 +1095,7 @@
             try:
                 parser = GConfSchemaParser(argfile, options.gettext_domain, options.schema_id, options.keep_underscores)
                 schema_root = parser.parse()
-            except SyntaxError, e:
+            except SyntaxError as e:
                 raise GSettingsSchemaConvertException('\'%s\' does not look like a valid gconf schema file: %s' % (argfile, e))
         else:
             # autodetect if file is XML or not
@@ -1104,7 +1104,7 @@
                 schema_root = parser.parse()
                 if not options.simple and not options.xml:
                     options.simple = True
-            except SyntaxError, e:
+            except SyntaxError as e:
                 parser = SimpleSchemaParser(argfile)
                 schema_root = parser.parse()
                 if not options.simple and not options.xml:
@@ -1127,14 +1127,14 @@
                 fout = open(options.output, 'w')
                 fout.write(output)
                 fout.close()
-            except GSettingsSchemaConvertException, e:
+            except GSettingsSchemaConvertException as e:
                 fout.close()
                 if os.path.exists(options.output):
                     os.unlink(options.output)
                 raise e
 
-    except GSettingsSchemaConvertException, e:
-        print >> sys.stderr, '%s' % e
+    except GSettingsSchemaConvertException as e:
+        print('%s' % e, file=sys.stderr)
         return 1
 
     return 0
/usr/bin/gnome-autogen.sh
***Warning*** USE_GNOME2_MACROS is deprecated, you may remove it from autogen.sh
***Warning*** PKG_NAME is deprecated, you may remove it from autogen.sh
[1mchecking for automake >= 1.9...
(B[m  testing automake... found 1.16.2
[1mchecking for autoreconf >= 2.53...
(B[m  testing autoreconf... found 2.69
[1mchecking for glib-gettext >= 2.2.0...
(B[m  testing glib-gettextize... found 2.64.3
[1mchecking for intltool >= 0.25...
(B[m  testing intltoolize... found 0.51.0
[1mchecking for pkg-config >= 0.14.0...
(B[m  testing pkg-config... found 1.7.3
[1mchecking for gtk-doc >= 1.0...
(B[m  testing gtkdocize... found 1.32.1
[1mChecking for required M4 macros...
(B[m[1mProcessing ./configure.ac
(B[m[1mRunning glib-gettextize... Ignore non-fatal messages.
(B[mCopying file po/Makefile.in.in

Please add the files
  codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4
  progtest.m4
from the /usr/share/aclocal directory to your autoconf macro directory
or directly to your aclocal.m4 file.
You will also need config.guess and config.sub, which you can get from
ftp://ftp.gnu.org/pub/gnu/config/.

[1mRunning gtkdocize...
(B[m[1mRunning intltoolize...
(B[m[1mRunning autoreconf...
(B[mautoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force --warnings=no-portability -I m4 ${ACLOCAL_FLAGS}
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
autoreconf: running: /usr/bin/autoconf --force --warnings=no-portability
autoreconf: running: /usr/bin/autoheader --force --warnings=no-portability
autoreconf: running: automake --add-missing --copy --force-missing --warnings=no-portability
configure.ac:40: installing './compile'
configure.ac:17: installing './config.guess'
configure.ac:17: installing './config.sub'
configure.ac:11: installing './install-sh'
configure.ac:11: installing './missing'
Makefile.am: installing './INSTALL'
backends/Makefile.am:1: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
/usr/share/automake-1.16/am/ltlibrary.am: warning: 'libgconfbackend-evoldap.la': linking libtool libraries using a non-POSIX
/usr/share/automake-1.16/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
backends/Makefile.am:9:   while processing Libtool library 'libgconfbackend-evoldap.la'
/usr/share/automake-1.16/am/ltlibrary.am: warning: 'libgconfbackend-oldxml.la': linking libtool libraries using a non-POSIX
/usr/share/automake-1.16/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
backends/Makefile.am:12:   while processing Libtool library 'libgconfbackend-oldxml.la'
/usr/share/automake-1.16/am/ltlibrary.am: warning: 'libgconfbackend-xml.la': linking libtool libraries using a non-POSIX
/usr/share/automake-1.16/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
backends/Makefile.am:12:   while processing Libtool library 'libgconfbackend-xml.la'
backends/Makefile.am: installing './depcomp'
defaults/Makefile.am:15: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
examples/Makefile.am:1: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
gconf/Makefile.am:143: warning: filter-out $(CORBA_SOURCECODE: non-POSIX variable name
gconf/Makefile.am:143: (probably a GNU make extension)
gconf/Makefile.am:143: warning: filter %.c,$(libgconf_2_la_SOURCES: non-POSIX variable name
gconf/Makefile.am:143: (probably a GNU make extension)
gconf/Makefile.am:151: warning: addprefix $(srcdir: non-POSIX variable name
gconf/Makefile.am:151: (probably a GNU make extension)
gconf/Makefile.am:5: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
/usr/share/automake-1.16/am/ltlibrary.am: warning: 'libgconf-2.la': linking libtool libraries using a non-POSIX
/usr/share/automake-1.16/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
gconf/Makefile.am:28:   while processing Libtool library 'libgconf-2.la'
gsettings/Makefile.am:56: warning: '%'-style pattern rules are a GNU make extension
/usr/share/automake-1.16/am/ltlibrary.am: warning: 'libgsettingsgconfbackend.la': linking libtool libraries using a non-POSIX
/usr/share/automake-1.16/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
gsettings/Makefile.am:3:   while processing Libtool library 'libgsettingsgconfbackend.la'
tests/Makefile.am:4: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
autoreconf: Leaving directory `.'
Skipping configure process.

Offline

#6 2020-06-14 21:52:14

mpan
Member
Registered: 2012-08-01
Posts: 1,205
Website

Re: [SOLVED] ERROR: A failure occurred in prepare()

yeems: yet again, please provide the complete error log. Not one line taken out of it.

loqs: prepare()-s properly here too, so I wish to know what the error the OP has.

Last edited by mpan (2020-06-14 21:53:57)


Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#7 2020-06-14 22:17:42

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: [SOLVED] ERROR: A failure occurred in prepare()

Probably missing the "patch" package -- see this comment on the AUR page for gconf: https://aur.archlinux.org/packages/gcon … ent-750962

But all this guessing could have been prevented if we had seen the complete error log, or if the OP had read the comments on the AUR page.

Offline

#8 2020-06-14 23:03:14

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] ERROR: A failure occurred in prepare()

How can the OP possibly be missing the patch package? It's in base-devel, and surely we cannot be suspecting people of completely failing to follow the very first rule of using makepkg, now can we? wink
(I kid, I kid. Of course we can. sad)

Of course, if the OP would bother to post full errors, we would see messages like:

[...]/chromedriver/dependencies/gconf/PKGBUILD: line 34: patch: command not found

and then we would know for sure... and we could say "omg, did you not read the pinned comment by the package maintainer?"

Last edited by eschwartz (2020-06-14 23:04:52)


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#9 2020-06-14 23:43:22

mpan
Member
Registered: 2012-08-01
Posts: 1,205
Website

Re: [SOLVED] ERROR: A failure occurred in prepare()

Not having the base-devel group as required (also, also) is what I suspected. But I wanted to avoid guessing and giving the answer before the OP learns to ask questions the smart way.


Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#10 2020-06-15 00:01:53

yeems
Member
Registered: 2020-06-14
Posts: 3

Re: [SOLVED] ERROR: A failure occurred in prepare()

mpan wrote:

Not having the base-devel group as required (also, also) is what I suspected. But I wanted to avoid guessing and giving the answer before the OP learns to ask questions the smart way.

The issue was that I had forgotten to include base-devel in my original pacstrap command during setup. I did not include my logs because I had forgotten to. It happens. I have other things to attend to than my computer. I will not be asking questions here, as it seems you are very rude, complaining how I do not ask questions the "smart way". This problem is solved. thank you for the information.

Offline

#11 2020-06-15 00:41:02

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: [SOLVED] ERROR: A failure occurred in prepare()

I guess some people just don't want to learn how to fish...

You might think we are rude for trying to help you learn to help yourself, but I might also consider it rude to tell us you forgot to post the log we asked for because you have other things to attend to. All of the people here are volunteers, and all of us have other things to attend to, and yet we are here trying to help people.

https://wiki.archlinux.org/index.php/Co … way_street

Offline

#12 2020-06-15 01:06:08

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] ERROR: A failure occurred in prepare()

yeems wrote:

The issue was that I had forgotten to include base-devel in my original pacstrap command during setup. I did not include my logs because I had forgotten to. It happens. I have other things to attend to than my computer. I will not be asking questions here, as it seems you are very rude, complaining how I do not ask questions the "smart way". This problem is solved. thank you for the information.

You're the one who posted to a help forum asking for help. Then, when asked to post debugging information, you didn't, and now you say you forgot.

That's perfectly fine. You have other things to attend to than your (broken) computer. We have other things to attend to than baby-sit you while you forget to do things which we have already asked you to do.

Given you do not have a paid support contract, we are under no contractual obligation to help you in any way, shape or form. Nevertheless, out of the goodness of our heart, we spontaneously volunteer our unpaid time to help you. You rejected our first attempt to help you, which was incredibly rude, and then doubled down on your rudeness by insulting our collective character because we expressed disappointment in your failure to do as we asked.

yeems wrote:

I will not be asking questions here [...]

Goodbye then. I'm sorry you found this community to be a bad fit for you.
Don't let the door hit you on the way out.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

Board footer

Powered by FluxBB