Bug 1469456

Summary: client.mk:168: recipe for target 'build' failed
Product: [Fedora] Fedora Reporter: lsy <lisymail>
Component: firefoxAssignee: Gecko Maintainer <gecko-bugs-nobody>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 25CC: gecko-bugs-nobody, jhorak, kengert, pjasicek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-07-12 07:21:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description lsy 2017-07-11 10:01:08 UTC
Description of problem:
With fc25.I user mock to build firefox-49.0-2.fc25.src.rpm .

[mock@fc25-dev ~/repo/fedora-source/Packages/sourcepkg]$ mock -r fedora-25-x86_64 firefox-49.0-2.fc25.src.rpm 
INFO: mock.py version 1.3.4 starting (python version = 3.5.3)...
Start: init plugins
INFO: selinux disabled
Finish: init plugins
Start: run
INFO: Start(firefox-49.0-2.fc25.src.rpm)  Config(fedora-25-x86_64)
Start: clean chroot
Finish: clean chroot
Start: chroot initINFO: calling preinit hooks
INFO: enabled root cache
Start: unpacking root cache
Finish: unpacking root cache
INFO: enabled dnf cache
Start: cleaning dnf metadata
Finish: cleaning dnf metadata
INFO: enabled HW Info plugin
Mock Version: 1.3.4
INFO: Mock Version: 1.3.4
Start: dnf update
Dependencies resolved.
Nothing to do.
Complete!
Finish: dnf update
Finish: chroot init
Start: build phase for firefox-49.0-2.fc25.src.rpm
Start: build setup for firefox-49.0-2.fc25.src.rpm
构建目标平台:x86_64
为目标x86_64构建
已写至:/builddir/build/SRPMS/firefox-49.0-2.fc25.src.rpm
...
...
..
...
...
lgobject-2.0 -lglib-2.0
checking for libstartup-notification-1.0 >= 0.8... yes
checking MOZ_STARTUP_NOTIFICATION_CFLAGS... -I/usr/include/startup-notification-1.0
checking MOZ_STARTUP_NOTIFICATION_LIBS... -lstartup-notification-1
checking for pango >= 1.22.0... yes
checking _PANGOCHK_CFLAGS... -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
checking _PANGOCHK_LIBS... -lpango-1.0 -lgobject-2.0 -lglib-2.0
checking for pango >= 1.22.0 pangoft2 >= 1.22.0 pangocairo >= 1.22.0... yes
checking MOZ_PANGO_CFLAGS... -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16
checking MOZ_PANGO_LIBS... -lpangoft2-1.0 -lfontconfig -lfreetype -lpangocairo-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lcairo
checking for gio-2.0 >= 2.22... yes
checking MOZ_GIO_CFLAGS... -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
checking MOZ_GIO_LIBS... -lgio-2.0 -lgobject-2.0 -lglib-2.0
checking for gconf-2.0 >= 1.2.1 gobject-2.0 ... yes
checking MOZ_GCONF_CFLAGS... -pthread -I/usr/include/gconf/2 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
checking MOZ_GCONF_LIBS... -lgconf-2 -lgobject-2.0 -lglib-2.0
checking for dbus-1 >= 0.60... yes
checking MOZ_DBUS_CFLAGS... -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include
checking MOZ_DBUS_LIBS... -ldbus-1
checking for dbus-glib-1 >= 0.60... Package dbus-glib-1 was not found in the pkg-config search path. Perhaps you should add the directory containing `dbus-glib-1.pc' to the PKG_CONFIG_PATH environment variable No package 'dbus-glib-1' found
configure: error: Library requirements (dbus-glib-1 >= 0.60) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard
 prefix so pkg-config can find them.
DEBUG: <truncated - see config.log for full output>
DEBUG: configure:15649: checking for libstartup-notification-1.0 >= 0.8
DEBUG: configure:15656: checking MOZ_STARTUP_NOTIFICATION_CFLAGS
DEBUG: configure:15661: checking MOZ_STARTUP_NOTIFICATION_LIBS
DEBUG: configure:17156: checking for pango >= 1.22.0
DEBUG: configure:17163: checking _PANGOCHK_CFLAGS
DEBUG: configure:17168: checking _PANGOCHK_LIBS
DEBUG: configure:17209: checking for pango >= 1.22.0 pangoft2 >= 1.22.0 pangocairo >= 1.22.0
DEBUG: configure:17216: checking MOZ_PANGO_CFLAGS
DEBUG: configure:17221: checking MOZ_PANGO_LIBS
DEBUG: configure:17342: checking for gio-2.0 >= 2.22
DEBUG: configure:17349: checking MOZ_GIO_CFLAGSDEBUG: configure:17354: checking MOZ_GIO_LIBS
DEBUG: configure:17429: checking for gconf-2.0 >= 1.2.1 gobject-2.0
DEBUG: configure:17436: checking MOZ_GCONF_CFLAGS
DEBUG: configure:17441: checking MOZ_GCONF_LIBS
DEBUG: configure:17702: checking for dbus-1 >= 0.60
DEBUG: configure:17709: checking MOZ_DBUS_CFLAGS
DEBUG: configure:17714: checking MOZ_DBUS_LIBS
DEBUG: configure:17754: checking for dbus-glib-1 >= 0.60
DEBUG: configure: error: Library requirements (dbus-glib-1 >= 0.60) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
ERROR: old-configure failed
*** Fix above errors and then restart with\
               "make -f client.mk build"
/builddir/build/BUILD/firefox-49.0/firefox-49.0/client.mk:370: recipe for target 'configure' failed
make[2]: *** [configure] Error 1
make[2]: Leaving directory '/builddir/build/BUILD/firefox-49.0/firefox-49.0'
/builddir/build/BUILD/firefox-49.0/firefox-49.0/client.mk:387: recipe for target '/builddir/build/BUILD/firefox-49.0/firefox-49.0/objdir/Makefile' failed
make[1]: Leaving directory '/builddir/build/BUILD/firefox-49.0/firefox-49.0'
make[1]: *** [/builddir/build/BUILD/firefox-49.0/firefox-49.0/objdir/Makefile] Error 2
make: *** [build] Error 2
client.mk:168: recipe for target 'build' failed


RPM 构建错误:
错误:/var/tmp/rpm-tmp.1kjK4A (%build) 退出状态不好
    /var/tmp/rpm-tmp.1kjK4A (%build) 退出状态不好
ERROR: Exception(firefox-49.0-2.fc25.src.rpm) Config(fedora-25-x86_64) 5 minutes 29 seconds
INFO: Results and/or logs in: /var/lib/mock/fedora-25-x86_64/result
ERROR: Command failed. See logs for output.
 # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/firefox.spec

Comment 1 Jan Horak 2017-07-12 07:21:04 UTC
Firefox 49 is very old these days. Please use version 54. If you really need to build firefox-49 you need to add:
BuildRequires:  dbus-glib-devel
to the firefox.spec

Comment 2 lsy 2017-07-12 07:53:00 UTC
thank you very much.