RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 985336 - split prefix macro in two parts
Summary: split prefix macro in two parts
Keywords:
Status: CLOSED DUPLICATE of bug 985233
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: scl-utils
Version: 6.5
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: ---
Assignee: Jan Zeleny
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks: 985233
TreeView+ depends on / blocked
 
Reported: 2013-07-17 10:11 UTC by Marcela Mašláňová
Modified: 2013-11-14 14:39 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 985233
Environment:
Last Closed: 2013-11-14 14:39:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Comment 3 Marcela Mašláňová 2013-10-29 12:40:09 UTC
We'd like to define vendor in separate macro. Current definition of prefix =  /opt/rh is not very nice.

We also would like to see adding another directory into /opt, so more vendors could install same collection, for example
/opt/vendor/user/ruby193
/opt/vendor/user2/ruby193

Comment 4 Jan Zeleny 2013-10-30 11:39:00 UTC
(In reply to Marcela Mašláňová from comment #3)
> We'd like to define vendor in separate macro. Current definition of prefix =
> /opt/rh is not very nice.

I still don't get what are you hoping to achieve with this. Right now to redefine the scl prefix, you just need to redefine one macro: %_scl_prefix. With this change, you will *still* need to redefine one macro, it will just be called differently: %_scl_vendor. Please specify what exactly are you hoping to achieve here that is not achievable already, otherwise I will close the bug again!

> We also would like to see adding another directory into /opt, so more
> vendors could install same collection, for example
> /opt/vendor/user/ruby193
> /opt/vendor/user2/ruby193

This is completely different request and not exactly a simple one, as it breaks a substantial amount of both backward and forward compatibility.

Comment 5 Bohuslav "Slavek" Kabrda 2013-10-30 12:12:47 UTC
(In reply to Jan Zeleny from comment #4)
> (In reply to Marcela Mašláňová from comment #3)
> > We'd like to define vendor in separate macro. Current definition of prefix =
> > /opt/rh is not very nice.
> 
> I still don't get what are you hoping to achieve with this. Right now to
> redefine the scl prefix, you just need to redefine one macro: %_scl_prefix.
> With this change, you will *still* need to redefine one macro, it will just
> be called differently: %_scl_vendor. Please specify what exactly are you
> hoping to achieve here that is not achievable already, otherwise I will
> close the bug again!
> 

The thing is, that we don't want to redefine the "/opt" part everywhere, we just want to redefine the vendor. By having only %_scl_prefix, you effectively have to define the path and the vendor in one place together. E.g. you can't for example have buildroot that defines %scl_path macro and an SCL metapackage that defines it's own vendor, while not having to care what the path is.

> > We also would like to see adding another directory into /opt, so more
> > vendors could install same collection, for example
> > /opt/vendor/user/ruby193
> > /opt/vendor/user2/ruby193
> 
> This is completely different request and not exactly a simple one, as it
> breaks a substantial amount of both backward and forward compatibility.

I guess this would be better solved by just using user_ruby193 for collection name.

Comment 6 Miroslav Suchý 2013-10-30 12:30:17 UTC
I thought that the reason was little different:

We want to allow user to build their own collection (likely in Copr and scl.org) and since two users can very likely choose the same name (eg. ruby193) we would need to difference by vendor. e.g:
 /opt/msuchy/ruby193
 /opt/jzeleny/ruby193

But if we want to take it seriously we have to register all path under /opt. And this is impossible. Therefore we need something like:

 /opt/scl.org/msuchy/ruby193
 /opt/scl.org/jzeleny/ruby193

Note: this is not goal of this BZ, but spliting the prefix into two parts seems to be required step on this path.

Comment 7 Jan Zeleny 2013-10-30 12:42:44 UTC
(In reply to Bohuslav "Slavek" Kabrda from comment #5)
> (In reply to Jan Zeleny from comment #4)
> > (In reply to Marcela Mašláňová from comment #3)
> > > We'd like to define vendor in separate macro. Current definition of prefix =
> > > /opt/rh is not very nice.
> > 
> > I still don't get what are you hoping to achieve with this. Right now to
> > redefine the scl prefix, you just need to redefine one macro: %_scl_prefix.
> > With this change, you will *still* need to redefine one macro, it will just
> > be called differently: %_scl_vendor. Please specify what exactly are you
> > hoping to achieve here that is not achievable already, otherwise I will
> > close the bug again!
> > 
> 
> The thing is, that we don't want to redefine the "/opt" part everywhere, we
> just want to redefine the vendor. By having only %_scl_prefix, you
> effectively have to define the path and the vendor in one place together.
> E.g. you can't for example have buildroot that defines %scl_path macro and
> an SCL metapackage that defines it's own vendor, while not having to care
> what the path is.

The last time I was on call with FPC, I got the opposite impression, they want to be able to redefine both the /opt and vendor part. Anyway, I think I understand your use case better thanks to the example.

> > > We also would like to see adding another directory into /opt, so more
> > > vendors could install same collection, for example
> > > /opt/vendor/user/ruby193
> > > /opt/vendor/user2/ruby193
> > 
> > This is completely different request and not exactly a simple one, as it
> > breaks a substantial amount of both backward and forward compatibility.
> 
> I guess this would be better solved by just using user_ruby193 for
> collection name.

Agreed. Not exactly pretty but if we want to avoid rebasing scl-utils in all existing channels or risking scl crashes, I don't think we have a choice.

Comment 8 Jan Zeleny 2013-11-14 14:39:18 UTC

*** This bug has been marked as a duplicate of bug 985233 ***


Note You need to log in before you can comment on or make changes to this bug.