LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   ghex slackbuild (https://www.linuxquestions.org/questions/slackware-14/ghex-slackbuild-4175561189/)

pzognar 12-10-2015 08:48 PM

ghex slackbuild
 
Attempted to make a ghex slackbuild. Looked to be the usual "configure make make install" system, so making the slackbuild seemed straightforward enough.

I manually ran a ./configure and make before making the slackbuild, to make sure I had no hidden problems to deal with.

That ran without error. So I made the slackbuild. No errors during the building of the tgz nor in the actual installpkg.

Only problem is, the program won't run. D'oh.

Code:

$ /usr/local/bin/ghex

(ghex:18781): GLib-GIO-ERROR **: Settings schema 'org.gnome.GHex' is not installed

Trace/breakpoint trap

If there was a dependency, would not the ./configure or make have aborted?

edit: googling indicates that there might be a dependency on a "gsettings-desktop-schemas" package. I have not followed up on this. I guess then the thrust of my question is, how to alter the build process so it *checks* for this.


p.s. The location of the program in /usr/local/bin instead of /usr/bin is not an error. I like to keep added programs separate from the programs that come with Slackware, so I edit my slackbuilds accordingly.

willysr 12-11-2015 12:03 AM

See doinst.sh

You may need to put this section
Code:

if [ -e usr/share/glib-2.0/schemas ]; then
  if [ -x /usr/bin/glib-compile-schemas ]; then
    /usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas >/dev/null 2>&1
  fi
fi


pzognar 12-11-2015 07:23 AM

Wow, that worked (well, had to put in a leading / and adjust for usr/local but you get the idea). Thank you very much. :)

I would never have figured that out. :o

willysr 12-11-2015 10:16 AM

it was missing / since it must be able to run during installation where chroot is used


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