Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 763978 - =dev-ruby/http-parser-1.2.2 fails build: refers to x86_64-linux/libhttp-parser-ext.so on non-x86 targets
Summary: =dev-ruby/http-parser-1.2.2 fails build: refers to x86_64-linux/libhttp-parse...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 761550
  Show dependency tree
 
Reported: 2021-01-05 21:44 UTC by Sergei Trofimovich (RETIRED)
Modified: 2021-01-10 08:08 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Trofimovich (RETIRED) gentoo-dev 2021-01-05 21:44:57 UTC
Noticed build failure on hppa:

 * http-parser-1.2.2.gem BLAKE2B SHA512 size ;-) ...                     [ ok ]
>>> Unpacking source...
 * Running unpack phase for all ...
 * Unpacking .gem file... ...
 [ ok ]
 * Uncompressing metadata ...
 [ ok ]
 * Unpacking data.tar.gz ...
 [ ok ]
>>> Source unpacked in /var/tmp/portage/dev-ruby/http-parser-1.2.2/work
>>> Preparing source in /var/tmp/portage/dev-ruby/http-parser-1.2.2/work ...
 * Running prepare phase for all ...
 * Running prepare phase for all ...
 * Running source copy phase for ruby25 ...
 * Running source copy phase for ruby26 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-ruby/http-parser-1.2.2/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-ruby/http-parser-1.2.2/work ...
 * Running compile phase for ruby25 ...
mkdir -p hppa2.0-linux/http-parser
hppa2.0-unknown-linux-gnu-gcc -fexceptions -O -fno-omit-frame-pointer -fno-strict-aliasing -Wall -Wextra -O3 -fPIC   -o hppa2.0-linux/http-parser/http_parser.o -c ./http-parser/http_parser.c
hppa2.0-unknown-linux-gnu-gcc -shared -o hppa2.0-linux/libhttp-parser-ext.so hppa2.0-linux/http-parser/http_parser.o -fexceptions
mv: не удалось выполнить stat для 'ext/x86_64-linux/libhttp-parser-ext.so': Нет такого файла или каталога

(it's "no such file or directory"). DId not check where 'x86_64-linux' leaked out yet.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-01-05 21:50:46 UTC
Thanks, I hit this too and didn’t get to report it yet!
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2021-01-05 21:57:45 UTC
Oh, it's right in the ebuild: https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-ruby/http-parser/http-parser-1.2.2.ebuild#n28

```
each_ruby_compile() {
	${RUBY} -C ext -S rake || die
	mv ext/x86_64-linux/libhttp-parser-ext.so lib/http-parser/ || die
}
```
Comment 3 Hans de Graaff gentoo-dev Security 2021-01-10 08:08:30 UTC
(In reply to Sergei Trofimovich from comment #2)
> Oh, it's right in the ebuild:
> https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-ruby/http-parser/http-
> parser-1.2.2.ebuild#n28
> 
> ```
> each_ruby_compile() {
> 	${RUBY} -C ext -S rake || die
> 	mv ext/x86_64-linux/libhttp-parser-ext.so lib/http-parser/ || die
> }
> ```

Yes, sorry, that was for initial testing and I later didn't realise that was still in. Should hopefully be fixed now.
Comment 4 Larry the Git Cow gentoo-dev 2021-01-10 08:08:46 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01df953bffa5d4b40ed18d497351ee0bd081dde1

commit 01df953bffa5d4b40ed18d497351ee0bd081dde1
Author:     Hans de Graaff <graaff@gentoo.org>
AuthorDate: 2021-01-10 08:08:36 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2021-01-10 08:08:36 +0000

    dev-ruby/http-parser: don't hardcode build platform
    
    Closes: https://bugs.gentoo.org/763978
    Package-Manager: Portage-3.0.12, Repoman-3.0.2
    Signed-off-by: Hans de Graaff <graaff@gentoo.org>

 dev-ruby/http-parser/http-parser-1.2.2.ebuild | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)