[MacPorts] #49203: bacula 7.0.4_1 +client_only +console_bat does not build because it can't find Qt4
#49203: bacula 7.0.4_1 +client_only +console_bat does not build because it can't find Qt4 --------------------------------+-------------------------------- Reporter: gullevek@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Keywords: bacula bat qt4-mac | Port: bacula --------------------------------+-------------------------------- It seems that in this new version the QMAKE and PKG_CONFIG_PATH vars are not carried over into the bacula configure run. It correctly finds + gets the qt4-mac settings, but in the configure from bacula it fails to find QMAKE and Qt4Gui. Qt4-mac was automatically installed into /opt/local/libexec/qt4/ If I add QMAKE='/opt/local/libexec/qt4/bin/qmake' before the QMAKE check and add export PKG_CONFIG_PATH='/opt/local/libexec/qt4/lib/pkgconfig' before the pkg-config check for Qt4 it builds correctly. -- Ticket URL: <https://trac.macports.org/ticket/49203> MacPorts <https://www.macports.org/> Ports system for OS X
#49203: bacula 7.0.4_1 +client_only +console_bat does not build because it can't find Qt4 -------------------------+------------------------------ Reporter: gullevek@… | Owner: robertoschwald@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: bacula | -------------------------+------------------------------ Changes (by ryandesign@…): * owner: macports-tickets@… => robertoschwald@… * keywords: bacula bat qt4-mac => -- Ticket URL: <https://trac.macports.org/ticket/49203#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#49203: bacula 7.0.4_1 +client_only +console_bat does not build because it can't find Qt4 -------------------------+------------------------------ Reporter: gullevek@… | Owner: robertoschwald@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: bacula | -------------------------+------------------------------ Comment (by clemente.aguiar@…): I have exactly the same problem: :info:configure configure: error: Unable to find Qt4 installation needed by bat :info:configure Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_bacula/bacula/work/bacula-7.0.4" && ./configure --prefix=/opt/local --mandir=/opt/local/share/man --docdir=/opt/local/share/doc/bacula --datarootdir=/opt/local/share --with-pid-dir=/opt/local/var/run --with-subsys- dir=/opt/local/var/run/subsys --sysconfdir=/opt/local/etc/bacula --with- libintl-prefix=/opt/local --with-openssl=/opt/local --with-libiconv- prefix=/opt/local --with-archivedir=/var/tmp --with-working- dir=/opt/local/var/bacula/working --with-included-gettext=/opt/local --enable-smartalloc --enable-largefile --enable-conio --without-sqlite3 --without-postgresql --without-mysql --with-tcp-wrappers --enable-client- only --enable-bat :info:configure Exit code: 1 :error:configure Failed to configure bacula, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_bacula/bacula/work/bacula-7.0.4/config.log :error:configure org.macports.configure for port bacula returned: configure failure: command execution failed :debug:configure Error code: NONE :debug:configure Backtrace: configure failure: command execution failed while executing "portconfigure::configure_main org.macports.configure" ("eval" body line 1) invoked from within "eval $procedure $targetname" :info:configure Warning: targets not executed for bacula: org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install :notice:configure Please see the log file for port bacula for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_bacula/bacula/main.log -- Ticket URL: <https://trac.macports.org/ticket/49203#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#49203: bacula 7.0.4_1 +client_only +console_bat does not build because it can't find Qt4 -------------------------+------------------------------ Reporter: gullevek@… | Owner: robertoschwald@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: bacula | -------------------------+------------------------------ Comment (by torsten.loehr@…): Same problem here. gullevek could you please tell us more about Your workaround. I changed the {{{configure}}}, but it keeps rolling back. -- Ticket URL: <https://trac.macports.org/ticket/49203#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#49203: bacula 7.0.4_1 +client_only +console_bat does not build because it can't find Qt4 -------------------------+------------------------------ Reporter: gullevek@… | Owner: robertoschwald@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: bacula | -------------------------+------------------------------ Comment (by robertoschwald@…): I look into it. I also want to remove bacula-bat to be generated when client-only is selected, as most of the time we need a pure bacula-fd client. If one needs the gui, he can additionally install bacula-gui (thats the plan). -- Ticket URL: <https://trac.macports.org/ticket/49203#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#49203: bacula 7.0.4_1 +client_only +console_bat does not build because it can't find Qt4 -------------------------+------------------------------ Reporter: gullevek@… | Owner: robertoschwald@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: bacula | -------------------------+------------------------------ Comment (by gullevek@…): Replying to [comment:5 robertoschwald@…]:
I look into it. I also want to remove bacula-bat to be generated when client-only is selected, as most of the time we need a pure bacula-fd client.
If one needs the gui, he can additionally install bacula-gui (thats the plan).
I just post the correct solution to this issue here if other people have the same problem (as it is still not fixed with port bacula 7.0.4) In the configure file search for "Unable to find Qt4 installation" and add the following two lines above the "abc=`$PKGCONFIG --atleast ...` part export QMAKE='/opt/local/libexec/qt4/bin/qmake' export PKG_CONFIG_PATH='/opt/local/libexec/qt4/lib/pkgconfig' Then you can run the normal build command in ports -- Ticket URL: <https://trac.macports.org/ticket/49203#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#49203: bacula 7.0.4_1 +client_only +console_bat does not build because it can't find Qt4 -------------------------+------------------------------ Reporter: gullevek@… | Owner: robertoschwald@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: bacula | -------------------------+------------------------------ Changes (by ryandesign@…): * cc: smccandlish@… (added) Comment: Has duplicate #50538. -- Ticket URL: <https://trac.macports.org/ticket/49203#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
#49203: bacula 7.0.4_1 +client_only +console_bat does not build because it can't find Qt4 -------------------------+------------------------------ Reporter: gullevek@… | Owner: robertoschwald@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: bacula | -------------------------+------------------------------ Comment (by m@…): So i pasted the 2 lines above the abc= ..... See: {{{ BAT_DIR= if test x$support_bat = xyes; then export QMAKE='/opt/local/libexec/qt4/bin/qmake' export PKG_CONFIG_PATH='/opt/local/libexec/qt4/lib/pkgconfig' abc=`$PKGCONFIG --atleast-version=4.2 QtGui` pkg=$? if test $pkg = 0; then BAT_DIR=src/qt-console else AC_MSG_ERROR(Unable to find Qt4 installation needed by bat) fi fi }}} But if i see the script PKG_CONFIG_PATH should be PKGCONFIG is this correct? -- Ticket URL: <https://trac.macports.org/ticket/49203#comment:8> MacPorts <https://www.macports.org/> Ports system for OS X
#49203: bacula 7.0.4_1 +client_only +console_bat does not build because it can't find Qt4 -------------------------+------------------------------ Reporter: gullevek@… | Owner: robertoschwald@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: bacula | -------------------------+------------------------------ Comment (by m@…): Finaly i found it. I used these commands to set te directorie to qy4 {{{ sudo cp -R /opt/local/libexec/qt4/lib/pkgconfig/ /opt/local/share/pkgconfig }}} and {{{ sudo ln -s /opt/local/libexec/qt4/bin/* /opt/local/bin }}} -- Ticket URL: <https://trac.macports.org/ticket/49203#comment:10> MacPorts <https://www.macports.org/> Ports system for OS X
#49203: bacula 7.0.4_1 +client_only +console_bat does not build because it can't find Qt4 -------------------------+------------------------------ Reporter: gullevek@… | Owner: robertoschwald@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: bacula | -------------------------+------------------------------ Comment (by robertoschwald@…):
But if i see the script PKG_CONFIG_PATH should be PKGCONFIG is this correct?
No. PGK_CONFIG_PATH is the env var for pkgconfig to find additional packages. [[BR]] [[BR]]
sudo cp -R /opt/local/libexec/qt4/lib/pkgconfig/ /opt/local/share/pkgconfig
Shouldn't be needed, as the PGK_CONFIG_PATH var is set correctly. I will investigate why qt4 packages are not found. -- Ticket URL: <https://trac.macports.org/ticket/49203#comment:11> MacPorts <https://www.macports.org/> Ports system for OS X
#49203: bacula 7.0.4_1 +client_only +console_bat does not build because it can't find Qt4 -------------------------+------------------------------ Reporter: gullevek@… | Owner: robertoschwald@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: bacula | -------------------------+------------------------------ Comment (by m@…): Its not the packeges that can't be found but a folder. See my previeuws comment. -- Ticket URL: <https://trac.macports.org/ticket/49203#comment:12> MacPorts <https://www.macports.org/> Ports system for OS X
#49203: bacula 7.0.4_1 +client_only +console_bat does not build because it can't find Qt4 -------------------------+------------------------------ Reporter: gullevek@… | Owner: robertoschwald@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: bacula | -------------------------+------------------------------ Comment (by robertoschwald@…): Attached are a patch file for qt4 configuration and a patch file for the Portfile (which bumps revision to 3). One with commit-rights needs to add the qt4 patch file to the files dir and patch the Portfile accordinghly to get fix this issue. I do not have commit rights and therefore will remove myself as maintainer, soon. -- Ticket URL: <https://trac.macports.org/ticket/49203#comment:13> MacPorts <https://www.macports.org/> Ports system for OS X
#49203: bacula 7.0.4_1 +client_only +console_bat does not build because it can't find Qt4 -------------------------+------------------------------ Reporter: gullevek@… | Owner: robertoschwald@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: bacula | -------------------------+------------------------------ Comment (by mf2k@…): You do not need to have commit rights to be a maintainer. If you remove yourself as maintainer, this port (like all unmaintained ports) will rarely ever get updates or fixes. -- Ticket URL: <https://trac.macports.org/ticket/49203#comment:14> MacPorts <https://www.macports.org/> Ports system for OS X
#49203: bacula 7.0.4_1 +client_only +console_bat does not build because it can't find Qt4 -------------------------+------------------------------ Reporter: gullevek@… | Owner: robertoschwald@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: bacula | -------------------------+------------------------------ Comment (by robertoschwald@…): Ok. But it is not funny at all to maintain ports if you do not have the rights to do so. I even could not close tickets which are e.g. duplicates of this one, like #51272. "Maintainer" to me means something different than this. Frank, could you please apply the attached patches so we can close this ticket? Thanks. -- Ticket URL: <https://trac.macports.org/ticket/49203#comment:15> MacPorts <https://www.macports.org/> Ports system for OS X
#49203: bacula 7.0.4_1 +client_only +console_bat does not build because it can't find Qt4 -------------------------+------------------------------ Reporter: gullevek@… | Owner: robertoschwald@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: bacula | -------------------------+------------------------------ Changes (by mf2k@…): * cc: helpdesk@… (added) Comment: Cc reporter of duplicate #51272. -- Ticket URL: <https://trac.macports.org/ticket/49203#comment:16> MacPorts <https://www.macports.org/> Ports system for OS X
#49203: bacula 7.0.4_1 +client_only +console_bat does not build because it can't find Qt4 -------------------------+------------------------------ Reporter: gullevek@… | Owner: robertoschwald@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: bacula | -------------------------+------------------------------ Comment (by fabrice.bacchella@…): Any progress ? -- Ticket URL: <https://trac.macports.org/ticket/49203#comment:17> MacPorts <https://www.macports.org/> Ports system for macOS
#49203: bacula 7.0.4_1 +client_only +console_bat does not build because it can't find Qt4 -------------------------+------------------------------ Reporter: gullevek@… | Owner: robertoschwald@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: fixed | Keywords: Port: bacula | -------------------------+------------------------------ Changes (by g5pw@…): * status: new => closed * resolution: => fixed Comment: Commited in r153697. Thank you for your submission, sorry it took so long. -- Ticket URL: <https://trac.macports.org/ticket/49203#comment:18> MacPorts <https://www.macports.org/> Ports system for the Mac operating system
participants (1)
-
MacPorts