Opened 12 years ago

Last modified 8 years ago

#38942 new defect

zlib @1.2.8: mpkg failure

Reported by: camgian@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: landonf (Landon Fuller), blair (Blair Zajac)
Port: zlib

Description (last modified by larryv (Lawrence Velázquez))

I am attempting to build a .dmg to install bacula 5.2.13 on multiple machine within the company.

I have done multiple cleans and remove the data in the build directory

seems to fail a

--->  Fetching archive for zlib
--->  Unpacking tbz2 archive for zlib 1.2.7_0
--->  Creating pkg for zlib-1.2.7
Error: org.macports.mpkg for port bacula returned: command execution failed
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
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port bacula failed

tail of main.log

:debug:pkg Starting logging for zlib
:info:pkg cp: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_bacula/bacula/work/bacula-5.2.13-component.pkg: No such file or directory
:info:pkg Command failed: cp -PR /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_bacula/bacula/work/bacula-5.2.13-component.pkg /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_bacula/bacula/work/mpkg_packages
:info:pkg Exit code: 1
:error:pkg org.macports.mpkg for port bacula returned: command execution failed
:debug:pkg Error code: CHILDSTATUS 19166 1
:debug:pkg Backtrace: command execution failed
    while executing
"system "cp -PR ${pkgpath} ${packages_path}""
    (procedure "package_mpkg" line 43)
    invoked from within
"package_mpkg $subport $version $revision"
    (procedure "portmpkg::mpkg_main" line 9)
    invoked from within
"$procedure $targetname"
:info:pkg Warning: targets not executed for bacula: org.macports.mpkg

Attaching main.log for reference.

Attachments (3)

main.log (59.5 KB) - added by camgian@… 12 years ago.
port mpkg bacula main log file
main-attempt-suggested-blair.log (301.7 KB) - added by camgian@… 12 years ago.
bacula_5.2.13_mpkg_ok_robertoschwald.txt (2.4 MB) - added by robertoschwald (Robert Oschwald) 12 years ago.
bacula build log for mpkg

Change History (23)

Changed 12 years ago by camgian@…

Attachment: main.log added

port mpkg bacula main log file

comment:1 Changed 12 years ago by camgian@…

More Info:

anns-imac:~ root# uname -a Darwin anns-imac.ms.camgian.com 12.3.0 Darwin Kernel Version 12.3.0: Sun Jan 6 22:37:10 PST 2013; root:xnu-2050.22.13~1/RELEASE_X86_64 x86_64 anns-imac:~ root# anns-imac:~ root# xcodebuild -version Xcode 4.6.2 Build version 4H1003 anns-imac:~ root# anns-imac:~ root# port installed bacula The following ports are currently installed:

bacula @5.2.13_0+client_only+console_bat (active)

anns-imac:~ root# anns-imac:~ root# port -d installed bacula The following ports are currently installed:

bacula @5.2.13_0+client_only+console_bat (active) platform='darwin 12' archs='x86_64'

anns-imac:~ root#

comment:2 Changed 12 years ago by larryv (Lawrence Velázquez)

Cc: robertoschwald@… added; camgian@… removed
Description: modified (diff)
Keywords: bacula-5.2.13 removed
Owner: changed from macports-tickets@… to macsforever2000@…
Port: bacula added
Summary: port mpkg bacula 5.2.13 failsbacula @5.2.13: mpkg failure

Thanks. In the future, please Cc relevant port maintainers and use WikiFormatting in your ticket description.

comment:3 Changed 12 years ago by mf2k (Frank Schima)

It looks like a zlib issue? I have never tried to make a mpkg out of the bacula port and I have no idea how to solve this issue.

comment:4 Changed 12 years ago by larryv (Lawrence Velázquez)

Cc: blair@… added

Perhaps Blair could provide some insight.

comment:5 Changed 12 years ago by blair (Blair Zajac)

I find the only guaranteed way to make mpkgs is

  • port -v uninstall installed
  • cd /opt/local/var/macports/build
  • rm -fr *
  • port -v sync
  • port -v mpkg bacula

and then reinstall all your ports after your done.

Last edited 12 years ago by blair (Blair Zajac) (previous) (diff)

comment:6 Changed 12 years ago by camgian@…

Thanks Blair I thought this was going to work but it seems to choke at about the same place actually.

--->  Unpacking tbz2 archive for zlib 1.2.7_0
--->  Extracting zlib-1.2.7_0.darwin_12.x86_64.tbz2
x ./
x ./+COMMENT
x ./+CONTENTS
x ./+DESC
x ./+PORTFILE
x ./+STATE
x ./opt/
x ./opt/local/
x ./opt/local/include/
x ./opt/local/lib/
x ./opt/local/share/
x ./opt/local/share/doc/
x ./opt/local/share/examples/
x ./opt/local/share/man/
x ./opt/local/share/man/man3/
x ./opt/local/share/man/man3/zlib.3.gz
x ./opt/local/share/examples/zlib/
x ./opt/local/share/examples/zlib/enough.c
x ./opt/local/share/examples/zlib/fitblk.c
x ./opt/local/share/examples/zlib/gun.c
x ./opt/local/share/examples/zlib/gzappend.c
x ./opt/local/share/examples/zlib/gzjoin.c
x ./opt/local/share/examples/zlib/gzlog.c
x ./opt/local/share/examples/zlib/gzlog.h
x ./opt/local/share/examples/zlib/README.examples
x ./opt/local/share/examples/zlib/zlib_how.html
x ./opt/local/share/examples/zlib/zpipe.c
x ./opt/local/share/examples/zlib/zran.c
x ./opt/local/share/doc/zlib/
x ./opt/local/share/doc/zlib/ChangeLog
x ./opt/local/share/doc/zlib/FAQ
x ./opt/local/share/doc/zlib/README
x ./opt/local/share/doc/zlib/zlib.3.pdf
x ./opt/local/lib/libz.1.2.7.dylib
x ./opt/local/lib/libz.1.dylib
x ./opt/local/lib/libz.a
x ./opt/local/lib/libz.dylib
x ./opt/local/lib/pkgconfig/
x ./opt/local/lib/pkgconfig/zlib.pc
x ./opt/local/include/zconf.h
x ./opt/local/include/zlib.h
--->  Archive zlib-1.2.7_0.darwin_12.x86_64.tbz2 unpacked
--->  Creating pkg for zlib-1.2.7
cp: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_bacula/bacula/work/bacula-5.2.13-component.pkg: No such file or directory
Command failed: cp -PR /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_bacula/bacula/work/bacula-5.2.13-component.pkg /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_bacula/bacula/work/mpkg_packages
Exit code: 1
Error: org.macports.mpkg for port bacula returned: command execution failed
Warning: targets not executed for bacula: org.macports.mpkg
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
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port bacula failed

Attaching main.log as main-attempt-suggested-blair.log

Changed 12 years ago by camgian@…

comment:7 Changed 12 years ago by robertoschwald (Robert Oschwald)

Built mpkgs of Bacula before (5.0.3) which worked.
Now tried it out here myself with 5.2.13.

Same OS and xcode as camgian, MacPorts 2.1.3. mpkg build works ootb.

I attach the full build log for reference.

Changed 12 years ago by robertoschwald (Robert Oschwald)

bacula build log for mpkg

comment:8 Changed 12 years ago by camgian@…

Thanks Robert

My Xcode and Tools should be out of the box as well I just installed them new yesterday

Was able to install bacula, configure the client, add it to my bacula server and connect to it without much effort....

Just want to avoid downloading XCode and installing it on the 7 iMacs we have.

comment:9 Changed 12 years ago by robertoschwald (Robert Oschwald)

Absolutely valid request. Have done that many times before for the same reason. I assume you checked the ususal things, like port selfupdate. On my test for you I also removed bacula from the system before the mpkg build.

comment:10 Changed 12 years ago by camgian@…

Robert,

I had done the selfupdate and gone through the uninstall installed route that Blair suggested above.

This is what I did just now:

   86  port -v uninstall installed
   87  cd /opt/local/var/macports/build/
   88  ls
   89  rm -rf *
   90  ls
   91  cd ..
   92  ls
   93  port -v sync
   94  port -v dmg bacula

Command Completes !

anns-imac:work root# pwd
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_bacula/bacula/work
anns-imac:work root# ls -alrt
total 4472
drwxr-xr-x   3 macports  admin      102 Apr 26 15:32 ..
drwxr-xr-x   3 macports  admin      102 Apr 26 15:43 .home
drwxr-xr-x  38 macports  admin     1292 Apr 26 15:43 bacula-5.2.13
-rw-r--r--   1 macports  admin   658263 Apr 26 15:44 .CC_PRINT_OPTIONS
drwxr-xr-x   2 macports  admin       68 Apr 26 15:44 pkg_scripts
drwxr-xr-x   3 macports  admin      102 Apr 26 15:44 pkg_resources
drwxr-xr-x   5 root      wheel      170 Apr 26 15:44 destroot
drwxr-xr-x   3 root      admin      102 Apr 26 15:44 bacula-5.2.13.pkg
-rw-r--r--   1 macports  admin      753 Apr 26 15:44 Distribution
-rw-r--r--   1 macports  admin      365 Apr 26 15:44 .macports.bacula.state
-rw-r--r--@  1 root      admin  1618439 Apr 26 15:44 bacula-5.2.13.dmg

RSYNC'd the .dmg over to another iMac and installed it,

But when I try to start bacula-fd looks like I have a wrapper problem.

garys-imac:~ camgian$ sudo /opt/local/sbin/bconsole 
Password:
dyld: Library not loaded: /opt/local/lib/libwrap.7.dylib
  Referenced from: /opt/local/sbin/bconsole
  Reason: image not found
garys-imac:~ camgian$ sudo /opt/local/sbin/bacula-fd -tf /opt/local/etc/bacula/bacula-fd.conf
dyld: Library not loaded: /opt/local/lib/libwrap.7.dylib
  Referenced from: /opt/local/sbin/bacula-fd
  Reason: image not found
garys-imac:~ camgian$ 


comment:11 Changed 12 years ago by camgian@…

In another attempt I tried to go with

port -v mdmg bacula which seems to fail at the zlib point as the mpkg did.

comment:12 Changed 12 years ago by mf2k (Frank Schima)

What happens if you try to make a dmg of just zlib?

comment:13 Changed 12 years ago by camgian@…

Does not appear to give me an error on DMG Creation

anns-imac:build root# pwd
/opt/local/var/macports/build
anns-imac:build root# port -v dmg zlib
--->  Fetching archive for zlib
--->  Unpacking tbz2 archive for zlib 1.2.7_0
--->  Extracting zlib-1.2.7_0.darwin_12.x86_64.tbz2
x ./
x ./+COMMENT
x ./+CONTENTS
x ./+DESC
x ./+PORTFILE
x ./+STATE
x ./opt/
x ./opt/local/
x ./opt/local/include/
x ./opt/local/lib/
x ./opt/local/share/
x ./opt/local/share/doc/
x ./opt/local/share/examples/
x ./opt/local/share/man/
x ./opt/local/share/man/man3/
x ./opt/local/share/man/man3/zlib.3.gz
x ./opt/local/share/examples/zlib/
x ./opt/local/share/examples/zlib/enough.c
x ./opt/local/share/examples/zlib/fitblk.c
x ./opt/local/share/examples/zlib/gun.c
x ./opt/local/share/examples/zlib/gzappend.c
x ./opt/local/share/examples/zlib/gzjoin.c
x ./opt/local/share/examples/zlib/gzlog.c
x ./opt/local/share/examples/zlib/gzlog.h
x ./opt/local/share/examples/zlib/README.examples
x ./opt/local/share/examples/zlib/zlib_how.html
x ./opt/local/share/examples/zlib/zpipe.c
x ./opt/local/share/examples/zlib/zran.c
x ./opt/local/share/doc/zlib/
x ./opt/local/share/doc/zlib/ChangeLog
x ./opt/local/share/doc/zlib/FAQ
x ./opt/local/share/doc/zlib/README
x ./opt/local/share/doc/zlib/zlib.3.pdf
x ./opt/local/lib/libz.1.2.7.dylib
x ./opt/local/lib/libz.1.dylib
x ./opt/local/lib/libz.a
x ./opt/local/lib/libz.dylib
x ./opt/local/lib/pkgconfig/
x ./opt/local/lib/pkgconfig/zlib.pc
x ./opt/local/include/zconf.h
x ./opt/local/include/zlib.h
--->  Archive zlib-1.2.7_0.darwin_12.x86_64.tbz2 unpacked
--->  Creating pkg for zlib-1.2.7
--->  Creating disk image for zlib-1.2.7
anns-imac:build root# 

comment:14 Changed 12 years ago by camgian@…

It does fail with the COPY Command when you try to create an mpkg for zlib

anns-imac:build root# port -v mdmg zlib
--->  Creating pkg for zlib-1.2.7
--->  Package for zlib-1.2.7 is up-to-date
cp: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_zlib/zlib/work/zlib-1.2.7-component.pkg: No such file or directory
Command failed: cp -PR /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_zlib/zlib/work/zlib-1.2.7-component.pkg /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_zlib/zlib/work/mpkg_packages
Exit code: 1
Error: org.macports.mpkg for port zlib returned: command execution failed
Warning: targets not executed for zlib: org.macports.mdmg org.macports.mpkg
Please see the log file for port zlib for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_zlib/zlib/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port zlib failed



anns-imac:build root# tail -n 25 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_zlib/zlib/main.log
:debug:mpkg Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/archivers/zlib
:debug:mpkg OS darwin/12.3.0 (Mac OS X 10.8) arch i386
:debug:mpkg org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
:debug:mpkg org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
:debug:mpkg org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
:debug:mpkg Using group file /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/group/xcodeversion-1.0.tcl
:debug:mpkg adding the default universal variant
:debug:mpkg Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf
:info:mpkg cp: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_zlib/zlib/work/zlib-1.2.7-component.pkg: No such file or directory
:info:mpkg Command failed: cp -PR /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_zlib/zlib/work/zlib-1.2.7-component.pkg /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_zlib/zlib/work/mpkg_packages
:info:mpkg Exit code: 1
:error:mpkg org.macports.mpkg for port zlib returned: command execution failed
:debug:mpkg Error code: CHILDSTATUS 8362 1
:debug:mpkg Backtrace: command execution failed
    while executing
"system "cp -PR ${pkgpath} ${packages_path}""
    (procedure "package_mpkg" line 43)
    invoked from within
"package_mpkg $subport $version $revision"
    (procedure "portmpkg::mpkg_main" line 9)
    invoked from within
"$procedure $targetname"
:info:mpkg Warning: targets not executed for zlib: org.macports.mdmg org.macports.mpkg
:notice:mpkg Please see the log file for port zlib for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_zlib/zlib/main.log
anns-imac:build root# 

comment:15 Changed 11 years ago by robertoschwald (Robert Oschwald)

Any news on this camgian?

It seems there is something wrong in your Ports file tree, as it works flawlessly here. Tested several times.

comment:16 Changed 11 years ago by mf2k (Frank Schima)

Owner: changed from macsforever2000@… to mf2k@…
Status: newassigned

comment:17 Changed 10 years ago by mf2k (Frank Schima)

Cc: landonf@… added; robertoschwald@… removed
Owner: changed from mf2k@… to ryandesign@…
Port: zlib added; bacula removed
Status: assignednew

I'm calling this a zlib problem because that's where this issue occurs for me. Arguably this could be a base problem.

$ sudo port mpkg zlib
Warning: PackageMaker.app not found; you may need to install it or set packagemaker_path in macports.conf
--->  Creating pkg for zlib version 0_1.2.8_0 at /opt/local/var/macports/build/_opt_mports_trunk_dports_archivers_zlib/zlib/work/zlib-1.2.8.pkg
Error: Failed to mpkg zlib: command execution failed
Error: See /opt/local/var/macports/logs/_opt_mports_trunk_dports_archivers_zlib/zlib/main.log for details.
Error: Follow http://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port zlib failed

comment:17 Changed 10 years ago by mf2k (Frank Schima)

Cc: landonf@… added; robertoschwald@… removed
Owner: changed from mf2k@… to ryandesign@…
Port: zlib added; bacula removed
Status: assignednew

I'm calling this a zlib problem because that's where this issue occurs for me. Arguably this could be a base problem.

$ sudo port mpkg zlib
Warning: PackageMaker.app not found; you may need to install it or set packagemaker_path in macports.conf
--->  Creating pkg for zlib version 0_1.2.8_0 at /opt/local/var/macports/build/_opt_mports_trunk_dports_archivers_zlib/zlib/work/zlib-1.2.8.pkg
Error: Failed to mpkg zlib: command execution failed
Error: See /opt/local/var/macports/logs/_opt_mports_trunk_dports_archivers_zlib/zlib/main.log for details.
Error: Follow http://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port zlib failed

comment:18 Changed 10 years ago by mf2k (Frank Schima)

Summary: bacula @5.2.13: mpkg failurezlib @1.2.8: mpkg failure

comment:19 in reply to:  18 Changed 8 years ago by eduo@…

Replying to mf2k@…: Replying to mf2k@…:

Was this ever solved? I see scripts around to build bacula ( like https://gist.github.com/robertoschwald/e404372e4e6b13cfe20b ) but zlib fails when building an mpkg / mdmg package for Samba3. I can't find more references.

Note: See TracTickets for help on using tickets.