Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] Built successfully but can't install with build_style=gnu-makefile
@ 2021-02-01  9:19 g4s8
  2021-02-01  9:35 ` Gottox
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: g4s8 @ 2021-02-01  9:19 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 6581 bytes --]

New issue by g4s8 on void-packages repository

https://github.com/void-linux/void-packages/issues/28376

Description:
<!-- Don't request update of package. We have a script for that. https://alpha.de.repo.voidlinux.org/void-updates/void-updates.txt . However, a quality pull request may help. -->
### System

* xuname:  
  *Void 5.10.8_1 x86_64 GenuineIntel uptodate rF*
* package:  
  *trying to add new package*

### Expected behavior
Package installed successfully

### Actual behavior
```
=> ERROR: hashcash-1.22_1: PKGDESTDIR is empty and build_style != meta
=> ERROR: hashcash-1.22_1: cannot continue with installation!
```

### Steps to reproduce the behavior

Hi, I'm trying to create new void package `hashcash` tool http://www.hashcash.org/. I created new template using `xnew hashcash`, and then filled required fields, the template file is:
```
# Template file for 'hashcash'
pkgname=hashcash
version=1.22
revision=1
build_style=gnu-makefile
make_build_args+=" hashcash docs"
make_install_args+=" hashcash" # also tried empty line
hostmakedepends="make"
makedepends=""
depends=""
short_desc="Hashcash is a proof-of-work algorithm, which has been used as a denial-of-service counter measure technique in a number of systems"
maintainer="Kirill Che. <g4s8.public@gmail.com>"
license="GPL-3.0-or-later"
homepage="http://www.hashcash.org"
distfiles="http://www.hashcash.org/source/hashcash-1.22.tgz"
checksum=0192f12d41ce4848e60384398c5ff83579b55710601c7bffe6c88bc56b547896
```
Then I run `./xbps-src pkg hashcash`:
```
=> xbps-src: updating repositories for host (x86_64)...
[*] Updating repository `https://alpha.de.repo.voidlinux.org/current/x86_64-repodata' ...
[*] Updating repository `https://alpha.de.repo.voidlinux.org/current/nonfree/x86_64-repodata' ...
[*] Updating repository `https://alpha.de.repo.voidlinux.org/current/debug/x86_64-repodata' ...
[*] Updating repository `https://alpha.de.repo.voidlinux.org/current/multilib/x86_64-repodata' ...
[*] Updating repository `https://alpha.de.repo.voidlinux.org/current/multilib/nonfree/x86_64-repodata' ...
=> xbps-src: updating software in / masterdir...
=> xbps-src: cleaning up / masterdir...
=> hashcash-1.22_1: removing autodeps, please wait...
=> hashcash-1.22_1: building [gnu-makefile] for x86_64...
   [host] make-4.3_3: found (https://alpha.de.repo.voidlinux.org/current)
=> hashcash-1.22_1: installing host dependencies: make-4.3_3 ...
=> hashcash-1.22_1: running do-fetch hook: 00-distfiles ...
=> hashcash-1.22_1: running do-extract hook: 00-distfiles ...
=> hashcash-1.22_1: extracting distfile(s), please wait...
=> hashcash-1.22_1: running do-patch hook: 00-patches ...
=> hashcash-1.22_1: running pre-configure hook: 00-gnu-configure-asneeded ...
=> hashcash-1.22_1: running pre-configure hook: 01-override-config ...
=> hashcash-1.22_1: running pre-configure hook: 02-script-wrapper ...
=> hashcash-1.22_1: running pre-build hook: 02-script-wrapper ...
=> hashcash-1.22_1: running do_build ...
cc -fstack-clash-protection -D_FORTIFY_SOURCE=2 -mtune=generic -O2 -pipe         -c -o hashcash.o hashcash.c
cc -fstack-clash-protection -D_FORTIFY_SOURCE=2 -mtune=generic -O2 -pipe         -c -o getopt.o getopt.c
cc -fstack-clash-protection -D_FORTIFY_SOURCE=2 -mtune=generic -O2 -pipe         -c -o libhc.o libhc.c

... skipping some build logs ...

cc hashcash.o getopt.o libhashcash.a -o hashcash -Wl,-z,relro -Wl,-z,now -Wl,--as-needed    
make: Nothing to be done for 'docs'.
=> hashcash-1.22_1: skipping check (XBPS_CHECK_PKGS is disabled) ...
=> hashcash-1.22_1: running pre-install hook: 00-libdir ...
=> hashcash-1.22_1: running pre-install hook: 02-script-wrapper ...
=> hashcash-1.22_1: running pre-install hook: 98-fixup-gir-path ...
=> hashcash-1.22_1: running do_install ...
make: 'hashcash' is up to date.
cc -fstack-clash-protection -D_FORTIFY_SOURCE=2 -mtune=generic -O2 -pipe         -c -o sha1.o sha1.c
cc sha1.o libsha1.o -o sha1 -Wl,-z,relro -Wl,-z,now -Wl,--as-needed    
install -d /usr/bin
install hashcash sha1 /usr/bin
install -d /usr/share/man/man1
install -m 644 hashcash.1 sha1-hashcash.1 /usr/share/man/man1
install -d /usr/share/doc/hashcash-1.22
install -m 644 README LICENSE CHANGELOG /usr/share/doc/hashcash-1.22
=> hashcash-1.22_1: running post-install hook: 00-compress-info-files ...
=> hashcash-1.22_1: running post-install hook: 00-fixup-gir-path ...
=> hashcash-1.22_1: running post-install hook: 00-libdir ...
=> hashcash-1.22_1: running post-install hook: 00-uncompress-manpages ...
=> hashcash-1.22_1: running post-install hook: 01-remove-misc ...
=> hashcash-1.22_1: running post-install hook: 02-remove-libtool-archives ...
=> hashcash-1.22_1: running post-install hook: 02-remove-perl-files ...
=> hashcash-1.22_1: running post-install hook: 02-remove-python-bytecode-files ...
=> hashcash-1.22_1: running post-install hook: 03-remove-empty-dirs ...
=> WARNING: hashcash-1.22_1: removed empty dir: /usr/lib
=> WARNING: hashcash-1.22_1: removed empty dir: /usr
=> hashcash-1.22_1: running post-install hook: 04-create-xbps-metadata-scripts ...
=> hashcash-1.22_1: running post-install hook: 05-generate-gitrevs ...
=> hashcash-1.22_1: running post-install hook: 06-strip-and-debug-pkgs ...
=> hashcash-1.22_1: running post-install hook: 10-pkglint-devel-paths ...
=> hashcash-1.22_1: running post-install hook: 11-pkglint-elf-in-usrshare ...
=> hashcash-1.22_1: running post-install hook: 12-rename-python3-c-bindings ...
=> hashcash-1.22_1: running post-install hook: 13-pkg-config-clean-xbps-cross-base-ref ...
=> hashcash-1.22_1: running post-install hook: 99-pkglint-warn-cross-cruft ...
=> hashcash-1.22_1: running pre-pkg hook: 03-rewrite-python-shebang ...
=> hashcash-1.22_1: running pre-pkg hook: 04-generate-runtime-deps ...
=> hashcash-1.22_1: running pre-pkg hook: 05-prepare-32bit ...
=> hashcash-1.22_1: running pre-pkg hook: 06-shlib-provides ...
=> hashcash-1.22_1: running pre-pkg hook: 90-set-timestamps ...
=> hashcash-1.22_1: setting mtimes to Mon Feb  1 09:14:39 AM UTC 2021
=> hashcash-1.22_1: running pre-pkg hook: 99-pkglint-subpkgs ...
=> hashcash-1.22_1: running pre-pkg hook: 99-pkglint ...
=> ERROR: hashcash-1.22_1: PKGDESTDIR is empty and build_style != meta
=> ERROR: hashcash-1.22_1: cannot continue with installation!
```
It successfully built the binaries, but failed to install it. What could be a problem? The error message is not really informative and I can't find any ticket or documentation about it.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Built successfully but can't install with build_style=gnu-makefile
  2021-02-01  9:19 [ISSUE] Built successfully but can't install with build_style=gnu-makefile g4s8
@ 2021-02-01  9:35 ` Gottox
  2021-02-01  9:35 ` [ISSUE] [CLOSED] " Gottox
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Gottox @ 2021-02-01  9:35 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 239 bytes --]

New comment by Gottox on void-packages repository

https://github.com/void-linux/void-packages/issues/28376#issuecomment-770716558

Comment:
The package gets installed into the root instead of DESTDIR. The upstream Makefile is wrong here.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [ISSUE] [CLOSED] Built successfully but can't install with build_style=gnu-makefile
  2021-02-01  9:19 [ISSUE] Built successfully but can't install with build_style=gnu-makefile g4s8
  2021-02-01  9:35 ` Gottox
@ 2021-02-01  9:35 ` Gottox
  2021-02-01 10:55 ` g4s8
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Gottox @ 2021-02-01  9:35 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 6584 bytes --]

Closed issue by g4s8 on void-packages repository

https://github.com/void-linux/void-packages/issues/28376

Description:
<!-- Don't request update of package. We have a script for that. https://alpha.de.repo.voidlinux.org/void-updates/void-updates.txt . However, a quality pull request may help. -->
### System

* xuname:  
  *Void 5.10.8_1 x86_64 GenuineIntel uptodate rF*
* package:  
  *trying to add new package*

### Expected behavior
Package installed successfully

### Actual behavior
```
=> ERROR: hashcash-1.22_1: PKGDESTDIR is empty and build_style != meta
=> ERROR: hashcash-1.22_1: cannot continue with installation!
```

### Steps to reproduce the behavior

Hi, I'm trying to create new void package `hashcash` tool http://www.hashcash.org/. I created new template using `xnew hashcash`, and then filled required fields, the template file is:
```
# Template file for 'hashcash'
pkgname=hashcash
version=1.22
revision=1
build_style=gnu-makefile
make_build_args+=" hashcash docs"
make_install_args+=" hashcash" # also tried empty line
hostmakedepends="make"
makedepends=""
depends=""
short_desc="Hashcash is a proof-of-work algorithm, which has been used as a denial-of-service counter measure technique in a number of systems"
maintainer="Kirill Che. <g4s8.public@gmail.com>"
license="GPL-3.0-or-later"
homepage="http://www.hashcash.org"
distfiles="http://www.hashcash.org/source/hashcash-1.22.tgz"
checksum=0192f12d41ce4848e60384398c5ff83579b55710601c7bffe6c88bc56b547896
```
Then I run `./xbps-src pkg hashcash`:
```
=> xbps-src: updating repositories for host (x86_64)...
[*] Updating repository `https://alpha.de.repo.voidlinux.org/current/x86_64-repodata' ...
[*] Updating repository `https://alpha.de.repo.voidlinux.org/current/nonfree/x86_64-repodata' ...
[*] Updating repository `https://alpha.de.repo.voidlinux.org/current/debug/x86_64-repodata' ...
[*] Updating repository `https://alpha.de.repo.voidlinux.org/current/multilib/x86_64-repodata' ...
[*] Updating repository `https://alpha.de.repo.voidlinux.org/current/multilib/nonfree/x86_64-repodata' ...
=> xbps-src: updating software in / masterdir...
=> xbps-src: cleaning up / masterdir...
=> hashcash-1.22_1: removing autodeps, please wait...
=> hashcash-1.22_1: building [gnu-makefile] for x86_64...
   [host] make-4.3_3: found (https://alpha.de.repo.voidlinux.org/current)
=> hashcash-1.22_1: installing host dependencies: make-4.3_3 ...
=> hashcash-1.22_1: running do-fetch hook: 00-distfiles ...
=> hashcash-1.22_1: running do-extract hook: 00-distfiles ...
=> hashcash-1.22_1: extracting distfile(s), please wait...
=> hashcash-1.22_1: running do-patch hook: 00-patches ...
=> hashcash-1.22_1: running pre-configure hook: 00-gnu-configure-asneeded ...
=> hashcash-1.22_1: running pre-configure hook: 01-override-config ...
=> hashcash-1.22_1: running pre-configure hook: 02-script-wrapper ...
=> hashcash-1.22_1: running pre-build hook: 02-script-wrapper ...
=> hashcash-1.22_1: running do_build ...
cc -fstack-clash-protection -D_FORTIFY_SOURCE=2 -mtune=generic -O2 -pipe         -c -o hashcash.o hashcash.c
cc -fstack-clash-protection -D_FORTIFY_SOURCE=2 -mtune=generic -O2 -pipe         -c -o getopt.o getopt.c
cc -fstack-clash-protection -D_FORTIFY_SOURCE=2 -mtune=generic -O2 -pipe         -c -o libhc.o libhc.c

... skipping some build logs ...

cc hashcash.o getopt.o libhashcash.a -o hashcash -Wl,-z,relro -Wl,-z,now -Wl,--as-needed    
make: Nothing to be done for 'docs'.
=> hashcash-1.22_1: skipping check (XBPS_CHECK_PKGS is disabled) ...
=> hashcash-1.22_1: running pre-install hook: 00-libdir ...
=> hashcash-1.22_1: running pre-install hook: 02-script-wrapper ...
=> hashcash-1.22_1: running pre-install hook: 98-fixup-gir-path ...
=> hashcash-1.22_1: running do_install ...
make: 'hashcash' is up to date.
cc -fstack-clash-protection -D_FORTIFY_SOURCE=2 -mtune=generic -O2 -pipe         -c -o sha1.o sha1.c
cc sha1.o libsha1.o -o sha1 -Wl,-z,relro -Wl,-z,now -Wl,--as-needed    
install -d /usr/bin
install hashcash sha1 /usr/bin
install -d /usr/share/man/man1
install -m 644 hashcash.1 sha1-hashcash.1 /usr/share/man/man1
install -d /usr/share/doc/hashcash-1.22
install -m 644 README LICENSE CHANGELOG /usr/share/doc/hashcash-1.22
=> hashcash-1.22_1: running post-install hook: 00-compress-info-files ...
=> hashcash-1.22_1: running post-install hook: 00-fixup-gir-path ...
=> hashcash-1.22_1: running post-install hook: 00-libdir ...
=> hashcash-1.22_1: running post-install hook: 00-uncompress-manpages ...
=> hashcash-1.22_1: running post-install hook: 01-remove-misc ...
=> hashcash-1.22_1: running post-install hook: 02-remove-libtool-archives ...
=> hashcash-1.22_1: running post-install hook: 02-remove-perl-files ...
=> hashcash-1.22_1: running post-install hook: 02-remove-python-bytecode-files ...
=> hashcash-1.22_1: running post-install hook: 03-remove-empty-dirs ...
=> WARNING: hashcash-1.22_1: removed empty dir: /usr/lib
=> WARNING: hashcash-1.22_1: removed empty dir: /usr
=> hashcash-1.22_1: running post-install hook: 04-create-xbps-metadata-scripts ...
=> hashcash-1.22_1: running post-install hook: 05-generate-gitrevs ...
=> hashcash-1.22_1: running post-install hook: 06-strip-and-debug-pkgs ...
=> hashcash-1.22_1: running post-install hook: 10-pkglint-devel-paths ...
=> hashcash-1.22_1: running post-install hook: 11-pkglint-elf-in-usrshare ...
=> hashcash-1.22_1: running post-install hook: 12-rename-python3-c-bindings ...
=> hashcash-1.22_1: running post-install hook: 13-pkg-config-clean-xbps-cross-base-ref ...
=> hashcash-1.22_1: running post-install hook: 99-pkglint-warn-cross-cruft ...
=> hashcash-1.22_1: running pre-pkg hook: 03-rewrite-python-shebang ...
=> hashcash-1.22_1: running pre-pkg hook: 04-generate-runtime-deps ...
=> hashcash-1.22_1: running pre-pkg hook: 05-prepare-32bit ...
=> hashcash-1.22_1: running pre-pkg hook: 06-shlib-provides ...
=> hashcash-1.22_1: running pre-pkg hook: 90-set-timestamps ...
=> hashcash-1.22_1: setting mtimes to Mon Feb  1 09:14:39 AM UTC 2021
=> hashcash-1.22_1: running pre-pkg hook: 99-pkglint-subpkgs ...
=> hashcash-1.22_1: running pre-pkg hook: 99-pkglint ...
=> ERROR: hashcash-1.22_1: PKGDESTDIR is empty and build_style != meta
=> ERROR: hashcash-1.22_1: cannot continue with installation!
```
It successfully built the binaries, but failed to install it. What could be a problem? The error message is not really informative and I can't find any ticket or documentation about it.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Built successfully but can't install with build_style=gnu-makefile
  2021-02-01  9:19 [ISSUE] Built successfully but can't install with build_style=gnu-makefile g4s8
  2021-02-01  9:35 ` Gottox
  2021-02-01  9:35 ` [ISSUE] [CLOSED] " Gottox
@ 2021-02-01 10:55 ` g4s8
  2021-07-24  8:12 ` notthewave
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: g4s8 @ 2021-02-01 10:55 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 205 bytes --]

New comment by g4s8 on void-packages repository

https://github.com/void-linux/void-packages/issues/28376#issuecomment-770766928

Comment:
Thanks. This issue was fixed in next version of upstream package.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Built successfully but can't install with build_style=gnu-makefile
  2021-02-01  9:19 [ISSUE] Built successfully but can't install with build_style=gnu-makefile g4s8
                   ` (2 preceding siblings ...)
  2021-02-01 10:55 ` g4s8
@ 2021-07-24  8:12 ` notthewave
  2021-07-24  8:14 ` notthewave
  2021-07-24  9:36 ` paper42
  5 siblings, 0 replies; 7+ messages in thread
From: notthewave @ 2021-07-24  8:12 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 213 bytes --]

New comment by notthewave on void-packages repository

https://github.com/void-linux/void-packages/issues/28376#issuecomment-886018648

Comment:
How can I tell that it gets installed into root instead of DESTDIR?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Built successfully but can't install with build_style=gnu-makefile
  2021-02-01  9:19 [ISSUE] Built successfully but can't install with build_style=gnu-makefile g4s8
                   ` (3 preceding siblings ...)
  2021-07-24  8:12 ` notthewave
@ 2021-07-24  8:14 ` notthewave
  2021-07-24  9:36 ` paper42
  5 siblings, 0 replies; 7+ messages in thread
From: notthewave @ 2021-07-24  8:14 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 269 bytes --]

New comment by notthewave on void-packages repository

https://github.com/void-linux/void-packages/issues/28376#issuecomment-886018648

Comment:
How can I tell that it gets installed into root instead of DESTDIR?
Have the same error output trying to package nwg-dock.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Built successfully but can't install with build_style=gnu-makefile
  2021-02-01  9:19 [ISSUE] Built successfully but can't install with build_style=gnu-makefile g4s8
                   ` (4 preceding siblings ...)
  2021-07-24  8:14 ` notthewave
@ 2021-07-24  9:36 ` paper42
  5 siblings, 0 replies; 7+ messages in thread
From: paper42 @ 2021-07-24  9:36 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 460 bytes --]

New comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/issues/28376#issuecomment-886027473

Comment:
@notthewave xbps-src should tell you that the resulting package is empty:

```
=> ERROR: hashcash-1.22_1: PKGDESTDIR is empty and build_style != meta
=> ERROR: hashcash-1.22_1: cannot continue with installation!
```

Also, you should always try installing the package before you submit it, so you would notice.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-07-24  9:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-01  9:19 [ISSUE] Built successfully but can't install with build_style=gnu-makefile g4s8
2021-02-01  9:35 ` Gottox
2021-02-01  9:35 ` [ISSUE] [CLOSED] " Gottox
2021-02-01 10:55 ` g4s8
2021-07-24  8:12 ` notthewave
2021-07-24  8:14 ` notthewave
2021-07-24  9:36 ` paper42

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).