Skip to content

Rename the "shared" to "share" - #112

Merged
pbuncic merged 1 commit into
bitsorg:mainfrom
akritkbehera:rename-shared-arch-to-share
Sep 10, 2026
Merged

pbuncic merged 1 commit into
bitsorg:mainfrom
akritkbehera:rename-shared-arch-to-share

Conversation

@akritkbehera

Copy link
Copy Markdown
Collaborator

Does it as it says. No functional changes.

SHARED_ARCH is the value substituted for the real build architecture in
every path component of an architecture-independent package: install dir,
tarball name, TARS store, SPECS dir and $PKGPATH. Rename it to "share" and
propagate the new spelling through the paths, docstrings and warnings that
spelled it out literally.

generate_initdotsh() embedded the literal directory name for shared deps
rather than the runtime arch prefix; it now interpolates SHARED_ARCH so the
constant stays the single source of truth.

test_reconstruct_layout built its expected tarball name and store-relative
symlink target from a hardcoded "shared" while taking the directory from
SHARED_ARCH, so it broke on the rename. It now derives all three from the
constant.
@pbuncic

pbuncic commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

In principle this is fine with me to rename shared -> share but there is a lot going on in consolidation branch that changed the same two files your patch touches so, the patch does not apply cleanly. I'll make equivalent change in consolidation which I expect to merge into main and tag with new version. It is still work in progress but there are some changes to CLI that might hurt you so, you better check...

Thanks,
Predrag

@pbuncic
pbuncic merged commit 29738cf into bitsorg:main Sep 10, 2026
13 checks passed
pbuncic added a commit that referenced this pull request Sep 10, 2026
Mirrors PR #112 onto consolidation, where SHARED_ARCH lives in arch.py.
initdotsh interpolates the constant; clean.py follows it and keeps a
legacy shared/ sweep. CVMFS template keys left as 'shared' on purpose.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants