Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal repo not being created #89

Closed
SJReese opened this issue Sep 23, 2024 · 3 comments
Closed

Internal repo not being created #89

SJReese opened this issue Sep 23, 2024 · 3 comments

Comments

@SJReese
Copy link

SJReese commented Sep 23, 2024

Greetings:

It appears that the changes in commit 0f5bf8f resulted in the local package repo not being created when using the default internal repo. I'm using ccm to build the ZFS arch packages. The package build process runs normally, but ccm fails when trying to populate the compiled package into /scratch/.biuldroot/root/repo. The error is:

==> Finished making: zfs-utils 2.2.4-1 (Mon Sep 23 08:38:46 2024)
----> Adding all packages in current dir to buildroot repo...
cp: cannot create regular file '/scratch/.buildroot/root/repo': Permission denied

and it happens because /scratch/.buildroot/root/repo doesn't exist, and the copy command is malformed because of that.

I initially tried to fix the issue by moving the code that set/fixed the permissions (lines 145 - 166) out of the trailing slash check to after REPO is set to the defaults. That fixed the immediate problem, but it caused other issues - specifically running 'ccm n' would fail because the REPO folder would be created during check_config and then the root folder would no longer be empty.

In the end, I put the code in create like it was before the change. I included the new permissions setting code there also. That duplicates the code, which isn't great either. Maybe you can come up with a better solution since you know more about how the code should be working.

PR to follow.

@fideliochan
Copy link

fideliochan commented Sep 29, 2024

@graysky2 I am having same error, installed ccm today via auracle clone and pkgctl build.
Here is the error that I got while was trying to install libeb pkg:

==> Leaving fakeroot environment.
==> Finished making: libeb 4.4.3-11 (Sun Sep 29 14:00:16 2024)
----> Adding all packages in current dir to buildroot repo...
cp: cannot create regular file '/scratch/.buildroot/root/repo': Permission denied

@graysky2
Copy link
Owner

@fideliochan - did you build from git or from v2.229? I just tagged v2.230 and updated the AUR package. I suspect it will work as expected.

@fideliochan
Copy link

fideliochan commented Sep 29, 2024

It was v2.229 I will try the latest one right now
6a0120a85dcdae970b0128776ff992970c-pi

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

No branches or pull requests

3 participants