-
Notifications
You must be signed in to change notification settings - Fork 1.2k
docs: Added -rfakeroot to dpkg-buildpackage and simplified #1366
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
Conversation
|
Thank you for fixing this. Much appreciated. |
docs/src/code/building-linuxcnc.adoc
Outdated
|
|
||
| `--help`:: | ||
|
|
||
| presets a very short summary of extra options |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo - should be "Presents".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. It unfortunately took me another iteration to recognize that the sentence should start with a capital letter. Also fixed for the following section.
SebKuzminsky
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo.
|
The current (ie before this PR) build instructions work for me without |
|
Others reported the same and I was able to create the debs without -rfakeroot on my chromebook that had not been building the debs previously. I had been building the debs on a regular basis on Debian 11 on my production machine for about a month until it failed with some kind of permissions issue when I raised issue #1363. I suspect the issue may have been caused by a conflict with permissions on files that had been created in a previous build. |
|
I wonder if its because my user and root have different passwords? |
That shouldn't matter. |
|
I haven't noticed any issues without -rfakeroot either. |
|
That is weird. Could it be the version of Debian that makes the difference? I am building on Debian unstable, which should be mostly equivalent to bookworm (version 12). I am not sure about what is the right thing to do, but since -rfakeroot with uttermost confidence does not do any harm (that is how packages were always built not too long ago) and with just a bit less of a confidence someone else will go through the same pain like @rodw-au , I suggest to just add it. |
|
@petterreinholdtsen , does this ring a bell? |
|
I build on both MX-Linux19 (a Debian10 spinoff) and MX-Linux21 (a Debian11 spinoff) |
|
[Steffen Möller]
@petterreinholdtsen , does this ring a bell?
I suspect the handing of Rules-Requires-Root, which is fairly recent in
Debian, might be related. Personally I use 'debuild' from devscripts,
which insert fakeroot when needed, so I never have to add fakeroot
settings manually.
…--
Happy hacking
Petter Reinholdtsen
|
@SebKuzminsky , I suggest to then go for the -rfakeroot. |
|
It's a bit hard to tell from the bug report since it does not specify which git commits built and which failed, but my hunch is that @rodw-au 's build problem stems not from problems with the build instructions or with the contents of the git repo, but from root-owned files being accidentally created and later not being able to remove/clean those files as a non-root user. I don't want to train our users to add I do like the updates to the build docs that simplify running With that change (and maybe a change to the title of the PR) I think it will be ready to merge. |
|
Note, this patch is partly made obsolete by #1835 . I strongly recommend rewriting the documentation to use 'debuild' instead of introducing -rfakeroot, as it is a more high level tool doing more quality checking automatically. |
|
Too outdated to chase this all up. |
This addresses (at least as a first shot) the issues @rodw-au experienced in #1363 . Many thanks to Rod for his report.