Ticket #35093 (reopened defect)
mpkg / mdmg requires cleaning and reinstalling every time
| Reported by: | virgilg@… | Owned by: | macports-tickets@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | base | Version: | 2.1.1 |
| Keywords: | Cc: | egall@…, rogerdpack@… | |
| Port: |
Description (last modified by ryandesign@…) (diff)
root@machine:~# port pkg mysql5-server +universal
---> Computing dependencies for mysql5-server
---> Creating pkg for mysql5-server-5.1.63
---> Package for mysql5-server-5.1.63 is up-to-date
# port mpkg mysql5-server +universal
---> Computing dependencies for mysql5-server
---> Creating pkg for mysql5-server-5.1.63
---> Package for mysql5-server-5.1.63 is up-to-date
---> Computing dependencies for mysql5
---> Creating pkg for mysql5-5.1.63
---> Package for mysql5-5.1.63 is up-to-date
---> Creating pkg for ncurses-5.9
---> Package for ncurses-5.9 is up-to-date
Error: Requested variants "" do not match original selection "+universal".
Please use the same variants again, perform 'port clean openssl' or specify the force option (-f).
Error: org.macports.mpkg for port mysql5-server returned: could not set effective gid to 505
Please see the log file for port mysql5-server for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mysql5-server/mysql5-server/main.log
To report a bug, follow the instructions in the guide:
http://guide.macports.org/#project.tickets
Error: Processing of port mysql5-server failed
Attachments
Change History
comment:2 Changed 11 months ago by virgilg@…
# port clean -f <specified-port> && port install <specified-port> +universal
got me through this. The problem is that moments before I specified:
# port mpkg mysql5 +universal
which requires most of the same dependencies anyway; that worked and metapackaged the result just fine. mysql5-server did not.
comment:3 Changed 11 months ago by ryandesign@…
- Status changed from new to closed
- Resolution set to invalid
- Description modified (diff)
- Summary changed from Cannot mpkg mysql4-server to Cannot mpkg mysql5-server
Please use WikiFormatting when writing in Trac.
Single-letter flags like -f had no effect unless placed immediately after the word port. The -f flag doesn't do anything when cleaning.
I don't see anything reported here that is necessarily a bug in MacPorts. The bug you showed in the ticket description was that you had not cleaned openssl before trying again. Any time any port fails, cleaning and trying again should be the first thing you try.
comment:4 Changed 11 months ago by virgilg@…
- Status changed from closed to reopened
- Resolution invalid deleted
That's all very true, but then why do I have to clean openssl, zlib, ncurses and a bunch of others every time I make a metapackage containing them? I made mysql5 +universal, mysql5-server +universal and cfengine +universal in that order and every time I made the last two I had to clean and re-install (not port pkg, but port install) the above-mentioned packages.


Referenced log while port mpkg'ing mysql