Readit News logoReadit News
KolmogorovComp · a year ago
It's incredible the number of people who do not know how to read an open-source licence.

> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

I also think a more correct title should be "I could not build 7-zip from source", as they correctly acknowledge in the end.

> Ugh. This is a bit beyond my knowledge to fix

jchw · a year ago
> In the same thread from the author, they mention that asmc is a fork of JWasm 4, which was written in C. Maybe it’s as “easy” as swapping out one for the other - using gcc to build jwasm, then using jwasm to build asmc?

You can probably skip that and use one of the nasm-compatible assemblers directly with 7zip's build process instead...

> Even if I did want to use the prebuilt version, it’s dynamically linked to glibc so won’t work on alpine.

I imagine the gcompat package will get it running.

https://wiki.alpinelinux.org/wiki/Running_glibc_programs

The 7-zip code does admittedly scare me a bit at times, but the fact that it can be a pain to build isn't really that big of an issue. A lot of stuff is a pain to build. Like Chromium.

userbinator · a year ago
Dealing with people like this is why many don't want to open source their code. Take it or leave it.
maartenscholl · a year ago
The title distracts from the actual conclusion of the blog post, namely that it is apparently hard to build projects that include assembly on something called Alpine Linux.
boolemancer · a year ago
If all that's missing is 'a nasm compatible assembler', did they try just swapping it out for nasm, which seems to have a readily available alpine package?

https://pkgs.alpinelinux.org/package/edge/main/x86/nasm

gdgghhhhh · a year ago
Don't get me wrong, OSS does not mean it will build in any random configuration on any distro. The source is there. Maybe 7zip could do better, but still...
_bin_ · a year ago
> writes "nasm compatible assembler" like it's some dark incantation

> "i'm not going to argue, i can't read assembly and i don't want my built to be slow"

> i'm going to use a highly non-standard distro that's known to have serious build problems because it uses an alternate libc

> "this is a bit beyond my knowledge to fix"

why would igor pavlov do this???

joking aside there's literally a nasm package built for alpine. he could have just aliased asmc to it and 7z probably would have built fine.

unsnap_biceps · a year ago
The author doesn't mention if they considered switching to a glibc container to fix the lack of glibc. That seems a reasonable solution rather then swapping out the complete assembly compiler.