Hi Ringus,

On 14/05/18 19:52, rinigus wrote:
> Hi David,
> 
> the rules regarding single executable haven't changed, to my knowledge.

I actually can't see anything in the rules that states you can't have
multiple executables, but it is a requirement to pass through the
rpmvalidator. If it's a requirement, I'm thinking it would be helpful to
make this explicit in the FAQ (which is the closest thing I'm aware of
to a stated set of rules).

> That particular problem was solved for my case by writing a wrapper and
> called either QML main or the main I wanted to use from Valhalla
> (https://github.com/rinigus/osmscout-server-route/blob/master/src/harbour-osmscout-server-module-route.cpp#L19).

Just so I'm clear, for your workaround you joined the two code bases at
compile time?

Unfortunately that won't work in my case, because I have my programme
(C++) calling a Perl programme, which then calls another (C-complied)
executable. It's possible using Perl would be reason enough to reject
from Harbour, but one step at a time! The issue of multiple executables
seems more fundamental to me.

> This solution would work, but its a touch harder to maintain. In the
> end, its up to you whether you want to have the app in the harbour or
> not. After all, its your decision. However, I would suggest to consider
> distribution via OpenRepos and not waste too much time for working
> around Harbour rules. 

Ultimately, I agree it's much simpler to release through OpenRepos (I'm
already doing this in fact), and I can appreciate the frustration for
you of having to pull your app later. At least you achieved it, even f
just temporarily. Getting something into Harbour is an important life
goal for me ;)

David

> Best wishes,
> 
> Rinigus
> 
> PS: Ironically, few month later, I had to pull out of Harbour anyway due
> to the changes in systemd API
> 
> On Mon, May 14, 2018 at 4:12 PM, David Llewellyn-Jones
> <da...@flypig.co.uk <mailto:da...@flypig.co.uk>> wrote:
> 
>     Hi,
> 
>     The Harbour rpmvalidator is currently highlighting problems with my app
>     because it has more than one executable packaged with it. I get errors
>     like this:
> 
>     ERROR [/usr/share/harbour-getiplay/lib/bin/rtmpdump] ELF binary in wrong
>     location (must be /usr/bin/harbour-getiplay)
> 
>     ERROR [/usr/share/harbour-getiplay/lib/bin/rtmpdump] File must not be
>     executable (current permissions: 755)
> 
>     Is there any way to create a Harbour-compatible package that includes
>     more than one executable? From the validator, it looks to be impossible,
>     but the FAQ doesn't say anything about it, so I'm still hopeful :)
> 
>     For context, my app is just a UI wrapper around a separate executable
>     that I call using QProcess. Since the underlying executable isn't
>     written by me (and itself calls several other executables), integrating
>     them into a single executable would be hard.
> 
>     David
> 
>     P.S. I checked the mailing list archives and together.jolla.com
>     <http://together.jolla.com>, and
>     although this has come up before (e.g.
>     https://lists.sailfishos.org/pipermail/devel/2017-May/007898.html
>     <https://lists.sailfishos.org/pipermail/devel/2017-May/007898.html>) I
>     didn't see any clear solutions or conclusions.
>     -- 
>     Website: http://www.flypig.co.uk
>     _______________________________________________
>     SailfishOS.org Devel mailing list
>     To unsubscribe, please send a mail to
>     devel-unsubscr...@lists.sailfishos.org
>     <mailto:devel-unsubscr...@lists.sailfishos.org>
> 
> 
> 
> 
> _______________________________________________
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
> 


-- 
Website: http://www.flypig.co.uk
_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Reply via email to