LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-28-2017, 02:35 PM   #1
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,335

Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930
How can i use slapt-src with "current" ponce repo ?


Hi , i know sbopkg/slpkg/sboui etc etc

But i want use "slapt-src" + ponce current repo.

Any one know how can works ?

Thanks!
 
Old 05-28-2017, 04:57 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,056

Rep: Reputation: Disabled
I don't know how to do that using git to download the files, as I don't think that there be a method similar to configuring the current repository with sbopkg for slapt-src

But you could clone this repo (if it is this one that you want) to e.g. /var/lib/slackbuilds, keep it in sync through git and include this line in /etc/slapt-get/slapt-srcrc:
Code:
SOURCE=file:///var/lib/slackbuilds/
You still will have to do a "slapt-src -u" whenever you sync your local repo.

Of course you can use sourcery as well if you want a GUI.

And don't include a SOURCE line for a "regular" SBo repo for 14.2 in /etc/slapt-get/slapt-srcrc (at least I don't know which version will be picked in this case).

PS: I tried, go a 404 error...

However it works when I make a local repo with rsync from http://slackware.uk/salix/sbo/14.2/. I am puzzled. Maybe I miss metadata? At least SLACKBUILDS.TXT would be my guess.

Last edited by Didier Spaier; 05-29-2017 at 05:32 AM. Reason: PS added.
 
1 members found this post helpful.
Old 05-29-2017, 05:01 PM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,056

Rep: Reputation: Disabled
Bingo!

I had a look in /usr/doc/slapt-src-0.3.2i/README, found there how-to build SLACKBUILDS.TXT, ran it as SLACKBUILDS.SH, ran as root
Code:
slapt-src -u
slapt-src -l|wc -l # gives 6606 thanks all SBo maintainers and admins for the hard work!
slapt-src -i znake
Now I can play snake again

Here is Jason's script in the README:
Code:
#!/bin/bash
set -e

for sb in $(find . -name '*.SlackBuild' | sort)
do
  name=$(basename $sb | sed -re 's/\.SlackBuild$//')
  location=$(dirname $sb)
  if [ -f $location/$name.info ]; then
    echo "SLACKBUILD NAME: $name"
    echo "SLACKBUILD LOCATION: $location"
    files=$(cd $location && find .  -type f -printf '%P\n' | sort | xargs)
    echo "SLACKBUILD FILES: $files"

    # remove those pesky multi line listings for each interesting field
    TMP=$(mktemp)
    sed ':a;N;$!ba;s/\\\n*\s*//g' $location/$name.info > $TMP

    DOWNLOAD=$(grep ^DOWNLOAD= $TMP | cut -f2 -d\" )
    DOWNLOAD_x86_64=$(grep ^DOWNLOAD_x86_64= $TMP | cut -f2 -d\" )
    MD5SUM=$(grep ^MD5SUM= $TMP | cut -f2 -d\" )
    MD5SUM_x86_64=$(grep ^MD5SUM_x86_64= $TMP | cut -f2 -d\" )
    VERSION=$(grep ^VERSION= $TMP | cut -f2 -d\" )

    echo "SLACKBUILD VERSION: $VERSION"
    echo "SLACKBUILD DOWNLOAD: $DOWNLOAD"
    echo "SLACKBUILD DOWNLOAD_x86_64: $DOWNLOAD_x86_64"
    echo "SLACKBUILD MD5SUM: $MD5SUM"
    echo "SLACKBUILD MD5SUM_x86_64: $MD5SUM_x86_64"

    if [ -f $location/slack-desc ]; then
      SHORTDESC=$(grep ^$name: $location/slack-desc | head -n 1 | sed -re "s/^$name://")
      echo "SLACKBUILD SHORT DESCRIPTION: $SHORTDESC"
    else
      echo "SLACKBUILD SHORT DESCRIPTION: "
    fi

    echo
    rm -f $TMP
  fi

done > SLACKBUILDS.TXT
gzip -9 SLACKBUILDS.TXT -c > SLACKBUILDS.TXT.gz

# END

Last edited by Didier Spaier; 05-29-2017 at 05:02 PM.
 
1 members found this post helpful.
Old 01-21-2020, 03:19 AM   #4
bifferos
Member
 
Registered: Jul 2009
Posts: 401

Rep: Reputation: 149Reputation: 149
I tried this but it doesn't seem to work for me. Is it no longer the case?

I generated my SLACKBUILDS.TXT, used strace on slpkg-src to check and it does seem to be opening the file, but then it still gives 404 error.
 
Old 01-22-2020, 08:22 PM   #5
jaos
LQ Newbie
 
Registered: Aug 2005
Posts: 23

Rep: Reputation: 5
Quote:
Originally Posted by bifferos View Post
I tried this but it doesn't seem to work for me. Is it no longer the case?

I generated my SLACKBUILDS.TXT, used strace on slpkg-src to check and it does seem to be opening the file, but then it still gives 404 error.
I just made a quick fix for this: https://github.com/jaos/slapt-src/co...cb4c08da87a74f


take care,
jason
 
2 members found this post helpful.
Old 01-25-2020, 04:27 PM   #6
bifferos
Member
 
Registered: Jul 2009
Posts: 401

Rep: Reputation: 149Reputation: 149
Quote:
Originally Posted by jaos View Post
Thanks Jason, that fixes the problem, and I can now compile znake .

I then tried compiling google-go-lang but got:

Code:
<snip>
go/test/uintptrescapes.dir/main.go
go/test/uintptrescapes.go
go/test/uintptrescapes2.go
go/test/undef.go
go/test/utf.go
go/test/varerr.go
go/test/varinit.go
go/test/writebarrier.go
go/test/zerodivide.go
Building Go cmd/dist using /usr.
can't load package: package slapt-src/development/google-go-lang/package-google-go-lang/usr/lib64/go1.13.5/go/src/cmd/dist: cannot find package "slapt-src/development/google-go-lang/package-google-go-lang/usr/lib64/go1.13.5/go/src/cmd/dist" in any of:
        /usr/src/slapt-src/development/google-go-lang/package-google-go-lang/usr/lib64/go1.13.5/go/src/cmd/dist (from $GOROOT)
        /root/go/src/slapt-src/development/google-go-lang/package-google-go-lang/usr/lib64/go1.13.5/go/src/cmd/dist (from $GOPATH)
sh google-go-lang.SlackBuild Failed
Building directly using the ponce repo slackbuild it works fine.

regards,
Biff.
 
Old 01-26-2020, 02:32 PM   #7
jaos
LQ Newbie
 
Registered: Aug 2005
Posts: 23

Rep: Reputation: 5
Quote:
Originally Posted by bifferos View Post
Thanks Jason, that fixes the problem, and I can now compile znake .

I then tried compiling google-go-lang but got:

Code:
<snip>
go/test/uintptrescapes.dir/main.go
go/test/uintptrescapes.go
go/test/uintptrescapes2.go
go/test/undef.go
go/test/utf.go
go/test/varerr.go
go/test/varinit.go
go/test/writebarrier.go
go/test/zerodivide.go
Building Go cmd/dist using /usr.
can't load package: package slapt-src/development/google-go-lang/package-google-go-lang/usr/lib64/go1.13.5/go/src/cmd/dist: cannot find package "slapt-src/development/google-go-lang/package-google-go-lang/usr/lib64/go1.13.5/go/src/cmd/dist" in any of:
        /usr/src/slapt-src/development/google-go-lang/package-google-go-lang/usr/lib64/go1.13.5/go/src/cmd/dist (from $GOROOT)
        /root/go/src/slapt-src/development/google-go-lang/package-google-go-lang/usr/lib64/go1.13.5/go/src/cmd/dist (from $GOPATH)
sh google-go-lang.SlackBuild Failed
Building directly using the ponce repo slackbuild it works fine.

regards,
Biff.
It looks like something isn't right when BUILDDIR=/usr/src/slapt-src... setting that to /tmp seems like a workaround. I will look further.


take care,
jason
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
".config" and ".kde" folders are being created under root directory (Slack Current) piratesmack Slackware 8 03-12-2011 11:06 PM
Can't install libglib2.0-dev from repo, returns "broken package" polemon DamnSmallLinux 0 10-09-2007 04:58 AM
"slapt-get --upgrade" destructed my system penyelam Slackware 17 08-07-2007 01:43 PM
What does "Directory "/usr/src/linux" doesn't appear to contain kernel source." mean? jtp51 Linux - General 4 06-11-2007 12:22 AM
Broke KDE doing "slapt-get --install qt"! nmoog Linux - Newbie 1 04-28-2004 05:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration