LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   where to put repo script (https://www.linuxquestions.org/questions/slackware-14/where-to-put-repo-script-4175433294/)

buradd 10-20-2012 09:49 PM

where to put repo script
 
I'm trying to get my slackware 14 set up to build android CM10 rom from source, i created a script called ~/bin/repo .. where do i put this so that I can just type 'repo' at the command line, in any subdirectory, to run the script?

thank you

aetratus 10-20-2012 09:56 PM

Your ~/bin directory has to be in your PATH. Append it to your .bashrc:
Code:

PATH=$PATH:~/bin
then source your .bashrc by typing
Code:

. ~/.bashrc

manwichmakesameal 10-20-2012 10:02 PM

Or you can put it in /usr/local/bin and you won't have to modify your $PATH. Although I do like having my own ~/bin.

buradd 10-20-2012 10:34 PM

Quote:

Originally Posted by manwichmakesameal (Post 4811126)
Or you can put it in /usr/local/bin and you won't have to modify your $PATH. Although I do like having my own ~/bin.

this fixed the issue of accessing my newly created repo script from anywhere.. but i ran into an issue later on down the line

unfortunately all the guides ive read to set up a build environment for android CM10 roms is for ubuntu... they say that they require the packages:
git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.6-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev pngcrush schedtool

i can see that my slackware 14 system comes with most, but missing some that I cant get with the ubuntu pkg system so easily..

any tips on completing this task?

thanks!

EDIT: i can find some with sbopkg via slackbuilds.org but the ones like libsdl1.2-dev and libesd0-dev, cant find

T3slider 10-20-2012 11:04 PM

Quote:

Originally Posted by buradd (Post 4811144)
git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.6-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev pngcrush schedtool
...
EDIT: i can find some with sbopkg via slackbuilds.org but the ones like libsdl1.2-dev and libesd0-dev, cant find

git-core = git, installed by default
gnupg = gnupg, installed by default
flex = flex, installed by default
bison = bison, installed by default
gperf = gperf, installed by default
libsdl = sdl, installed by default
libesd = esound, installed by default
libwxgtk = wxGTK, available from SBo
squashfs-tools = squashfs-tools, available from SBo
build-essential = Ubuntu meta-package, but I think this should all be part of a default Slackware install (make, gcc, etc.)
zip = infozip, installed by default
curl = curl, installed by default
libncurses = ncurses, installed by default
zlib = zlib, installed by default
pngcrush = pngcrush, available from SBo
schedtool = schedtool, available from SBo

Note: I haven't tested the build, so I don't know if it will actually work with all of those dependencies, but the only third-party packages you should need are wxGTK, squashfs-tools, pngcrush and schedtool.

buradd 10-20-2012 11:31 PM

Quote:

Originally Posted by T3slider (Post 4811154)
git-core = git, installed by default
gnupg = gnupg, installed by default
flex = flex, installed by default
bison = bison, installed by default
gperf = gperf, installed by default
libsdl = sdl, installed by default
libesd = esound, installed by default
libwxgtk = wxGTK, available from SBo
squashfs-tools = squashfs-tools, available from SBo
build-essential = Ubuntu meta-package, but I think this should all be part of a default Slackware install (make, gcc, etc.)
zip = infozip, installed by default
curl = curl, installed by default
libncurses = ncurses, installed by default
zlib = zlib, installed by default
pngcrush = pngcrush, available from SBo
schedtool = schedtool, available from SBo

Note: I haven't tested the build, so I don't know if it will actually work with all of those dependencies, but the only third-party packages you should need are wxGTK, squashfs-tools, pngcrush and schedtool.

thank you so much for your detailed response.. i have checked off all dependencies as installed, i found alot were installed already and i read about that ubuntu meta package too, i think everything is good except now I need to install jdk6 .. jdk7 wont do, which is installed.. if i run a jdk.SlackBuild for jdk6 and do upgradepkg --install-new /tmp/jdk6.txz will it uninstall the jdk7 or will it just install side by side.. will this create any errors?

Thanks again for the help, I've made alot of progress, so close to a build

buradd 10-21-2012 01:45 AM

i just used the jdk.slackbuild from slackware64-13.37/extra/source/jdk-6 and replaced jdk7 with it..

im repo'ing again and have not yet tried to build but this thread is solved afaic thank you guys for the help!


All times are GMT -5. The time now is 10:46 AM.