LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Problem with slackrepo and f3 (https://www.linuxquestions.org/questions/slackware-14/problem-with-slackrepo-and-f3-4175608151/)

bilbod 06-18-2017 08:57 PM

Problem with slackrepo and f3
 
I cannot get the experimental version of f3 to build correctly with slackrepo. My f3.hint file:

Code:

cat /etc/slackrepo/SBo/hintfiles/f3.hint
EXPERIMENTAL="YES"
CFLAGS="-fgnu89-inline"

Does not work.

It does build correctly manually

Code:

wget -c https://slackbuilds.org/slackbuilds/14.2/system/f3.tar.gz
tar -xzvf f3.tar.gz
cd f3
wget -c 'https://github.com/AltraMayor/f3/archive/v6.0/f3-6.0.zip'
CFLAGS="$CFLAGS -fgnu89-inline"
export CFLAGS
EXPERIMENTAL=YES ./f3.SlackBuild
installpkg /tmp/f3-6.0-x86_64-1_SBo.tgz

What is wrong with my hint file?

55020 06-18-2017 10:06 PM

That's not how hintfiles work. You can't just dump random stuff in them.

EXPERIMENTAL=YES is a SlackBuild option, so the correct hint would be OPTIONS="EXPERIMENTAL=YES".

What you are trying to do with CFLAGS is not supported. The "right thing", assuming this is needed for -current, would be to apply that fix to the SlackBuild in a temporary git branch and pass it upstream to ponce.

Edit: I've just had a chance to test build it with a hint OPTIONS="EXPERIMENTAL=YES" as above, and it builds ok like that on 14.2, it doesn't need CFLAGS to be set.

bilbod 06-19-2017 12:30 PM

Quote:

Originally Posted by 55020 (Post 5724177)
That's not how hintfiles work. You can't just dump random stuff in them.

EXPERIMENTAL=YES is a SlackBuild option, so the correct hint would be OPTIONS="EXPERIMENTAL=YES".

What you are trying to do with CFLAGS is not supported. The "right thing", assuming this is needed for -current, would be to apply that fix to the SlackBuild in a temporary git branch and pass it upstream to ponce.

Edit: I've just had a chance to test build it with a hint OPTIONS="EXPERIMENTAL=YES" as above, and it builds ok like that on 14.2, it doesn't need CFLAGS to be set.

It needs -fgnu89-inline if you use any optimizations.

I tested it and it seems to work OK with just the SlackBuild option.

ponce 06-19-2017 12:33 PM

Quote:

Originally Posted by bilbod (Post 5724412)
It needs -fgnu89-inline if you use any optimizations.

I tested it too and it seems not to need those...
Are you by any chance using a custom SlackBuild (not the one on SBo)?

kjhambrick 06-19-2017 12:48 PM

bilbod --

You made me look :)

The f3.SlackBuild works OK here too without any mods ( other than EXPERIMENTAL=YES ./f3.SlackBuild )

One thing of note is that in the 'next version' ( f3 Version 7.0 and in the Current Source from AltraMayor's github Repo ), the EXPERIMENTAL=YES Flag will be/is replaced by 'extra' as in make extra && make install-extra instead of make experimental && make install-experimental ...

According to AltraMayor's github Issue Tracer Version 7.0 will be out later this year.

HTH.

-- kjh

bilbod 06-19-2017 01:00 PM

Quote:

Originally Posted by ponce (Post 5724415)
I tested it too and it seems not to need those...
Are you by any chance using a custom SlackBuild (not the one on SBo)?

I don't know enough to customize anything. I was using -O2 optimization and the experimental function did not get built without -fgnu89-inline in CFLAGS.

This is a quote from the author of f3:

"the problem seems to be a bug in the gnu c library argp. Upstream is aware of it and they should patch it eventually."

and he recommended using -fgnu89-inline in CFLAGS until they fix the library.

Without -O2 optimization you don't need to modify CFLAGS.

I don't modify anything anymore, I just use the defaults, slackrepo does all the work. I ran into trouble with f3 because I did not know how to put SlackBuild options in the hint file.

bilbod 06-19-2017 01:01 PM

Quote:

Originally Posted by kjhambrick (Post 5724423)
bilbod --

You made me look :)

The f3.SlackBuild works OK here too without any mods ( other than EXPERIMENTAL=YES ./f3.SlackBuild )

One thing of note is that in the 'next version' ( f3 Version 7.0 and in the Current Source from AltraMayor's github Repo ), the EXPERIMENTAL=YES Flag will be/is replaced by 'extra' as in make extra && make install-extra instead of make experimental && make install-experimental ...

According to AltraMayor's github Issue Tracer Version 7.0 will be out later this year.

HTH.

-- kjh

That's good to know, thanks for the info.


All times are GMT -5. The time now is 01:06 PM.