[Pkg-cmake-team] [rb-general] [Debian] just how do you set the umask that setting it back to 022 doesn’t work?

Thorsten Glaser tg at debian.org
Fri Feb 7 22:06:08 GMT 2020


>from the origtgz (and thus should have the correct permissions,
>unless tar does not extract them right).

I guess it doesn’t:

(pbuild1029-sid/amd64)root at tglase:/tmp/buildd/musescore-3.2.3+dfsg1 # ll share/workspaces/
total 168
-rw-rw-r-- 1 pbuilder pbuilder 136628 Jul  6  2019 Advanced.xml
-rw-rw-r-- 1 pbuilder pbuilder  26328 Jul  6  2019 Basic.xml
-rw-rw-r-- 1 pbuilder pbuilder   1816 Jul  6  2019 CMakeLists.txt

When:

tglase at tglase:~/Projekte/musescore $ tar tavf ../musescore_3.2.3+dfsg1.orig.tar.xz | fgrep share/workspaces
drwxr-xr-x 0/0               0 2019-07-06 11:44 musescore-3.2.3+dfsg1.orig/share/workspaces/
-rw-r--r-- 0/0            1816 2019-07-06 11:44 musescore-3.2.3+dfsg1.orig/share/workspaces/CMakeLists.txt
-rw-r--r-- 0/0           26328 2019-07-06 11:44 musescore-3.2.3+dfsg1.orig/share/workspaces/Basic.xml
-rw-r--r-- 0/0          136628 2019-07-06 11:44 musescore-3.2.3+dfsg1.orig/share/workspaces/Advanced.xml

Isn’t this a bug? tar xavf *.orig.tar.* (also paxtar) retain the
permissions from the original tarball.

I just checked, dpkg-source -x does this. I consider this a bug in it.


The second thing is, the files are generated 664…

(pbuild1029-sid/amd64)root at tglase:/tmp/buildd/musescore-3.2.3+dfsg1 # ll obj-x86_64-linux-gnu/share/workspaces/Advanced/*                                                             <
-rw-rw-r-- 1 pbuilder pbuilder 136628 Feb  7 21:17 obj-x86_64-linux-gnu/share/workspaces/Advanced/Advanced.xml

obj-x86_64-linux-gnu/share/workspaces/Advanced/META-INF:
total 4
-rw-rw-r-- 1 pbuilder pbuilder 134 Feb  7 21:17 container.xml

… although the first one is just copied from the above one that
was extracted wrongly, and the second one created from…

-rw-rw-r-- 1 pbuilder pbuilder 132 Jul  6  2019 build/container.xml.in

… which was also extracted badly, and I assume cmake’s
configure_file() and cmake -E copy_if_different retain
the permissions.

bye,
//mirabilos
-- 
15:39⎜«mika:#grml» mira|AO: "mit XFree86® wär’ das nicht passiert" - muhaha
15:48⎜<thkoehler:#grml> also warum machen die xorg Jungs eigentlich alles
kaputt? :)    15:49⎜<novoid:#grml> thkoehler: weil sie als Kinder nie den
gebauten Turm selber umschmeissen durften?	-- ~/.Xmodmap wonders…



More information about the Pkg-cmake-team mailing list