Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] Cannot cross-compile gettext
@ 2022-01-02 18:06 lfdebrux
  2022-01-02 18:13 ` lfdebrux
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: lfdebrux @ 2022-01-02 18:06 UTC (permalink / raw)
  To: ml

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

New issue by lfdebrux on void-packages repository

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

Description:
### System

* xuname:  
  *Void 5.11.22_1 x86_64-musl GenuineIntel notuptodate rFFF*
* package:  
  *gettext-0.21_4*

### Expected behavior

`./xbps-src -a <target> configure gettext` runs successfully.

### Actual behavior

The pre-configure step fails with error

```
=> gettext-0.21_4: running pre_configure ...
... ( lines omitted)
configure.ac:25: error: AC_INIT should be called with package and version arguments
: gl_AM_INIT_AUTOMAKE is expanded from...
/usr/share/aclocal-1.16/init.m4:29: AM_INIT_AUTOMAKE is expanded from...
configure.ac:25: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: error: /usr/bin/autom4te failed with exit status: 1
autoreconf: aclocal failed with exit status: 1
=> ERROR: gettext-0.21_4: pre_configure: 'autoreconf -fi' exited with 1
=> ERROR:   in pre_configure() at srcpkgs/gettext/template:42
```

I've tried this with various targets, the error is always the same.

I noticed that for this template the pre-configure step only happens when cross-compiling:

https://github.com/void-linux/void-packages/blob/2f4626f2c85e16e77a63b379e03c533adbdea9b9/srcpkgs/gettext/template#L39-L42

If the command to run `autoreconf` is removed from the template then the configure completes successfully, and the package can be built and run without any issues that I've seen.

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

* Re: Cannot cross-compile gettext
  2022-01-02 18:06 [ISSUE] Cannot cross-compile gettext lfdebrux
@ 2022-01-02 18:13 ` lfdebrux
  2022-01-02 18:13 ` lfdebrux
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: lfdebrux @ 2022-01-02 18:13 UTC (permalink / raw)
  To: ml

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

New comment by lfdebrux on void-packages repository

https://github.com/void-linux/void-packages/issues/34810#issuecomment-1003754647

Comment:
The step to run `autoreconf -fi` was added back in 2013 for version 0.18.3 of gettext:

https://github.com/void-linux/void-packages/commit/17f6ad8b9c9319c46820941e7fbae3f73ddcb20a

There isn't and detail in the commit message why running autoreconf is needed, I` tried googling 'gettext autoreconf' but couldn't find anything relevant. Googling 'gettext cross-compile' also didn't suggest that autoreconf is needed. There's also nothing about in the package `INSTALL` doc, either [then](https://git.savannah.gnu.org/gitweb/?p=gettext.git;a=blob;f=INSTALL;h=671b157a6429121883c370dbfd80f4b09217cb26;hb=147dbca63d56e784ae0bfdf4e8174c110c384ec6) or [now](https://git.savannah.gnu.org/gitweb/?p=gettext.git;a=blob;f=INSTALL;h=671b157a6429121883c370dbfd80f4b09217cb26;hb=eb83efc3b58d690d444da0b82c3ecf36a54f28ac).

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

* Re: Cannot cross-compile gettext
  2022-01-02 18:06 [ISSUE] Cannot cross-compile gettext lfdebrux
  2022-01-02 18:13 ` lfdebrux
@ 2022-01-02 18:13 ` lfdebrux
  2022-01-02 18:33 ` ericonr
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: lfdebrux @ 2022-01-02 18:13 UTC (permalink / raw)
  To: ml

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

New comment by lfdebrux on void-packages repository

https://github.com/void-linux/void-packages/issues/34810#issuecomment-1003754647

Comment:
The step to run `autoreconf -fi` was added back in 2013 for version 0.18.3 of gettext:

https://github.com/void-linux/void-packages/commit/17f6ad8b9c9319c46820941e7fbae3f73ddcb20a

There isn't and detail in the commit message why running autoreconf is needed, I tried googling 'gettext autoreconf' but couldn't find anything relevant. Googling 'gettext cross-compile' also didn't suggest that autoreconf is needed. There's also nothing about in the package `INSTALL` doc, either [then](https://git.savannah.gnu.org/gitweb/?p=gettext.git;a=blob;f=INSTALL;h=671b157a6429121883c370dbfd80f4b09217cb26;hb=147dbca63d56e784ae0bfdf4e8174c110c384ec6) or [now](https://git.savannah.gnu.org/gitweb/?p=gettext.git;a=blob;f=INSTALL;h=671b157a6429121883c370dbfd80f4b09217cb26;hb=eb83efc3b58d690d444da0b82c3ecf36a54f28ac).

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

* Re: Cannot cross-compile gettext
  2022-01-02 18:06 [ISSUE] Cannot cross-compile gettext lfdebrux
  2022-01-02 18:13 ` lfdebrux
  2022-01-02 18:13 ` lfdebrux
@ 2022-01-02 18:33 ` ericonr
  2022-01-03 18:20 ` lfdebrux
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ericonr @ 2022-01-02 18:33 UTC (permalink / raw)
  To: ml

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

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/issues/34810#issuecomment-1003756933

Comment:
Can you specify the target you're using?

The most likely thing is that their pre generated configure script had issues for cross which were fixed by re generating them. It's possible that no longer applies.

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

* Re: Cannot cross-compile gettext
  2022-01-02 18:06 [ISSUE] Cannot cross-compile gettext lfdebrux
                   ` (2 preceding siblings ...)
  2022-01-02 18:33 ` ericonr
@ 2022-01-03 18:20 ` lfdebrux
  2022-01-03 19:50 ` ericonr
  2022-04-17 17:34 ` [ISSUE] [CLOSED] " paper42
  5 siblings, 0 replies; 7+ messages in thread
From: lfdebrux @ 2022-01-03 18:20 UTC (permalink / raw)
  To: ml

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

New comment by lfdebrux on void-packages repository

https://github.com/void-linux/void-packages/issues/34810#issuecomment-1004270502

Comment:
@ericonr 

I was compiling for targets `i686-musl` and `armv5tel-musl`. Same result for both, error running `autoreconf`, compilation went fine. I also tried with `i686` and `x86_64`, also got the same error.

I'm not sure the target makes a difference, it just seems like running autoreconf doesn't work in the gettext source directory? I didn't try running autoreconf on a glibc system though, I guess that could make a difference?

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

* Re: Cannot cross-compile gettext
  2022-01-02 18:06 [ISSUE] Cannot cross-compile gettext lfdebrux
                   ` (3 preceding siblings ...)
  2022-01-03 18:20 ` lfdebrux
@ 2022-01-03 19:50 ` ericonr
  2022-04-17 17:34 ` [ISSUE] [CLOSED] " paper42
  5 siblings, 0 replies; 7+ messages in thread
From: ericonr @ 2022-01-03 19:50 UTC (permalink / raw)
  To: ml

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

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/issues/34810#issuecomment-1004318022

Comment:
Ok, I can reproduce this locally.

I think it has to do with the automake updates... Fixing this in their build system would be ideal, but I'm not sure I'd like to delve inside :P 

If you'd like to create a PR to remove the autoreconf, that sounds reasonable.

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

* Re: [ISSUE] [CLOSED] Cannot cross-compile gettext
  2022-01-02 18:06 [ISSUE] Cannot cross-compile gettext lfdebrux
                   ` (4 preceding siblings ...)
  2022-01-03 19:50 ` ericonr
@ 2022-04-17 17:34 ` paper42
  5 siblings, 0 replies; 7+ messages in thread
From: paper42 @ 2022-04-17 17:34 UTC (permalink / raw)
  To: ml

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

Closed issue by lfdebrux on void-packages repository

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

Description:
### System

* xuname:  
  *Void 5.11.22_1 x86_64-musl GenuineIntel notuptodate rFFF*
* package:  
  *gettext-0.21_4*

### Expected behavior

`./xbps-src -a <target> configure gettext` runs successfully.

### Actual behavior

The pre-configure step fails with error

```
=> gettext-0.21_4: running pre_configure ...
... ( lines omitted)
configure.ac:25: error: AC_INIT should be called with package and version arguments
: gl_AM_INIT_AUTOMAKE is expanded from...
/usr/share/aclocal-1.16/init.m4:29: AM_INIT_AUTOMAKE is expanded from...
configure.ac:25: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: error: /usr/bin/autom4te failed with exit status: 1
autoreconf: aclocal failed with exit status: 1
=> ERROR: gettext-0.21_4: pre_configure: 'autoreconf -fi' exited with 1
=> ERROR:   in pre_configure() at srcpkgs/gettext/template:42
```

I've tried this with various targets, the error is always the same.

I noticed that for this template the pre-configure step only happens when cross-compiling:

https://github.com/void-linux/void-packages/blob/2f4626f2c85e16e77a63b379e03c533adbdea9b9/srcpkgs/gettext/template#L39-L42

If the command to run `autoreconf` is removed from the template then the configure completes successfully, and the package can be built and run without any issues that I've seen.

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

end of thread, other threads:[~2022-04-17 17:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-02 18:06 [ISSUE] Cannot cross-compile gettext lfdebrux
2022-01-02 18:13 ` lfdebrux
2022-01-02 18:13 ` lfdebrux
2022-01-02 18:33 ` ericonr
2022-01-03 18:20 ` lfdebrux
2022-01-03 19:50 ` ericonr
2022-04-17 17:34 ` [ISSUE] [CLOSED] " 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).