You are not logged in.

#1 2009-11-05 20:16:35

wesley_of_course
Member
Registered: 2007-09-13
Posts: 110

{SOLVED} no write permission to store downloads in /home/sources

Morning folks ,   trying this ;

 moto4lin-svn dependencies:
 - qt3 (already installed)
 - libusb (already installed)
 - zlib (already installed)
 - gcc (already installed)
 - subversion (already installed)
==> Determining latest svn revision...
  -> Version found: 87
==> Making package: moto4lin-svn 87-1 x86_64 (Thu Nov  5 13:54:01 CST 2009)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
==> ERROR: You do not have write permission to store downloads in /home/sources.
    Aborting...
Error: Makepkg was unable to build moto4lin-svn package.

Obviously a permissions problem and not sure how to proceed ? , have installed ABS (correctly but not sure !),
but  /home/sources ? , thro's me for a loop . I've obviously missed something here ! Pointers in the right direction ?  Thank you all .  Would like it to work across the board  if nothing else to learn more .

Last edited by wesley_of_course (2009-11-09 21:12:18)

Offline

#2 2009-11-05 21:06:50

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,549

Re: {SOLVED} no write permission to store downloads in /home/sources

What's the full directory path of where you're trying to do makepkg?

I wonder, if you can create a username with spaces or special characters (dunno), and it begins with 'sources' then it might get that error.

Offline

#3 2009-11-05 22:29:35

wesley_of_course
Member
Registered: 2007-09-13
Posts: 110

Re: {SOLVED} no write permission to store downloads in /home/sources

Thank You for posting ; the following from the Wiki is how it was done ;

mkdir -p $HOME/abs

Would there be something wrong here or am I mixing directions up ? !

http://tinyurl.com/s4umt   would like to be able to build and this  software  would  be a bonus ,
the phone isn't mine but thought it would be interesting nontheless  to use ABS . Thanks again.

Offline

#4 2009-11-06 02:46:29

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,549

Re: {SOLVED} no write permission to store downloads in /home/sources

Your link goes to the ABS wiki page?

Please explain clearly, what is your objective, and what is the exact process you're going through, including details.

Offline

#5 2009-11-06 04:05:59

wesley_of_course
Member
Registered: 2007-09-13
Posts: 110

Re: {SOLVED} no write permission to store downloads in /home/sources

I Thank you for your interest and will try to be more concise .    I wanted to learn ABS , so I followed the guidelines  at the Wiki ,

pacman -Sy abs

- done deal

pacman -Sy base-devel

- just to be sure I had it

wesley ~  $  sudo nano /etc/abs.conf

did the editing

# abs

- as root

mkdir -p $HOME/abs

- done deal

Then followed the steps : "The build function, the ABS way " , I tried using the example { copy and paste just to make sure } and '

ERROR: You do not have write permission to store downloads in /home/sources.
    Aborting...

Error: Makepkg was unable to build moto4lin-svn package. After slim bombed , I tried it with ' Stellarium ' , a package easily installed otherwise , I figured an update and it might not work without a rebuild if I didn't lock it
but I wasn't worried , this was practice and a chance to learn.  I then tried the moto4lin-svn package , same deal
- it wasn't a needed package but something to learn on .
 
  Still got the error message , I hope I've made this a little clearer as to what I was up to .  Would like to get this working as it would be a skill and something fun to do . Again Thank you for your time and patience .

Offline

#6 2009-11-06 04:24:25

wesley_of_course
Member
Registered: 2007-09-13
Posts: 110

Re: {SOLVED} no write permission to store downloads in /home/sources

Tried again ;

wesley ~/abs/stellarium  $  makepkg -s
==> Making package: stellarium 0.10.2-3 x86_64 (Thu Nov  5 22:16:21 CST 2009)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
==> ERROR: You do not have write permission to store downloads in /home/sources.
    Aborting...

On a side note I used a root terminal to update abs tree and wasn't asked for password , but it did update .
    That don't seem right - does it ?

Offline

#7 2009-11-06 05:42:33

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,549

Re: {SOLVED} no write permission to store downloads in /home/sources

There's your problem.  You created the ABS directory as root, which means it's now owned by root.  So, as a user, you have no write permission to that folder.
Give the directory to your user using chown.  I could tell you how, but it's simple and you'll learn more about Linux permissions by checking the man page wink

Offline

#8 2009-11-06 16:52:00

wesley_of_course
Member
Registered: 2007-09-13
Posts: 110

Re: {SOLVED} no write permission to store downloads in /home/sources

First off ; Thanks Ranguvar for your time and patience in this matter and now -

If I understand correctly the following is needed ;

chown -Rv wesley /home/wesley/abs

v = verbose

chown -Rv wesley:users /home/wesley/abs

Would change it to wesley and user if I wanted to allow others to use it

Being how this is single user machine ;

chown -R wesley /home/wesley/abs

would do it .

I created the  build directory as wesley  , but created the ABS tree as root . So my question would be how the directory was root permissions ?
    Followed the wiki I thought to the letter , unless when creating the ABS tree it changed the permissions to the directory ?

Thank You for your time in this matter and hopefully I've figured this out . Could the options be lower-case ?,
or did I miss something ? I'm sure theres a reason for it .

Offline

#9 2009-11-07 17:01:55

wesley_of_course
Member
Registered: 2007-09-13
Posts: 110

Re: {SOLVED} no write permission to store downloads in /home/sources

If challenges are a sign of progress ; involvement level keeps rising ;

wesley ~  $  chown -R  /home/wesley/abs
chown: missing operand after `/home/wesley/abs'

I think I missed it - should it not be ;

chown wesley -R /home/wesley/abs

Replies Welcome  [ any and all ]

Offline

#10 2009-11-07 17:10:35

grey
Member
From: Europe
Registered: 2007-08-23
Posts: 679

Re: {SOLVED} no write permission to store downloads in /home/sources

try `man chown`


Good ideas do not need lots of lies told about them in order to gain public acceptance.

Offline

#11 2009-11-07 23:42:54

wesley_of_course
Member
Registered: 2007-09-13
Posts: 110

Re: {SOLVED} no write permission to store downloads in /home/sources

Did and http://tinyurl.com/do8m9 , thats were I came up with the bottom code . I feel a DUH moment
gaining momentum .

   On a side note it worked on the P4 , temp. machine , and wanted to make sure before I tried it on this one .

My main .

Offline

#12 2009-11-08 01:32:56

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: {SOLVED} no write permission to store downloads in /home/sources

makepkg apparently wants to store the downloaded sources somewhere other than where you are running it. Check /etc/makepkg.conf and /home/wesley/.makepkg.conf (if it exists) and see the variable SRCDEST. Looks like you uncommented it, but didn't change it to anywhere useful (since /home/sources is the default value in the commented version. You don't have to set that variable unless you really want all your downloads to go in one place - just put the # back in front of it unless you really care.

Offline

#13 2009-11-08 04:00:46

wesley_of_course
Member
Registered: 2007-09-13
Posts: 110

Re: {SOLVED} no write permission to store downloads in /home/sources

Thank You for your time , Ataraxia - much appreciated .

Thank You ! So if I understand correctly : PKGDEST=/home/packages :   could be /home/wesley/abs or
for that matter /home/wesley/Desktop  , also /home/packages is created each time a package is generated ?

Sorry , you were correct in that  SRCDEST  was uncommented , apparently I missed that as a config option .

/home/wesley/.makepkg.conf

does not exist - should it or is it auto - generated each time ?


chown wesley -R /home/wesley/abs

Is this then right ?

Sticky: README: Useful ABS links by Misfit138  - There all along ! "I feel a DUH moment
gaining momentum . " , like a freight train !

Last edited by wesley_of_course (2009-11-08 04:15:52)

Offline

Board footer

Powered by FluxBB