After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 593888 - Allow for overriding gnome-screensaver libexec dir
Allow for overriding gnome-screensaver libexec dir
Status: RESOLVED FIXED
Product: f-spot
Classification: Other
Component: General
GIT
Other Linux
: Normal minor
: ---
Assigned To: F-spot maintainers
F-spot maintainers
Depends on:
Blocks:
 
 
Reported: 2009-09-02 09:37 UTC by Loïc Minier
Modified: 2009-09-02 15:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
mbox of patches reworking --with-gnome-screensaver flags (7.99 KB, application/octet-stream)
2009-09-02 09:53 UTC, Loïc Minier
Details

Description Loïc Minier 2009-09-02 09:37:33 UTC
Hi

f-spot's configure.ac has logic to use gnome-screensaver.pc's vars to compute various gnome-screensaver dirs (good).  If the .pc isn't present, one can optionally override the gnome-screensaver prefix and f-spot's configure.ac will use standard gnome-screensaver dirs relative to this prefix, except for gnome-screensaver's privlibexecdir where f-spot will try gssprefix/lib/screensaver and use that if present.

Now I guess the intent is that basically if the .pc or gnome-screensaver is installed, this just does the right thing, but under Debian/Ubuntu gnone-screensaver has no separate package for the .pc (that would be overkill) and it's expensive + ugly to pull gnome-screensaver as a build-dep.  If we dont pull gnome-screensaver as a build-dep, we cant override the default of libexec which is the incorrect dir.

Hence I worked on a series of patches to cleanup the current logic making is slightly more autoconf-ish and extending the logic to allow overriding any gnome-screensaver dir which f-spot still autodetects by default, as before.

I'll attach a mbox of patches; hope that's ok; is there a place on git.gnome.org for user branches proposed for merging in module branches?  I have account "lool".

Cheers,
Comment 1 Loïc Minier 2009-09-02 09:46:33 UTC
BTW you might want to ship /autogen.sh via /Makefile.am's EXTRA_DIST; I see it's not included in the tarball right now.
Comment 2 Loïc Minier 2009-09-02 09:53:02 UTC
Created attachment 142308 [details]
mbox of patches reworking --with-gnome-screensaver flags

Passed basic build testing; FYI there's an install issue with sv/f-spot.xml with current git.
Comment 3 Stephane Delcroix 2009-09-02 11:16:54 UTC
(In reply to comment #1)
> BTW you might want to ship /autogen.sh via /Makefile.am's EXTRA_DIST; I see
> it's not included in the tarball right now.

no, we don't want to
Comment 4 Stephane Delcroix 2009-09-02 11:26:14 UTC
(In reply to comment #0)
> I'll attach a mbox of patches; hope that's ok; is there a place on
> git.gnome.org for user branches proposed for merging in module branches?

y, that's ok. we also use gitorious for user branches and merge requests.
http://gitorious.org/f-spot
Comment 5 Stephane Delcroix 2009-09-02 11:37:20 UTC
Patches looks ok, pushed
Comment 6 Ruben Vermeersch 2009-09-02 14:06:46 UTC
(In reply to comment #3)
> (In reply to comment #1)
> > BTW you might want to ship /autogen.sh via /Makefile.am's EXTRA_DIST; I see
> > it's not included in the tarball right now.
> 
> no, we don't want to

Running autogen.sh creates a ton of makefiles and a configure script. It requires users to have the full development stack (automake etc). A configured tree on the other hand only requires bash and make to build.

That's why autogen.sh is never included in the tarball, it's a development tool which requires a lot of applications to work. Not requiring our users to have these applications makes it a lot easier for them to build.
Comment 7 Loïc Minier 2009-09-02 15:44:03 UTC
Well, on autogen.sh, I dont strictly need it as I used a git checkout, but consider that it's part of your development scripts and hence should be part of your release.  It's common for other modules to include it.  I personally appreciate when modules are fully contained in their tarballs, and while it's not common that I run ./autogen.sh in a tarball, I did actually do that from time to time.  Yes, it requires some different software to be used than what's needed to build with ./configure && make; I think that's alright.


(FYI the GPL mentions that you should provide source code but also scripts to modify the work.  I certainly wouldn't be one to hold you to this part of the license in tarball releases, but I think it would be a valid argument in favor of simply shipping all scripts not specific to a git repo with the tarball release.)