Skip to content

Conversation

@smoe
Copy link
Collaborator

@smoe smoe commented Nov 10, 2021

This addresses (at least as a first shot) the issues @rodw-au experienced in #1363 . Many thanks to Rod for his report.

@rodw-au
Copy link
Contributor

rodw-au commented Nov 10, 2021

Thank you for fixing this. Much appreciated.


`--help`::

presets a very short summary of extra options
Copy link
Collaborator

@SebKuzminsky SebKuzminsky Nov 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo - should be "Presents".

Copy link
Collaborator Author

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.

Copy link
Collaborator

@SebKuzminsky SebKuzminsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo.

@SebKuzminsky
Copy link
Collaborator

The current (ie before this PR) build instructions work for me without -rfakeroot on latest master, b58e0b6. There must be something about this problem that i'm not understanding.

@rodw-au
Copy link
Contributor

rodw-au commented Nov 12, 2021

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 did observe a number of commits in relation to the .deb build process in the few days before I observed the issue so I assumed something had changed. I was able to build the debs when logged in as root.

@rodw-au
Copy link
Contributor

rodw-au commented Nov 12, 2021

I wonder if its because my user and root have different passwords?
I usually always make the root password and user password identical but I didn't on this build.

@SebKuzminsky
Copy link
Collaborator

I wonder if its because my user and root have different passwords?

That shouldn't matter.

@phillc54
Copy link
Collaborator

I haven't noticed any issues without -rfakeroot either.

@smoe
Copy link
Collaborator Author

smoe commented Nov 12, 2021

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.

@smoe smoe requested a review from SebKuzminsky November 12, 2021 22:43
@smoe
Copy link
Collaborator Author

smoe commented Nov 12, 2021

@petterreinholdtsen , does this ring a bell?

@phillc54
Copy link
Collaborator

I build on both MX-Linux19 (a Debian10 spinoff) and MX-Linux21 (a Debian11 spinoff)

@petterreinholdtsen
Copy link
Collaborator

petterreinholdtsen commented Nov 12, 2021 via email

@smoe
Copy link
Collaborator Author

smoe commented Nov 13, 2021

[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.

@SebKuzminsky , I suggest to then go for the -rfakeroot.

@SebKuzminsky
Copy link
Collaborator

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 fakeroot (or worse, su) where it's not needed. So the updates to the docs that add -r fakeroot should be removed imo.

I do like the updates to the build docs that simplify running debian/configure instead of cd debian; ./configure; cd ... Please leave those in.

With that change (and maybe a change to the title of the PR) I think it will be ready to merge.

@petterreinholdtsen
Copy link
Collaborator

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.

@smoe
Copy link
Collaborator Author

smoe commented Jul 21, 2022

Too outdated to chase this all up.

@smoe smoe closed this Jul 21, 2022
@smoe smoe deleted the dpkg-buildpackage-needs-fakeroot branch July 21, 2022 17:08
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.

5 participants