LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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


Closed Thread
  Search this Thread
Old 02-02-2015, 09:22 PM   #1
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
That which could be fixed in SBo thread.


This is a thread aimed at fixing SlackBuilds in SBO that are currently having any build issues and need repairs, fixes, patches, etc. Try to stick to the current format.

This post is only to fix and repair existing SlackBuild script, not get newer versions of packages.

THIS THREAD IS AIMED AT -CURRENT USAGE with resyncs from the SBo master repo via git/svn. Stable releases should be okay, unless otherwise noted.

---------------------
TiMidity++.SlackBuild
---------------------
line 96
autoreconf > ./autogen.sh

Original command returns an error when ran.

--------------------------
gst-plugins-bad.SlackBuild
--------------------------
line 87(+88)
make install DESTDIR=$PKG
> cp -v $PKG/usr/include/libmodplug/stdafx.h $PKG/usr/include/stdafx.h

when building gst-plugins-bad against libmodplug, compiler generates stop error stating stdafx.h was not found.

Last edited by ReaperX7; 02-02-2015 at 10:24 PM.
 
Old 02-02-2015, 09:50 PM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
Quote:
Originally Posted by ReaperX7 View Post
TiMidity++.SlackBuild
---------------------
line 96
autoreconf > ./autogen.sh

Original command returns an error when ran.
Are you running this package in -current or in -stable?
I just tested this on slackware64-14.1 VM and it's working fine
 
Old 02-02-2015, 10:15 PM   #3
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558

Original Poster
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
-Current at the moment. New versions of tool sets may be producing problems that may need to start getting tracked. Plus I'm using sbotools to manage the SBo packages which stays in sync with the git/svn SBO repo.

Last edited by ReaperX7; 02-02-2015 at 10:16 PM.
 
Old 02-03-2015, 12:28 AM   #4
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
Yes, we are aware of new toolchain that might break some scripts in SBo, but since -current is not officially supported, it will be fixed during the time when next Slackware is about to be released
 
1 members found this post helpful.
Old 02-03-2015, 08:51 AM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Ponce (one of the SBo admins) is already maintaining a git branch which targets slackware-current: https://github.com/Ponce/slackbuilds

Your fixes/patches/whatever should be based on that, not on the Slackware 14.1 repository of slackbuilds.org.
 
5 members found this post helpful.
Old 02-03-2015, 09:35 AM   #6
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,096

Rep: Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173
Thanks Eric for pointing Reaper at my (personal) repo (not affiliated with SBo): in fact I already fixed TiMidity++ for building on -current there.

ReaperX7: I think the problem you attribute to gst-plugins-bad is instead of libmodplug that seems to have a wrong path for its own includes in its pkgconfig file: this patch for the SlackBuild fixes it.
I'll send it to Larry, the libmodplug maintainer too, as it applies to stable too: if it's ok for him I'll send the fix also upstream.
BTW, thanks for reporting the issue!
Code:
From 6fc93b2a34d46ada1faa10cb86cef496e2e1fb61 Mon Sep 17 00:00:00 2001
From: Matteo Bernardini <ponce@slackbuilds.org>
Date: Tue, 3 Feb 2015 16:27:32 +0100
Subject: [PATCH] libraries/libmodplug: Fix includes location in the pkgconfig
 file.

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
---
 libraries/libmodplug/libmodplug.SlackBuild | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/libraries/libmodplug/libmodplug.SlackBuild b/libraries/libmodplug/libmodplug.SlackBuild
index 9570bb4..df39b69 100644
--- a/libraries/libmodplug/libmodplug.SlackBuild
+++ b/libraries/libmodplug/libmodplug.SlackBuild
@@ -24,7 +24,7 @@
 
 PRGNAM=libmodplug
 VERSION=${VERSION:-0.8.8.5}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
 TAG=${TAG:-_SBo}
 
 if [ -z "$ARCH" ]; then
@@ -71,6 +71,9 @@ find -L . \
 
 patch -p1 < $CWD/libmodplug-0.8.4-timiditypaths.patch
 
+# Fix the location of the includes in the pkgconfig file
+sed -i "s|includedir}$|includedir}/libmodplug|" libmodplug.pc.in
+
 CFLAGS="$SLKCFLAGS" \
 CXXFLAGS="$SLKCFLAGS" \
 ./configure \
-- 
2.2.2

Last edited by ponce; 02-03-2015 at 10:12 AM.
 
2 members found this post helpful.
Old 02-03-2015, 05:02 PM   #7
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558

Original Poster
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
You're welcome ponce.

If I find more problems, and honestly if anyone finds any problems, this topic could be used as a good starting point to finding the real issues at hand, or just rework things as needed to work better.

Because SBO is community, and most of you guys post here that contribute to SBO, maybe this can be a little bit of help.

The faster things can be found, the faster things can be fixed, patched, etc. upstream.

Last edited by ReaperX7; 02-03-2015 at 05:03 PM.
 
Old 02-03-2015, 11:35 PM   #8
elyk
Member
 
Registered: Jun 2004
Distribution: Slackware
Posts: 241

Rep: Reputation: 49
Quote:
Originally Posted by ReaperX7 View Post
---------------------
TiMidity++.SlackBuild
---------------------
line 96
autoreconf > ./autogen.sh

Original command returns an error when ran.
I pushed this a few days ago, please test it out.
 
Old 02-04-2015, 07:19 AM   #9
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558

Original Poster
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Quote:
Originally Posted by elyk View Post
I pushed this a few days ago, please test it out.
I'll resync my sbo pool tomorrow and give it a tryout. Thanks.
 
Old 02-04-2015, 12:20 PM   #10
rg3
Member
 
Registered: Jul 2007
Distribution: Fedora
Posts: 527

Rep: Reputation: Disabled
The slackbuild for lua52 has problems when run using fakeroot. I reported the problem to ponce by email some time ago, but I never received a reply. I think it would be interesting to fix it.
 
Old 02-04-2015, 12:28 PM   #11
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,096

Rep: Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173
but at SBo we don't support fakeroot for building so, IMHO, there's nothing to be fixed.

I'll paste here the diff you sent me, if it can be useful to other people like you using fakeroot
Code:
diff -urN a/lua52.SlackBuild b/lua52.SlackBuild
--- a/lua52.SlackBuild	2014-08-22 17:15:51.000000000 +0200
+++ b/lua52.SlackBuild	2014-12-03 20:38:40.197665369 +0100
@@ -60,15 +60,18 @@
   MYLIBS="-lncurses" \
   CFLAGS="$SLKCFLAGS \$(MYCFLAGS) -DLUA_COMPAT_ALL -DLUA_USE_LINUX" \
   INSTALL_TOP=/usr \
-  INSTALL_LIB=/usr/lib${LIBDIRSUFFIX} \
-  INSTALL_CMOD=/usr/lib${LIBDIRSUFFIX}/lua/5.2
+  INSTALL_LIB=/usr/lib${LIBDIRSUFFIX}
 
-make linux install \
+make linux local \
   MYLIBS="-lncurses" \
   CFLAGS="$SLKCFLAGS \$(MYCFLAGS) -DLUA_COMPAT_ALL -DLUA_USE_LINUX" \
   INSTALL_TOP=$PKG/usr \
-  INSTALL_LIB=$PKG/usr/lib${LIBDIRSUFFIX} \
-  INSTALL_CMOD=/usr/lib${LIBDIRSUFFIX}/lua/5.2
+  INSTALL_LIB=$PKG/usr/lib${LIBDIRSUFFIX}
+
+mkdir -p $PKG/usr
+cd install
+find . -type f -print0 | cpio -p -0 --make-directories $PKG/usr
+cd ..
 
 # Now let's build the shared library
 mkdir -p shared
 
Old 02-04-2015, 12:30 PM   #12
rg3
Member
 
Registered: Jul 2007
Distribution: Fedora
Posts: 527

Rep: Reputation: Disabled
Oh, OK. I didn't know fakeroot was not supported, thanks.
 
Old 02-04-2015, 01:11 PM   #13
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,096

Rep: Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173
re-reading my answer I think that, aided by my bad english, I may have sounded rude: it wasn't my intention at all, I hope you understand

consider that I'm still thinking, when I'll find enough spare time to test stuff depending on it too, of reworking lua build scripts for trying to have multiple lua version installed together: it could be that the new ones will accidentally work also with fakeroot, who knows!
 
1 members found this post helpful.
Old 02-04-2015, 08:08 PM   #14
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558

Original Poster
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Is there a build flag for lua52 like --disable-fakeroot?
 
Old 02-04-2015, 08:44 PM   #15
larryhaja
Member
 
Registered: Jul 2008
Distribution: Slackware 13.1
Posts: 305

Rep: Reputation: 80
Quote:
Originally Posted by ponce View Post
ReaperX7: I think the problem you attribute to gst-plugins-bad is instead of libmodplug that seems to have a wrong path for its own includes in its pkgconfig file: this patch for the SlackBuild fixes it.
I'll send it to Larry, the libmodplug maintainer too, as it applies to stable too: if it's ok for him I'll send the fix also upstream.
BTW, thanks for reporting the issue!
Code:
From 6fc93b2a34d46ada1faa10cb86cef496e2e1fb61 Mon Sep 17 00:00:00 2001
From: Matteo Bernardini <ponce@slackbuilds.org>
Date: Tue, 3 Feb 2015 16:27:32 +0100
Subject: [PATCH] libraries/libmodplug: Fix includes location in the pkgconfig
 file.

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
---
 libraries/libmodplug/libmodplug.SlackBuild | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/libraries/libmodplug/libmodplug.SlackBuild b/libraries/libmodplug/libmodplug.SlackBuild
index 9570bb4..df39b69 100644
--- a/libraries/libmodplug/libmodplug.SlackBuild
+++ b/libraries/libmodplug/libmodplug.SlackBuild
@@ -24,7 +24,7 @@
 
 PRGNAM=libmodplug
 VERSION=${VERSION:-0.8.8.5}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
 TAG=${TAG:-_SBo}
 
 if [ -z "$ARCH" ]; then
@@ -71,6 +71,9 @@ find -L . \
 
 patch -p1 < $CWD/libmodplug-0.8.4-timiditypaths.patch
 
+# Fix the location of the includes in the pkgconfig file
+sed -i "s|includedir}$|includedir}/libmodplug|" libmodplug.pc.in
+
 CFLAGS="$SLKCFLAGS" \
 CXXFLAGS="$SLKCFLAGS" \
 ./configure \
-- 
2.2.2
I've talked to ponce in a separate email about gst-plugins-bad. The issue is that the version of gst-plugins-bad on SBo doesn't use include statements correctly like the gst-plugins-bad 1.x version does. I sent ponce a patch so that gst-plugins-bad can compile with libmodplug.
Code:
# cat libmodplug-include.patch
diff -Naur gst-plugins-bad-0.10.23.orig/ext/modplug/gstmodplug.cc gst-plugins-bad-0.10.23/ext/modplug/gstmodplug.cc
--- gst-plugins-bad-0.10.23.orig/ext/modplug/gstmodplug.cc	2012-01-18 12:32:55.000000000 +0000
+++ gst-plugins-bad-0.10.23/ext/modplug/gstmodplug.cc	2015-02-03 16:31:44.428094306 +0000
@@ -50,7 +50,7 @@
 #define WORDS_BIGENDIAN 0
 #endif
 
-#include <stdafx.h>
+#include <libmodplug/stdafx.h>
 #include <libmodplug/sndfile.h>
 
 #include "gstmodplug.h"
Code:
# cat gst-plugins-bad.SlackBuild.patch
--- gst-plugins-bad.SlackBuild.orig	2015-02-03 16:38:28.199078554 +0000
+++ gst-plugins-bad.SlackBuild	2015-02-03 16:39:00.238077304 +0000
@@ -71,6 +71,9 @@
  \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
     -exec chmod 644 {} \;
 
+# Fix libmodplug include directory.
+patch -p1 < $CWD/libmodplug-include.patch
+
 CFLAGS="$SLKCFLAGS" \
 CXXFLAGS="$SLKCFLAGS" \
 ./configure \
 
  


Closed Thread



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
[SOLVED] SBO request: CDE wigry Slackware 23 05-05-2014 06:35 AM
Nvidia-driver.SlackBuild from SBo (or: I am a bad and sloppy SBo maintainer) kingbeowulf Slackware 8 08-31-2012 02:41 AM
Opera 10.01 in SBo hitest Slackware 2 11-09-2009 02:14 PM
Bug in 8.04, fixed in 8.10 - How to get fixed in 8.04 which is LTS? taylorkh Ubuntu 4 02-28-2009 05:17 PM
UNresolved and Fixed issue thread marking abs LQ Suggestions & Feedback 8 02-13-2004 04:15 AM

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

All times are GMT -5. The time now is 05:08 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