Slackware 13.0 repository with dependency support

Slackware 13.0 repository with dependency support

Postby gapan » 6. Oct 2009, 19:08

You can now use one of the following mirrors to have dependency support with slapt-get/gslapt for Slackware 13.0 packages:
http://salix.enialis.net/i486/slackware-13.0/
http://download.salixos.org/i486/slackware-13.0/

The above mirrors don't actually hold any Slackware packages, these are downloaded from a real Slackware mirror. You can read how it all works and how to create such a mirror locally in your own PC in the wiki: http://www.salixos.org/wiki/index.php/H ... cy_support

The default repository selection in /etc/slapt-get/slapt-getrc has been updated to include one of our mirrors. You just need to update slapt-get and accept the slapt-getrc.new file with dotnew.

:)
Image
Image
User avatar
gapan
Salix Wizard
 
Posts: 4315
Joined: 6. Jun 2009, 17:40

Re: Slackware 13.0 repository with dependency support

Postby SoleSoul » 6. Oct 2009, 23:22

Correct me if I'm wrong, this is a big moment for almost every Slackware user isn't it?
User avatar
SoleSoul
 
Posts: 49
Joined: 2. Oct 2009, 01:53
Location: Israel

Re: Slackware 13.0 repository with dependency support

Postby thenktor » 7. Oct 2009, 01:48

SoleSoul wrote:Correct me if I'm wrong, this is a big moment for almost every Slackware user isn't it?

We have adapted the idea from Stefano Stabellini who is running such a mirror since some time now: http://www.stabellini.net/depslack.html :ugeek:

And to add something else: Of course everybody who sets up some public mirrors can announce it here, too ;)
Image
burnCDDA (burns audio CDs)
last.fm (my last.fm profile)
User avatar
thenktor
Salix Wizard
 
Posts: 2421
Joined: 6. Jun 2009, 14:47
Location: Franconia

Re: Slackware 13.0 repository with dependency support

Postby laprjns » 3. Dec 2009, 22:09

I'm trying to setup a repository on my server. When i try to run the script I get an unknown operand error. Please note that this is not on Salix OS. It on my NSLU running slugos, so it could very well be a problem with the OS. I have no idea what the operand error is. Any ideas??

Code: Select all
root@Slugo_2:/var/lib/ftp/salix# ./adddepinfo.sh
--17:02:08--  ftp://slackware.mirrors.tds.net/pub/slackware/slackware-13.0/CHECKSUMS.md5
           => `.CHECKSUMS.md5.new'
Resolving slackware.mirrors.tds.net... 204.246.0.134
Connecting to slackware.mirrors.tds.net[204.246.0.134]:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD /pub/slackware/slackware-13.0 ... done.
==> PORT ... done.    ==> RETR CHECKSUMS.md5 ... done.
Length: 656,416 (unauthoritative)

100%[===============================================================>] 656,416      295.95K/s             

17:02:11 (295.27 KB/s) - `.CHECKSUMS.md5.new' saved [656416]

sh: CHECKSUMS.md5: unknown operand
No new packages found.
--17:02:14--  ftp://slackware.mirrors.tds.net/pub/slackware/slackware-13.0/patches/CHECKSUMS.md5
           => `.CHECKSUMS.md5.new'
Resolving slackware.mirrors.tds.net... 204.246.0.134
Connecting to slackware.mirrors.tds.net[204.246.0.134]:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD /pub/slackware/slackware-13.0/patches ... done.
==> PORT ... done.    ==> RETR CHECKSUMS.md5 ... done.
Length: 12,244 (unauthoritative)

100%[===============================================================>] 12,244        --.--K/s             

17:02:15 (190.69 KB/s) - `.CHECKSUMS.md5.new' saved [12244]

sh: CHECKSUMS.md5: unknown operand
No new packages found.
--17:02:15--  ftp://slackware.mirrors.tds.net/pub/slackware/slackware-13.0/extra/CHECKSUMS.md5
           => `.CHECKSUMS.md5.new'
Resolving slackware.mirrors.tds.net... 204.246.0.134
Connecting to slackware.mirrors.tds.net[204.246.0.134]:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD /pub/slackware/slackware-13.0/extra ... done.
==> PORT ... done.    ==> RETR CHECKSUMS.md5 ... done.
Length: 37,757 (unauthoritative)

100%[===============================================================>] 37,757       236.38K/s             

17:02:15 (235.72 KB/s) - `.CHECKSUMS.md5.new' saved [37757]

sh: CHECKSUMS.md5: unknown operand
No new packages found.
root@Slugo_2:/var/lib/ftp/salix#

Thanks
Rich
Last edited by laprjns on 3. Dec 2009, 23:19, edited 1 time in total.
User avatar
laprjns
Salix Warrior
 
Posts: 709
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: Slackware 13.0 repository with dependency support

Postby gapan » 3. Dec 2009, 23:07

CHECKSUMS.md5 is referenced in two lines in the script:
Code: Select all
touch CHECKSUMS.md5

and
Code: Select all
mv -f .CHECKSUMS.md5 CHECKSUMS.md5

Apparently one of these (probably touch?) doesn't work in your NSLU for some reason. Try them on their own and see what you get. But I'm just guessing here.
Image
Image
User avatar
gapan
Salix Wizard
 
Posts: 4315
Joined: 6. Jun 2009, 17:40

Re: Slackware 13.0 repository with dependency support

Postby laprjns » 4. Dec 2009, 20:31

gapan wrote:Apparently one of these (probably touch?) doesn't work in your NSLU for some reason. Try them on their own and see what you get. But I'm just guessing here.
Well they both worked on their own, but it got me to look in the right area. This if statement,
Code: Select all
f [[ ! `diff CHECKSUMS.md5 .CHECKSUMS.md5.new` = "" ]
needs to have double quotes to work on my Slug
Code: Select all
if [[ ! "diff CHECKSUMS.md5 .CHECKSUMS.md5.new" = "" ]
With the double quotes, I no longer get the "unknown operand" error, but now I have move on to a sed error:
Code: Select all
Resolving slackware.mirrors.tds.net... 204.246.0.134
Connecting to slackware.mirrors.tds.net[204.246.0.134]:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD /pub/slackware/slackware-13.0 ... done.
==> PORT ... done.    ==> RETR ChangeLog.txt ... done.
Length: 226,459 (unauthoritative)

100%[===============================================>] 226,459      266.76K/s             

15:22:42 (266.10 KB/s) - `ChangeLog.txt' saved [226459]

Adding dependency info to PACKAGES.TXT, this may take a while.sed: can't find label for jump to 'a}'
.sed: can't find label for jump to 'a}'
.sed: can't find label for jump to 'a}'
.sed: can't find label for jump to 'a}'
.sed: can't find label for jump to 'a}'
.sed: can't find label for jump to 'a}'
.sed: can't find label for jump to 'a}'
.^Z[1] + Stopped                    ./adddepinfo.sh
The SlugOS that I'm using uses busybox for it's unix tools. I guess it has some reduced capabilities compared to the full blown GNU tools.
User avatar
laprjns
Salix Warrior
 
Posts: 709
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: Slackware 13.0 repository with dependency support

Postby gapan » 4. Dec 2009, 20:41

You replaced the backticks (`) with double quotes! That's not right! Everything put in the backticks is executed and the result of that command becomes a variable. It seems the backticks are not used properly in your system. Try replacing everything included in backticks with $(), like:
Code: Select all
if [[ ! `diff CHECKSUMS.md5 .CHECKSUMS.md5.new` = "" ]

to
Code: Select all
if [[ ! $( diff CHECKSUMS.md5 .CHECKSUMS.md5.new ) = "" ]

(you need the spaces after and before the parentheses).
Image
Image
User avatar
gapan
Salix Wizard
 
Posts: 4315
Joined: 6. Jun 2009, 17:40

Re: Slackware 13.0 repository with dependency support

Postby laprjns » 5. Dec 2009, 01:28

gapan wrote:You replaced the backticks (`) with double quotes! That's not right!
Well, i didn't get the unknown operand error after I did this. Also tried using the $(), but the unknown operand error returned.
As it turns out, my Slugo's busybox sed command is indeed crippled. I was able to install a full featured sed version via the Slugos package manager and after that was able run the stock adddepinfo script with out errors.

So, now I can announce my slackware repository with dependency checking:
ftp://laprjns.com/salix/slackware/slackware-13.0
ftp://laprjns.com/salix/slackware/slackware-13.0/extra
User avatar
laprjns
Salix Warrior
 
Posts: 709
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: Slackware 13.0 repository with dependency support

Postby JRD » 5. Dec 2009, 14:30

laprjns wrote:Well, i didn't get the unknown operand error after I did this. Also tried using the $(), but the unknown operand error returned.

If you leaved double quotes it's not working.
Code: Select all
if [[ ! `diff CHECKSUMS.md5 .CHECKSUMS.md5.new` = "" ]]

or
Code: Select all
if [[ ! $( diff CHECKSUMS.md5 .CHECKSUMS.md5.new ) = "" ]]

is doing a diff between the new and the former CHECKSUM.md5 files. If there are differences, the code in the "if" is executed.
If you use:
Code: Select all
if [[ ! "diff CHECKSUMS.md5 .CHECKSUMS.md5.new" = "" ]]

you compare two strings (set of characters) and you execute the "if" if they don't match (which is always the case).

My guess is that you do not have "diff" installed in your system or that the diff command doesn't work like the GNU diff, hence the "CHECKSUMS.md5: unknown operand".
Try doing a diff directly in your SlugOS shell.
If it works, you could use this code instead :
Code: Select all
diff CHECKSUMS.md5 .CHECKSUMS.md5.new > /dev/null
if [ "$?" -eq "1" ]
Image
User avatar
JRD
Salix Warrior
 
Posts: 948
Joined: 7. Jun 2009, 22:52
Location: Lyon, France

Re: Slackware 13.0 repository with dependency support

Postby laprjns » 5. Dec 2009, 19:14

Actually,I think the unknown operand was a red herring. :? After updating the sed package on my SlugOS system,I was able to run gapan's script as he wrote it, no changes. Now everything is working and I have the repository up and running.
Thanks for the help.
Rich
User avatar
laprjns
Salix Warrior
 
Posts: 709
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Next

Return to Announcements