Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 146564

Summary: quickpkg does not include directories
Product: Gentoo Linux Reporter: Doug Goldstein (RETIRED) <cardoe>
Component: New packagesAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 136244    
Attachments: make quickpkg include directories

Description Doug Goldstein (RETIRED) gentoo-dev 2006-09-06 08:06:41 UTC
quickpkg mysql on one box
emerge -k mysql on the other box
emerge --config mysql will fail.

Reason is /var/run/mysqld isn't owned by mysql:mysql. It's owned by root:root. It never chowns it. changing the permissions makes it start.

However it will still give a bunch of warning about not being started with --bin-log=${HOSTNAME}-log
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-09-06 08:38:30 UTC
Portage won't change permissions on directories that already exist. Delete it and try again.
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2006-09-06 15:12:05 UTC
Jakub... Don't be a tard. You know I was doing a fresh install on this box. 

The box NEVER had mysql on it until I did emerge -k mysql and emerge --config mysql.

It was a fresh from install box.
Comment 3 Alec Warner (RETIRED) archtester gentoo-dev Security 2006-09-06 15:21:07 UTC
PFT, attach the tarball or give me the perms of /var/run/mysqld in the tarball

Maybe quickpkg is tarballing before it's getting chowned, or untarring with wrong perms?  Who knows.  In either case attach plz.
Comment 4 Zac Medico gentoo-dev 2006-09-06 16:08:45 UTC
I've just tried to quickpkg mysql-5.0.24-r1 locally, and for some reason /var/run/mysqld wasn't included in the tbz2 even though it's listed in CONTENTS. So, something's wrong with quickpkg...
Comment 5 Zac Medico gentoo-dev 2006-09-06 22:04:25 UTC
Created attachment 96243 [details, diff]
make quickpkg include directories 

This patch makes quickpkg include directories.  Note that tar's --no-recursion option causes the directories to be selectively included without nessarily including their contents.
Comment 6 Zac Medico gentoo-dev 2006-09-07 11:02:09 UTC
This has been released in 2.1.1_rc1-r7.