Re: Should I login as root while creating packages?
Posted: 25. Jan 2015, 21:19
Ah, it's SlackBuild, not Slackbuild... Learn to use the tab key to avoid such errors.
Linux for the Lazy Slacker
https://forum.salixos.org/
That you were made aware of.sqlpython wrote:Here is my Question
I have been going su to build my packages happily since 1994.
Yet never had an issue.
The problem is not what you are doing wrong. The problem is what anyone else might have accidentally (or on purpose) done wrong with their SlackBuilds and their Makefiles. I'll give you a few examples where you'd be in real trouble (sometimes without knowing it):sqlpython wrote:What am I doing wrong?
Code: Select all
# we don't need /usr/bin in the package since it is empty
rm -rf $PGK/usr/bin
Code: Select all
cp this_file /usr/share/mypkg/
Of course do I use the tab-key to autocomplete, so the issue is not a typo.gapan wrote:Ah, it's SlackBuild, not Slackbuild... Learn to use the tab key to avoid such errors.
Are you running it from the same directory the slackbuild is present? Give the output of thejohn256 wrote:Of course do I use the tab-key to autocomplete, so the issue is not a typo.
Code: Select all
ls -l
Code: Select all
> ls -la
total 4772
drwxr-xr-x 2 jjbj users 4096 Jan 26 13:28 .
drwxr-xr-x 3 jjbj users 4096 Jan 26 13:27 ..
-rw-r--r-- 1 jjbj users 63 Jan 26 13:28 git-1.9.0-build.log
-rw-r----- 1 jjbj users 4839724 Jan 26 13:27 git-1.9.0.tar.gz
-rwxr-x--x 1 jjbj users 4863 Jan 26 13:26 git.SlackBuild
-rw-r----- 1 jjbj users 32 Jan 26 13:27 git.url
-rw-r----- 1 jjbj users 851 Jan 26 13:27 slack-desc.txt
Yes, exactly the same errorgapan wrote:Does the same thing happen to you in that other PC?