-
Notifications
You must be signed in to change notification settings - Fork 47
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
Installing files in a pacman fakeroot environment fails without access to '/usr/local' #17
Comments
This looks good to me and successfully builds locally. Go ahead and open a pull request and I can merge. |
That's why I opened the issue. I know it breaks the workflow, but I prefer not doing pull requests if I don't have to. |
Ok. I'll make the changes. Thanks for doing this. |
I noticed that you reverted the change. Was there some sort of issue? |
Ah yes I was going to ping you about this soon. The package builds with the patch so long as I don't change the Makefile. Making the changes here cause the build to fail, however. |
I'll keep the patch upstream in the AUR for now. This'll be on my #TODO when the issue occurs again. |
Hi! Trying to make a package for crux but the problem is the same, I can't use the fakeroot to build the package and the patch is not working... Is possible to change the make file to use fakeroot? |
@jolupa The patch I have above worked for JLErvin for a little while, but had to go back to his previous version because there were build errors. The patch above suggests using an environment variable during build, in which you set the fakeroot to the current folder. In your PKGBUILD's |
@FlashDaggerX Oh! thank you that worked! |
@jolupa if the included makefile were like the one that @FlashDaggerX included above, does the build work? |
@JLErvin Yeah! it worked perfectly... In a few minutes I will try it to see if it works! |
Ok I'll push a commit that changes the default Makefile to the one above. I believe that the patch breaks if we use the new makefile instead of the old one. Once I push, can you remove the patch? @FlashDaggerX |
Will do. Something is bothering me though, because this wasn't happening a few weeks ago. I can't find any significant changes to your makefile, so something must've changed on Arch's side. |
Not relevant in current master (83dfb3d), will open once it occurs again. |
The package in the AUR fails to build because the
Makefile
tries to install it in the real filesystem root. When building pacman packages, a fakeroot is created so the files owned by the package can be placed in the filesystem properly.I pushed a patch upstream to the AUR so the package builds properly. Here's the patch currently in upstream:
The text was updated successfully, but these errors were encountered: