Bug 143746
Summary: | Create buildmeister user for mortal RPM packaging | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Kenneth Porter <shiva> |
Component: | rpm | Assignee: | Jeff Johnson <jbj> |
Status: | CLOSED WONTFIX | QA Contact: | Mike McLean <mikem> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 2 | CC: | mattdm, nobody+pnasrat |
Target Milestone: | --- | Keywords: | FutureFeature |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Enhancement | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2004-12-29 06:04:57 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Kenneth Porter
2004-12-26 18:36:29 UTC
"buildmeister"? :) I don't think a special account should be used (or needed). What if multiple people are building RPMs at the same time on the same system? Instead, I think it'd be nicer to have this in the default macros: %_topdir %(echo $HOME)/rpmbuild %_sourcedir %{_topdir}/%{name}-%{version} %_specdir %{_sourcedir} %_rpmdir %{_topdir}/RPMS %_srcrpmdir %{_topdir}/SRPMS %_builddir %{_topdir}/BUILD %_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm %_tmppath %(echo $HOME)/tmp I used "buildmeister" only because this seems to be what Red Hat is using internally, as evidenced by the ownership in some tarballs. This solution should be adequate for single-user workstations. For multi-user servers, presumably the admin is knowledgable enough to change the default to something more appropriate. Or a commented-out entry can be include for him, along with a script to create the canonical directory structure for each user. (I believe the old cpanflute was able to create the directory tree and initial .rpmmacros file.) The only required change in your list appears to be _topdir. The others should already be present in some reasonable form in /usr/lib/rpm/macros. Although it's no longer really a requirement, I grate at seeing default accounts with usernames over 8 characters..... rpm-build cannot establish a "buildmeister" conevntion by itself. There is also no reason to dictatate how packages are built, either by root, "buildmeister" or any other account that anyone finds conevenient. I agree. However, the current rpm-build package _does_ have a default convention -- building packages as root in /usr/src/redhat. I understand not doing anything new and fancy, but is there a reason to continue doing that? Agreed. The fact that /usr/lib/rpm/macros points at /usr/src/redhat and that directory is owned by root establishes a defacto policy of encouraging users to package as root. |