Issues creating Gentoo package for Yuescript
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 42/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Área
- build-system
Línea de trabajo
Comienza inspeccionando los makefiles y archivos CMake del proyecto, centrándote en la selección de la implementación de Lua, las flags del compilador y del enlazador, y la ubicación de instalación del ejecutable yue. Compara esos puntos de entrada de compilación con los requisitos del ebuild de Gentoo descritos en el issue. Se considera hecho cuando un paquete de Gentoo puede seleccionar su implementación de Lua, conservar las flags del usuario e instalar yue en /usr/bin.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Hello!
I thought I'd try my hand at creating a Gentoo package for Yuescript, but I'm running into a few issues. If you want, you can read the forum post I made, but I'll try to outline the relevant issues here.
Building against different Lua implementations.
In Gentoo, you can add the ability to build certain packages against certain language versions, either multiple or single. In the case of fennel, you can build it against Lua 5.3, 5.4 or LuaJIT, not all 3. See the ebuild (it's somewhat like PKGBUILD) for fennel here.
To do this for Yuescript, I'm unsure. Using Gentoo's functionality to build Yuescript against LuaJIT, I notice that it will build with -DLUA_COMPAT_5_3. Obviously one probably doesn't want this if they want to build against Lua 5.4 or LuaJIT. How to change this specifically I imagine involves patching something in a (c)makefile.
User CFLAGS are ignored
Another Gentoo thing is that you can set your CFLAGS universally for all packages, as well as LDFLAGS and so on. See the wiki page for /etc/portage/make.conf if you want to look at it in more detail.
It seems the makefiles for Yuescript will ignore these entirely, as it will build with
-std=gnu99 -O2 -Wall -Wextra -DLUA_COMPAT_5_3 -DLUA_USE_LINUX
This excludes a lot of flags that I've set, and I suspect the build is also ignoring that I've set the default linker to be mold. Again, maybe this involves patching something in a (c)makefile.
Resulting yue executable should go in /usr/bin
This is likely the simplest thing, but in Gentoo package's executables should go in /usr/bin not /usr/local/bin. Again, probably another patch situation or just overriding some envvar Yuescript's (c)makefiles will read.
To clarify, when I say "patch" I don't mean anyone here needs to change something in the project. In Gentoo, one can have package specific patches that can be applied before building said package. These could be for project build files (makefiles) or files in the source code itself.
I can make the patches, I just need to know what needs to be patched.
- Lenguaje dominante
- Lua
- Estrellas
- 620
- Forks
- 45
- Merge medio
- 9 h 5 min
- PR fusionados (30 d)
- 1
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de IppClub/YueScript
-
Dificultad 3/5 1-2 días Aptitud para principiantes 64/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
-
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
-
[Feature request] Smarter macrosAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
Todos los issues de IppClub/YueScript
Issues similares
-
follow-up
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
ksysoev/duet.nvim#265 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug: accuracy
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
PathOfBuildingCommunity/PathOfBuilding#10649 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
nvim-orgmode/orgmode#1213 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
version-fox/vfox-php#41 ·
Los mantenedores suelen responder en 1 día
-
bug(image): image disappears when returning to an existing image buffer (hidden never reset)Posiblemente ocupada @ApexGP la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
folke/snacks.nvim#3011 ·