| Summary: | logrotate default gzip path is usually wrong | ||
|---|---|---|---|
| Product: | buildroot | Reporter: | Henrik Juul Pedersen <hjp> |
| Component: | Other | Assignee: | unassigned |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | CC: | buildroot, hjp |
| Priority: | P5 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Host: | Target: | ||
| Build: | |||
|
Description
Henrik Juul Pedersen
2015-01-06 13:48:41 UTC
After looking closer into the LSB and FSH, it seems that /bin is actually still used by the standard, and it states: The following programs, or symbolic links to programs, must be in /bin if the corresponding subsystem is installed: ... gzip The GNU compression utility (optional) gunzip The GNU uncompression utility (optional) ... So I guess that only looking for gzip in /bin/gzip is correct according to the standard, and the real issue is why no symlink exist in /bin/ for the two programs. I'll look into this, and possibly file another bug on the subject. I've never seen anyone close their own bug as invalid so fast :) Keep it open, it's actually valid, but you missed a few details i think. If you use busybox, it's gzip/gunzip is properly installed to /bin, so i'm assuming you're not using busybox at all (or disabled gzip in it) and using "big fat" gzip which installs into /usr. So the solution would be to make the gzip package install into / rather than /usr. I'll cook a patch and send it to the list soon. Great!, thanks, I've just concluded that as well - that busybox installs it correctly into /bin, and that gzip is the culprit (actually our system has both /bin/gunzip from busybox, and /usr/bin/gunzip from the gzip package - so some cleaning up is needed). I seems like it can be fixed in the gzip.mk file quite easily? Best regards, Henrik Just testet it quickly (havent have time to boot my target with it yet), but it looks good! :) GZIP_CONF_OPTS = --exec-prefix=/ should be: GZIP_CONF_OPT = --exec-prefix=/ though, and the slash can be entirely omitted. Good work! thanks! (In reply to comment #5) > should be: > GZIP_CONF_OPT = --exec-prefix=/ Not in recent Buildroot versions. GZIP_CONF_OPTS is now the right variable. I've applied Gustavo's patch, as http://git.buildroot.net/buildroot/commit/?id=09d6597cb5ab326097533cd4be7b9764b960c930, so I'm closing this bug. Thanks Henrik and Gustavo! |