Given a CMakeLists.txt like:
PROJECT(asdf NONE)
CMAKE_MINIMUM_REQUIRED(VERSION 3.0)
INSTALL(FILES CMakeLists.txt DESTINATION share/doc/asdf/whatever)
SET(CPACK_GENERATOR "DEB")
SET(CPACK_PACKAGE_CONTACT "asdf#example.com")
INCLUDE(CPack)
The package generated by make package has following contents:
$ dpkg-deb --contents asdf-0.1.1-Linux.deb
drwx------ root/root 0 2017-12-20 10:50 ./usr/
drwx------ root/root 0 2017-12-20 10:50 ./usr/share/
drwx------ root/root 0 2017-12-20 10:50 ./usr/share/doc/
drwx------ root/root 0 2017-12-20 10:50 ./usr/share/doc/asdf/
drwx------ root/root 0 2017-12-20 10:50 ./usr/share/doc/asdf/whatever/
-rw-r--r-- root/root 235 2017-12-20 10:50 ./usr/share/doc/asdf/whatever/CMakeLists.txt
with the parent directories having only permission bits for the owner. How do I correct these so that the world could read the files I install, e.g. for these to be something like drwxr-xr-x instead?
In a discussion with CMake developer Nils Gladitz we were able to track this issue down the umask of the environment affecting this. If the umask in the environment is set to 0022 instead of 0077, then make package generates the package with different permissions:
$ dpkg-deb --contents asdf-0.1.1-Linux.deb
drwxr-xr-x root/root 0 2017-12-20 11:17 ./usr/
drwxr-xr-x root/root 0 2017-12-20 11:17 ./usr/share/
drwxr-xr-x root/root 0 2017-12-20 11:17 ./usr/share/doc/
drwxr-xr-x root/root 0 2017-12-20 11:17 ./usr/share/doc/asdf/
drwxr-xr-x root/root 0 2017-12-20 11:17 ./usr/share/doc/asdf/whatever/
-rw-r--r-- root/root 235 2017-12-20 10:50 ./usr/share/doc/asdf/whatever/CMakeLists.txt
Nils noted that this is apparently an old unfixed issue[1][2].
Thank you, Nils! =)
Related
I compiled wayland from source code with this command
meson --buildtype=release -D prefix=$HOME/mylib -D documentation=false
then installed it with ninja. Now in $HOME/mylib I have this structure:
total 24K
drwxr-xr-x 6 myuser myuser 4.0K Dec 3 19:52 .
drwxr-xr-x 16 myuser myuser 4.0K Dec 4 17:41 ..
drwxr-xr-x 2 root root 4.0K Dec 3 19:52 bin
drwxr-xr-x 2 root root 4.0K Dec 3 19:52 include
drwxr-xr-x 3 root root 4.0K Dec 3 19:52 lib
drwxr-xr-x 4 root root 4.0K Dec 3 19:52 share
Inside bin folder I have wayland-scanner and when I run this command
wayland-scanner -v
I got this output:
wayland-scanner 1.21.90
Now when I build other source code with meson that has wayland-scanner as dependency I got this error:
../tests/meson.build:2:0: ERROR: Invalid version of dependency, need 'wayland-scanner' ['>=1.20.0'] found '1.18.0'.
This is related to another wayland-scanner that is placed here:
/usr/bin/wayland-scanner
with version 1.18.0. The command
echo $PATH
reply with this output:
/home/myuser/mylib/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
Why meson doesn't find the updated version of wayland-scanner? Using PKG_CONFIG_PATH doesn't work, same error as above
Hi don't know the wayland package, but from description
I could think that /usr/bin/wayland-scanner is a link to the old installation,
Try to look in your environment for the wayland-scanner scanner binary to check if there is some link do not updated to the new installation.
We are facing an issue on the Databrick filesyste that considers files as directory and we are unable to read files with Pandas. The files exist in the Azure Storage Explorer, and are considered as files as seen here :
We have mounted the storage with oAuth 2.0.
On Databricks,
%sh ls -al '<path_to_files>'
returns the following :
total 1127
drwxrwxrwx 2 root root 4096 Jan 29 09:26 .
drwxrwxrwx 2 root root 4096 Jan 9 13:47 ..
drwxrwxrwx 1 root root 136705 Jan 28 16:35 AAAA_2019-10-01_2019-12-27.csv
drwxrwxrwx 1 root root 183098 Jan 28 16:35 BBBB_2019-10-01_2019-12-27.csv
-rwxrwxrwx 1 root root 313120 Jan 28 16:35 CCCC_2019-10-01_2019-12-27.csv
-rwxrwxrwx 1 root root 212935 Jan 29 09:26 df_cube.csv
-rwxrwxrwx 1 root root 298228 Jan 29 09:26 df_other_cube.csv
The thing is, the two first csv files are not directories at all. We can download them and read them as csv, but we cannot load them into a Pandas dataframe.
df = pd.read_csv(rootname_source_test + r'AAAA_2019-10-01_2019-12-27.csv',header=0,sep="|",engine='python')
>>> IsADirectoryError: [Errno 21] Is a directory: '/dbfs/mnt/<path>/AAA_2019-10-01_2019-12-27.csv'
They are generated the same way the 3rd csv is generated, and the 3rd on is loadable in pandas. Sometimes they appear as files, sometimes as directories and we are having trouble recreating and solving this consistently.
Cluster config : Runtime 6.2 ML (includes Apache Spark 2.4.4, Scala 2.11)
Any help will be very appreciated.
When I try to run a simple perl6 script on MSYS2-64 (bash.exe) on Windows 7 it says:
Could not open my-perl6-script.pl. Failed to stat file: no such file or directory
The same script runs perfectly fine on CMD.exe so I guess it's some incompatibility between perl6 and MSYS2.
$ perl6 -v returns:
This is Rakudo Star version 2018.04.1 built on MoarVM version 2018.04.1 implementing Perl 6.c.
The bin folder of perl6 is:
-rwxr-xr-x 1 win7 None 537938 May 11 2015 libgcc_s_sjlj-1.dll
-rw-r--r-- 1 win7 None 130262 May 7 2018 libmoar.dll.a
-rwxr-xr-x 1 win7 None 57681 May 11 2015 libwinpthread-1.dll
-rwxr-xr-x 1 win7 None 6633702 May 7 2018 moar.dll
-rwxr-xr-x 1 win7 None 57225 May 7 2018 moar.exe
-rw-r--r-- 1 win7 None 104 May 7 2018 nqp.bat
-rw-r--r-- 1 win7 None 104 May 7 2018 nqp-m.bat
lrwxrwxrwx 1 win7 None 23 Jun 19 2018 perl6 -> /c/rakudo/bin/perl6.exe
-rw-r--r-- 1 win7 None 242 May 7 2018 perl6.bat
lrwxrwxrwx 1 win7 None 23 Jun 19 2018 perl6.exe -> /c/rakudo/bin/perl6.bat
-rw-r--r-- 1 win7 None 248 May 7 2018 perl6-debug-m.bat
-rw-r--r-- 1 win7 None 242 May 7 2018 perl6-m.bat
It doesn't matter if I run the script using perl6, perl6.exe or perl6.bat; they all give the same error. I'd like to run perl6 scripts on MSYS2-64. What should I do? Thanks
I installed Rakudo for Windows and made a custom perl6 shell script:
#!/bin/sh
/c/rakudo/bin/moar --execname="$0" --libpath='C:\rakudo\share\nqp\lib' --libpath='C:\rakudo\share\nqp\lib' --libpath='C:\rakudo\share/perl6/lib' --libpath='C:\rakudo\share/perl6/runtime' 'C:\rakudo\share\perl6\runtime\perl6.moarvm' "$#"
I copied perl6.bat to perl6, changed the initial path to moar to an MSYS-style path, and changed from cmd to sh quoting and arugment conventions.
Example run, from cmd:
C:\Users\cxw>perl6 -v
This is Rakudo Star version 2019.03.1 built on MoarVM version 2019.03
implementing Perl 6.d.
From the shell opened by msys2_shell.cmd:
$ uname -a
MSYS_NT-6.1-7601 Desktop 3.0.7-338.x86_64 2019-07-03 08:42 UTC x86_64 Msys
$ export PATH="$PATH":~/bin
$ cat foo.p6
use v6;
(2+2).say;
$ perl6 foo.p6
4
For what it's worth, my Rakudo bin dir:
$ ls -l /c/rakudo/bin
total 8033
-rwxr-xr-x 1 cxw None 930663 May 11 2017 libgcc_s_seh-1.dll
-rw-r--r-- 1 cxw None 136146 Mar 30 21:55 libmoar.dll.a
-rwxr-xr-x 1 cxw None 56978 May 11 2017 libwinpthread-1.dll
-rwxr-xr-x 1 cxw None 7021172 Mar 30 21:55 moar.dll
-rwxr-xr-x 1 cxw None 64066 Mar 30 21:55 moar.exe
-rw-r--r-- 1 cxw None 126 Mar 30 21:56 nqp.bat
-rw-r--r-- 1 cxw None 126 Mar 30 21:56 nqp-m.bat
-rw-r--r-- 1 cxw None 242 Mar 30 21:56 perl6.bat
-rw-r--r-- 1 cxw None 248 Mar 30 21:56 perl6-debug-m.bat
-rw-r--r-- 1 cxw None 242 Mar 30 21:56 perl6-m.bat
I'm following this guide so that I can run websites on a local server using Apache on OS-X El Capitan. I'm trying to edit my httpd-userdir.conf file but when I try to save it gives me the error:
Error writing httpd-userdir.conf: Permission denied
Terminal shows that the permissions for my httpd-userdir.conf file is -rw-r--r-- , so I don't understand why I wouldn't be allowed to write?
drwxr-xr-x 15 root wheel 510B Feb 24 13:35 ./
drwxr-xr-x 11 root wheel 374B Feb 24 13:27 ../
-rw-r--r-- 1 root wheel 2.8K Jul 31 2015 httpd-autoindex.conf
-rw-r--r-- 1 root wheel 1.7K Jul 31 2015 httpd-dav.conf
-rw-r--r-- 1 root wheel 2.9K Jul 31 2015 httpd-default.conf
-rw-r--r-- 1 root wheel 1.1K Jul 31 2015 httpd-info.conf
-rw-r--r-- 1 root wheel 5.0K Jul 31 2015 httpd-languages.conf
-rw-r--r-- 1 root wheel 1.0K Jul 31 2015 httpd-manual.conf
-rw-r--r-- 1 root wheel 4.4K Jul 31 2015 httpd-mpm.conf
-rw-r--r-- 1 root wheel 2.2K Jul 31 2015 httpd-multilang-errordoc.conf
-rw-r--r-- 1 root wheel 13K Jul 31 2015 httpd-ssl.conf
-rw-r--r-- 1 root wheel 607B Jul 31 2015 httpd-userdir.conf
-rw-r--r-- 1 root wheel 607B Feb 24 13:35 httpd-userdir.conf.bak
-rw-r--r-- 1 root wheel 1.5K Jul 31 2015 httpd-vhosts.conf
-rw-r--r-- 1 root wheel 3.1K Jul 31 2015 proxy-html.conf
#erapert was correct, I just had to do sudo vi /etc/apache2/extra/httpd-userdir.conf and that allowed me to edit the file.
I've installed "openshift origin" with the oo-install script. I can login into the web console and create apps, "git clone" works but when I "git push" I get a permissions error:
remote: Permission denied - /var/lib/openshift/5373c78ae138230657000005/app-deployments/2014-05-14_19-44-15.999/dependencies/python/virtenv/include/python2.7
To ssh://5373c78ae138230657000005#insultapp-test.apps.dom1.local/~/git/insultapp.git/
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'ssh://5373c78ae138230657000005#insultapp-test.apps.dom1.local/~/git/insultapp.git/'
These are some of the folder permissions when I ssh into the gear:
drwxr-x---. 13 root 5373c78ae138230657000005 4.0K May 14 19:44 .
drwxr-xr-x. 7 root root 4.0K May 14 19:44 ..
drwxr-xr-x. 4 5373c78ae138230657000005 5373c78ae138230657000005 4.0K May 14 19:44 app-deployments
drwxr-xr-x. 4 root 5373c78ae138230657000005 4.0K May 14 19:44 app-root
drwxr-x---. 2 5373c78ae138230657000005 5373c78ae138230657000005 4.0K May 14 19:44 .auth
drwxr-x---. 3 root 5373c78ae138230657000005 4.0K May 14 19:44 .env
drwxr-x---. 2 5373c78ae138230657000005 5373c78ae138230657000005 4.0K May 14 19:44 .gem
drwxr-xr-x. 3 root root 4.0K May 14 19:44 git
-rw-r--r--. 1 root root 57 May 14 19:44 .gitconfig
drwxr-x---. 2 5373c78ae138230657000005 5373c78ae138230657000005 4.0K May 14 19:44 .openshift_ssh
drwxr-xr-x. 11 5373c78ae138230657000005 5373c78ae138230657000005 4.0K May 14 19:44 python
d---------. 3 root root 4.0K May 14 19:44 .sandbox
drwxr-x---. 2 root 5373c78ae138230657000005 4.0K May 14 19:44 .ssh
d---------. 3 root root 4.0K May 14 19:44 .tmp
lrwxrwxrwx. 1 root root 64 May 14 19:44 .vimrc -> /var/lib/openshift/5373c78ae138230657000005/app-root/data/.vimrc
Any help would be appreciated.