LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-05-2018, 11:56 AM   #1
joenew
Member
 
Registered: Mar 2010
Distribution: slackware 15.0 64bit
Posts: 190

Rep: Reputation: 23
[Sbopkg] - sqg generates wrong queue file for "linphone"


Hi all,
I generated queue file with sqg to install linphone using sbopkg.

I'm on Slackware-14.2 and I use:
Code:
REPO_BRANCH=${REPO_BRANCH:-14.2}
REPO_NAME=${REPO_NAME:-SBo}
The issue regards that generated queue file:
Code:
# cat /var/lib/sbopkg/queues/linphone.sqf
libupnp
polarssl
bzrtp
linphone-srtp
jdk
libantlr3c
belle-sip
# %README%: see the ffmpeg README file. 
ffmpeg
speex
linphone
When sbopkg process that queue some packages don't compile correctly and final package linphone can't be built...
The problem is the above queue is wrong.
It should be:
Code:
speex
mbedtls
libupnp
libsrtp
# %README%: see the ffmpeg README file. 
ffmpeg
bctoolbox
bzrtp
libantlr3c
jdk
belle-sip
linphone
Thanks to Ponce who shared his working queue for comparison on slacky.eu forum. I tried it with sbopkg and that linphone queue worked: now I have linphone installed on my system.

So how can I find where the issue is?
Could be a sqg bug?
Or something broken on my sbopkg local files?

Thank you in advance for any suggests!
Bye

Last edited by joenew; 01-08-2018 at 10:53 AM.
 
Old 01-05-2018, 12:23 PM   #2
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
I wonder if your local repo is corrupt somehow. I would try removing it and then generating it again, like this:

Code:
rm -rf /var/lib/sbopkg/SBo/14.2
sbopkg -r
Then try generating the queue again.
 
Old 01-05-2018, 01:36 PM   #3
joenew
Member
 
Registered: Mar 2010
Distribution: slackware 15.0 64bit
Posts: 190

Original Poster
Rep: Reputation: 23
Thank you!
I'll try... but where exactly could be the problem?
 
Old 01-05-2018, 01:44 PM   #4
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
All I can think of is that either some of your .info files are missing the proper requirements information, or there are some directories missing from the repository altogether. If you want to dig into it, back up /var/lib/sbopkg/SBo/14.2 first, and try to manually work recursively through the requirements for linphone, starting at whatever is listed in linphone.info.
 
Old 01-05-2018, 02:11 PM   #5
joenew
Member
 
Registered: Mar 2010
Distribution: slackware 15.0 64bit
Posts: 190

Original Poster
Rep: Reputation: 23
In the meantime, I tried your solution without backup...
Anyway it doesn't solve.

I read a topic in which was suggested to delete the whole content of dir /var/lib/sbopkg/*
I tried:

Code:
# rm -rf /var/lib/sbopkg/*
sbopkg -r


# sqg -p linphone
Processing linphone.
Done.


# cat /var/lib/sbopkg/queues/linphone.sqf
speex
mbedtls
libupnp
libsrtp
# %README%: see the ffmpeg README file.
ffmpeg
bctoolbox
bzrtp
libantlr3c
jdk
belle-sip
linphone
Maybe the problem was related to many directories in /var/lib/sbopkg/SBo other than the branches dir like "14.2" and so on, there were a tree of the repo in that dir... that tree now is just present under /var/lib/sbopkg/SBo/14.2/, and not more in /var/lib/sbopkg/SBo/

Last edited by joenew; 01-05-2018 at 02:16 PM.
 
Old 01-05-2018, 02:12 PM   #6
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
Okay, so it looks like removing everything in /var/lib/sbopkg worked, correct? The queue file is right now.
 
Old 01-05-2018, 02:42 PM   #7
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by joenew View Post
Maybe the problem was related to many directories in /var/lib/sbopkg/SBo other than the branches dir like "14.2" and so on, there were a tree of the repo in that dir... that tree now is just present under /var/lib/sbopkg/SBo/14.2/, and not more in /var/lib/sbopkg/SBo/
It's possible that it was building the queue from a different version of the repo (ie, not 14.2), but without doing more digging, it's only a guess.
 
Old 01-05-2018, 05:29 PM   #8
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,680

Rep: Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796
Quote:
Originally Posted by joenew View Post
Hi all,
I generated queue file with sqg to install linphone using sbopkg.

I'm on Slackware-14.2 and I use:
Code:
REPO_BRANCH=${REPO_BRANCH:-14.2}
REPO_NAME=${REPO_NAME:-SBo}
The issue regards that generated queue file:
Code:
# cat /var/lib/sbopkg/queues/linphone.sqf
libupnp
polarssl
bzrtp
linphone-srtp
jdk
libantlr3c
belle-sip
# %README%: see the ffmpeg README file. 
ffmpeg
speex
linphone
When sbopkg process that queue some packages don't compile correctly and final package linphone can't be built...
The problem is the above queue is wrong.
It should be:
Code:
speex
mbedtls
libupnp
libsrtp
# %README%: see the ffmpeg README file. 
ffmpeg
bctoolbox
bzrtp
libantlr3c
jdk
belle-sip
linphone
Thanks to Ponce who shared his working queue for comparison on slacky.eu forum. I tried it with sbopkg and that linphone queue worked: now I have linphone installed on my system.

So how can I find where the issue is?
Could be a sqg bug?
Or something broken on my sbopkg local files?

Thank you in advance for any suggests!
Bye
mine produce the correct queue
Code:
cat /var/lib/sbopkg/queues/linphone.sqf 
speex
mbedtls
libupnp
libsrtp
# %README%: see the ffmpeg README file. 
ffmpeg
bctoolbox
bzrtp
libantlr3c
jdk
belle-sip
linphone
another possible reason is that you haven't sync with the latest changes in the repository because there was a new dep introduced and 2nd dep also got changed.

Last edited by willysr; 01-05-2018 at 05:31 PM.
 
Old 01-06-2018, 08:00 AM   #9
joenew
Member
 
Registered: Mar 2010
Distribution: slackware 15.0 64bit
Posts: 190

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by montagdude View Post
Okay, so it looks like removing everything in /var/lib/sbopkg worked, correct? The queue file is right now.
Yes, I removed "the content" of that dir (there is a "*" at the end ---> "/var/lib/sbopkg/*" ).

Sorry, I made a mistake in above solving procedure: a repo sync is needed too after the "remove":

Code:
rm -rf /var/lib/sbopkg/*

sbopkg -r
After that, sqg works properly again.
Quote:
Originally Posted by willysr
another possible reason is that you haven't sync with the latest changes in the repository because there was a new dep introduced and 2nd dep also got changed.
I had looked at the content of the above directory and repo sub-dir "SBo" was not as clean as expected it should contain just branch subdir, "14.2" in my case, but there were many directories other than "14.2".
Now (after cleaning re-sync procedure) I have:
Code:
/var/lib/sbopkg/
├── SBo
│   └── 14.2
│       ├── CHECKSUMS.md5
│       ├── CHECKSUMS.md5.asc
│       ├── ChangeLog.txt
│       ├── README
│       ├── SLACKBUILDS.TXT
│       ├── SLACKBUILDS.TXT.gz
│       ├── TAGS.txt
│       ├── TAGS.txt.gz
│       ├── academic
│       ├── accessibility
│       ├── [...]
│       ├── ruby
│       └── system
└── queues
    └── linphone.sqf

23 directories, 9 files
On the contrary, before the remove/re-sync procedure, I had something like:
Code:
/var/lib/sbopkg/
├── SBo
│   ├── 14.2
│   │     ├── CHECKSUMS.md5
│   │     ├── CHECKSUMS.md5.asc
│   │     ├── ChangeLog.txt
│   │     ├── README
│   │     ├── SLACKBUILDS.TXT
│   │     ├── SLACKBUILDS.TXT.gz
│   │     ├── TAGS.txt
│   │     ├── TAGS.txt.gz
│   │     ├── academic
│   │     ├── accessibility
│   │     ├── audio
│   │     ├── [...]
│   │     └── system
│   │ 
│   ├── CHECKSUMS.md5
│   ├── CHECKSUMS.md5.asc
│   ├── ChangeLog.txt
│   ├── README
│   ├── SLACKBUILDS.TXT
│   ├── SLACKBUILDS.TXT.gz
│   ├── TAGS.txt
│   ├── TAGS.txt.gz
│   ├── academic
│   ├── [...]
│   ├── python
│   ├── ruby
│   └── system
│
└── queues
    └── linphone.sqf
I mean the "14.2" repo tree was repeated both within the "14.2" sub-dir (as expected) and at the same level! (and this likely reveals something broken in /var/lib/sbopkg/*). I can't say how those subdirs were generated in that wrong path, nor when.. because I erased all...

Anyway, the procedure solves the problem!
Now sqg and sbopkg are working properly and this is what matters!

Last edited by joenew; 01-06-2018 at 08:02 AM.
 
Old 01-06-2018, 08:15 AM   #10
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,680

Rep: Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796
That's probably caused by using current repo which is synced using git instead of rsync
 
Old 01-06-2018, 08:39 AM   #11
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,118

Rep: Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192Reputation: 4192
It shouldn't, because it uses the SBo-git directory by default for syncing (/var/lib/sbopkg/SBo-git )...
 
Old 01-06-2018, 10:09 AM   #12
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,680

Rep: Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796
ups, you are right. It was caused by using master branch instead of 14.2 repo
 
  


Reply

Tags
sbopkg, sqg



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
Faster implementation of sbopkg's sqg queue file generator. Richard Cranium Slackware 7 08-07-2016 11:12 AM
sbopkg/sqg vs sbotools? Didier Spaier Slackware 2 11-11-2015 04:39 AM
[SOLVED] Can sbopkg "see" packages tagged something different that "_SBo"? solarfields Slackware 3 07-26-2015 06:03 PM
sqg - sbopkg queuefile generator chess Slackware 22 12-30-2014 03:31 AM
"LPOPTIONS" file getting reset when restarting Print Queue Arrow Linux - Enterprise 2 06-15-2005 12:41 PM

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

All times are GMT -5. The time now is 06:03 AM.

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