Help for fixing %install spec file section (Error make: *** No rule to make target 'install'. Stop.)

2018-02-26 Thread Germano Massullo
Hi there, I working on packaging the last missing (on Fedora repos)
piece of user side Estonia ID card software stack: the web extension[1]
for web signing
I need some help in fixing %install section of spec file
https://pagure.io/webextension-token-signing_spec/blob/master/f/webextension-token-signing.spec
because during builds [2] I am getting error message

make: *** No rule to make target 'install'. Stop.

I made various change attempts but I could not manage to fix it.

Best regards

[1]: https://github.com/open-eid/chrome-token-signing
[2]:
https://copr.fedorainfracloud.org/coprs/germano/webextension-token-signing/build/721284/
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org


Re: Help for fixing %install spec file section (Error make: *** No rule to make target 'install'. Stop.)

2018-02-26 Thread Jens Lody
Am Mon, 26 Feb 2018 19:05:55 +0100
schrieb Germano Massullo :

> Hi there, I working on packaging the last missing (on Fedora repos)
> piece of user side Estonia ID card software stack: the web
> extension[1] for web signing
> I need some help in fixing %install section of spec file
> https://pagure.io/webextension-token-signing_spec/blob/master/f/webextension-token-signing.spec
> because during builds [2] I am getting error message
> 
> make: *** No rule to make target 'install'. Stop.
> 
> I made various change attempts but I could not manage to fix it.

Did you try "make -C host-linux install DESTDIR=%{buildroot}" in
%install ?

> 
> Best regards
> 
> [1]: https://github.com/open-eid/chrome-token-signing
> [2]:
> https://copr.fedorainfracloud.org/coprs/germano/webextension-token-signing/build/721284/

Jens


pgpoLANrHqzeU.pgp
Description: Digitale Signatur von OpenPGP
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org


Re: Help for fixing %install spec file section (Error make: *** No rule to make target 'install'. Stop.)

2018-02-26 Thread Germano Massullo
Il 26/02/2018 20:09, Jens Lody ha scritto:
> Did you try "make -C host-linux install DESTDIR=%{buildroot}" in
> %install ?

Thank you! Now compilation starts at least!

[...]

Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.s3F6YN
+ umask 022
+ cd /builddir/build/BUILD
+ '[' /builddir/build/BUILDROOT/webextension-token-signing-1.0.6-1.fc27.x86_64 
'!=' / ']'
+ rm -rf 
/builddir/build/BUILDROOT/webextension-token-signing-1.0.6-1.fc27.x86_64
++ dirname 
/builddir/build/BUILDROOT/webextension-token-signing-1.0.6-1.fc27.x86_64
+ mkdir -p /builddir/build/BUILDROOT
+ mkdir /builddir/build/BUILDROOT/webextension-token-signing-1.0.6-1.fc27.x86_64
+ cd chrome-token-signing-1.0.6
+ make -C host-linux install 
DESTDIR=/builddir/build/BUILDROOT/webextension-token-signing-1.0.6-1.fc27.x86_64
make: Entering directory 
'/builddir/build/BUILD/chrome-token-signing-1.0.6/host-linux'
make -f Makefile install
make[1]: Entering directory 
'/builddir/build/BUILD/chrome-token-signing-1.0.6/host-linux'
/usr/lib64/qt5/bin/qmake -install qinstall -exe chrome-token-signing 
/usr/bin/chrome-token-signing
Error copying chrome-token-signing to /usr/bin/chrome-token-signing: Cannot 
create /usr/bin/chrome-token-signing for output
make[1]: [Makefile:421: install_target] Error 3 (ignored)
strip /usr/bin/chrome-token-signing
strip: '/usr/bin/chrome-token-signing': No such file
make[1]: [Makefile:422: install_target] Error 1 (ignored)
mkdir: cannot create directory '/etc/opt/chrome': Permission denied
make[1]: *** [Makefile:430: install_hostconf] Error 1
make[1]: Leaving directory 
'/builddir/build/BUILD/chrome-token-signing-1.0.6/host-linux'
make: Leaving directory 
'/builddir/build/BUILD/chrome-token-signing-1.0.6/host-linux'
make: *** [GNUmakefile:32: install] Error 2


Build:
https://copr-be.cloud.fedoraproject.org/results/germano/webextension-token-signing/fedora-27-x86_64/00721343-webextension-token-signing/
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org


Re: Help for fixing %install spec file section (Error make: *** No rule to make target 'install'. Stop.)

2018-02-26 Thread Sérgio Basto
On Mon, 2018-02-26 at 20:57 +0100, Germano Massullo wrote:
> mkdir: cannot create directory '/etc/opt/chrome': Permission denied

now you got this is the error 



-- 
Sérgio M. B.
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org


Re: Help for fixing %install spec file section (Error make: *** No rule to make target 'install'. Stop.)

2018-02-26 Thread Kevin Kofler
Sérgio Basto wrote:
> On Mon, 2018-02-26 at 20:57 +0100, Germano Massullo wrote:
>> mkdir: cannot create directory '/etc/opt/chrome': Permission denied
> 
> now you got this is the error

The makefile is not correctly honoring DESTDIR.

Kevin Kofler
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org


Re: Help for fixing %install spec file section (Error make: *** No rule to make target 'install'. Stop.)

2018-02-26 Thread Rex Dieter
Kevin Kofler wrote:

> Sérgio Basto wrote:
>> On Mon, 2018-02-26 at 20:57 +0100, Germano Massullo wrote:
>>> mkdir: cannot create directory '/etc/opt/chrome': Permission denied
>> 
>> now you got this is the error
> 
> The makefile is not correctly honoring DESTDIR.

Since it uses qmake, you could try setting INSTALL_ROOT as well:

make install ... INSTALL_ROOT=%{buildroot}

-- Rex
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org


Re: Help for fixing %install spec file section (Error make: *** No rule to make target 'install'. Stop.)

2018-02-26 Thread Germano Massullo
Il 27/02/2018 01:16, Rex Dieter ha scritto:
> Kevin Kofler wrote:
>
>> Sérgio Basto wrote:
>>> On Mon, 2018-02-26 at 20:57 +0100, Germano Massullo wrote:
 mkdir: cannot create directory '/etc/opt/chrome': Permission denied
>>> now you got this is the error
>> The makefile is not correctly honoring DESTDIR.
> Since it uses qmake, you could try setting INSTALL_ROOT as well:
>
> make install ... INSTALL_ROOT=%{buildroot}
Replacing
make -C host-linux install DESTDIR=%%{buildroot}
with
make -C host-linux install INSTALL_ROOT=%{buildroot}
seemed to work, indeed rpmbuild looks like it has gone ahead in package
compilation.

Now I can take care of remaining missing macros in %files section.

Thanks to everybody!
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org