LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   How can i use slapt-src with "current" ponce repo ? (https://www.linuxquestions.org/questions/slackware-14/how-can-i-use-slapt-src-with-current-ponce-repo-4175606840/)

USUARIONUEVO 05-28-2017 02:35 PM

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!

Didier Spaier 05-28-2017 04:57 PM

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.

Didier Spaier 05-29-2017 05:01 PM

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


bifferos 01-21-2020 03:19 AM

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.

jaos 01-22-2020 08:22 PM

Quote:

Originally Posted by bifferos (Post 6081050)
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

bifferos 01-25-2020 04:27 PM

Quote:

Originally Posted by jaos (Post 6081814)

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.

jaos 01-26-2020 02:32 PM

Quote:

Originally Posted by bifferos (Post 6082942)
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


All times are GMT -5. The time now is 12:32 AM.