Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] Subpackage install error: `non-PIE executable found in PIE build`
@ 2022-03-04 12:17 adigitoleo
  2022-03-08 19:32 ` Chocimier
  2022-03-08 19:32 ` [ISSUE] [CLOSED] " Chocimier
  0 siblings, 2 replies; 3+ messages in thread
From: adigitoleo @ 2022-03-04 12:17 UTC (permalink / raw)
  To: ml

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

New issue by adigitoleo on void-packages repository

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

Description:
### System

* xuname:  Void 5.15.24_1 x86_64 AuthenticAMD notuptodate rFFF
* package:  new package draft for [wraith-master](https://gitlab.com/serebit/wraith-master)

### Expected behavior

Package installs successfully, using the template from #35883 (with `tar` added to hostmakedepends).

### Actual behavior

Build succeeds but the install fails:

```
=> wraith-master-cli-1.2.1_1: running post-install hook: 03-remove-empty-dirs ...
=> WARNING: wraith-master-cli-1.2.1_1: removed empty dir: /usr/lib
=> wraith-master-cli-1.2.1_1: running post-install hook: 04-create-xbps-metadata-scripts ...
=> wraith-master-cli-1.2.1_1: running post-install hook: 05-generate-gitrevs ...
=> wraith-master-cli-1.2.1_1: running post-install hook: 06-strip-and-debug-pkgs ...
   Stripped executable: /usr/bin/wraith-master
=> ERROR: wraith-master-cli-1.2.1_1: non-PIE executable found in PIE build: /usr/bin/wraith-master
=> ERROR: wraith-master-cli-1.2.1_1: post-install_06-strip-and-debug-pkgs: 'find ${PKGDESTDIR} -type f' exited with 1
=> ERROR:   in hook() at common/hooks/post-install/06-strip-and-debug-pkgs.sh:68
=> ERROR:   in run_func() at common/xbps-src/shutils/common.sh:21
=> ERROR:   in run_pkg_hooks() at common/xbps-src/shutils/common.sh:245
=> ERROR:   in main() at common/xbps-src/libexec/xbps-src-doinstall.sh:66
```

Why does it want the executable to be PIE? Does it have to do with the `/usr/lib` directory being detected?

### Steps to reproduce the behavior

Try to build the corrected template from the linked issue.

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

* Re: Subpackage install error: `non-PIE executable found in PIE build`
  2022-03-04 12:17 [ISSUE] Subpackage install error: `non-PIE executable found in PIE build` adigitoleo
@ 2022-03-08 19:32 ` Chocimier
  2022-03-08 19:32 ` [ISSUE] [CLOSED] " Chocimier
  1 sibling, 0 replies; 3+ messages in thread
From: Chocimier @ 2022-03-08 19:32 UTC (permalink / raw)
  To: ml

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

New comment by Chocimier on void-packages repository

https://github.com/void-linux/void-packages/issues/35960#issuecomment-1062129796

Comment:
PIE is needed for address space layout randomization.
If the toolchain is incapable of producing it, you can set `nopie_files=`.

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

* Re: [ISSUE] [CLOSED] Subpackage install error: `non-PIE executable found in PIE build`
  2022-03-04 12:17 [ISSUE] Subpackage install error: `non-PIE executable found in PIE build` adigitoleo
  2022-03-08 19:32 ` Chocimier
@ 2022-03-08 19:32 ` Chocimier
  1 sibling, 0 replies; 3+ messages in thread
From: Chocimier @ 2022-03-08 19:32 UTC (permalink / raw)
  To: ml

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

Closed issue by adigitoleo on void-packages repository

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

Description:
### System

* xuname:  Void 5.15.24_1 x86_64 AuthenticAMD notuptodate rFFF
* package:  new package draft for [wraith-master](https://gitlab.com/serebit/wraith-master)

### Expected behavior

Package installs successfully, using [the draft template](https://github.com/adigitoleo/void-packages/blob/ef5db2f01d927147062640433a1c8cd69a104ba8/srcpkgs/wraith-master/template)

### Actual behavior

Build succeeds but the install fails:

```
=> wraith-master-cli-1.2.1_1: running post-install hook: 03-remove-empty-dirs ...
=> WARNING: wraith-master-cli-1.2.1_1: removed empty dir: /usr/lib
=> wraith-master-cli-1.2.1_1: running post-install hook: 04-create-xbps-metadata-scripts ...
=> wraith-master-cli-1.2.1_1: running post-install hook: 05-generate-gitrevs ...
=> wraith-master-cli-1.2.1_1: running post-install hook: 06-strip-and-debug-pkgs ...
   Stripped executable: /usr/bin/wraith-master
=> ERROR: wraith-master-cli-1.2.1_1: non-PIE executable found in PIE build: /usr/bin/wraith-master
=> ERROR: wraith-master-cli-1.2.1_1: post-install_06-strip-and-debug-pkgs: 'find ${PKGDESTDIR} -type f' exited with 1
=> ERROR:   in hook() at common/hooks/post-install/06-strip-and-debug-pkgs.sh:68
=> ERROR:   in run_func() at common/xbps-src/shutils/common.sh:21
=> ERROR:   in run_pkg_hooks() at common/xbps-src/shutils/common.sh:245
=> ERROR:   in main() at common/xbps-src/libexec/xbps-src-doinstall.sh:66
```

Why does it want the executable to be PIE? Does it have to do with the `/usr/lib` directory being detected?

### Steps to reproduce the behavior

Try to build the linked template: `./xbps-src pkg wraith-master-cli` (You'll need the symlinks from the same commit).

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

end of thread, other threads:[~2022-03-08 19:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-04 12:17 [ISSUE] Subpackage install error: `non-PIE executable found in PIE build` adigitoleo
2022-03-08 19:32 ` Chocimier
2022-03-08 19:32 ` [ISSUE] [CLOSED] " Chocimier

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).