orrery: Drop recipe

This recipe does not compile with gcc-14, looking at its history this
package comes from maemo5 days, There are no direct dependents in
meta-openembedded so I am proposing to remove it. Last commit to this
repo was made 12+ years ago.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Martin Jansa <martin.jansa@gmail.com>
This commit is contained in:
Khem Raj 2024-05-13 14:00:02 -07:00
parent c4a330ab89
commit fbb5911127
No known key found for this signature in database
GPG Key ID: BB053355919D3314
6 changed files with 0 additions and 155 deletions

View File

@ -688,7 +688,6 @@ RDEPENDS:packagegroup-meta-oe-multimedia ="\
RDEPENDS:packagegroup-meta-oe-navigation ="\
geos \
${@bb.utils.contains("DISTRO_FEATURES", "bluz4", "gpsd-machine-conf gpsd", "", d)} \
${@bb.utils.contains("DISTRO_FEATURES", "x11", "orrery", "", d)} \
geoclue \
libspatialite \
proj \

View File

@ -1,28 +0,0 @@
From e13f15205425c67e1101031a33107fa9cd2d65f9 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Fri, 26 May 2023 10:32:53 -0700
Subject: [PATCH] Append cflags instead of overriding in Makefile.am
Fixes
WARNING: orrery-2.7-r0 do_package_qa: QA Issue: File /usr/bin/.debug/orrery in package orrery-dbg contains reference to TMPDIR [buildpaths]
Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile.am b/Makefile.am
index b64449f..23637b3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,4 +1,4 @@
-CFLAGS = -g -O3 -Wall
+CFLAGS += -g -O3 -Wall
bin_PROGRAMS = orrery
orrery_SOURCES = planetInfo.c orrery.c orrery.h phaseConstants.h
--
2.40.1

View File

@ -1,28 +0,0 @@
From e600d3c09d2f97a197f86e6987d44d142e7b7cdf Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Tue, 27 Jun 2017 21:12:17 -0700
Subject: [PATCH] orrery: Fix sprintf format
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
Upstream-Status: Pending
orrery.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/orrery.c b/orrery.c
index e3a1f6d..1b31a9f 100644
--- a/orrery.c
+++ b/orrery.c
@@ -3767,7 +3767,7 @@ static void drawOptsScreens(void)
displayWidth/2 - gdk_string_width(smallFont, scratchString)/2,
12, scratchString);
for (day = 0; day < 7; day++) {
- sprintf(scratchString, dayName[day]);
+ sprintf(scratchString, "%s", dayName[day]);
gdk_draw_string(pixmap, smallFont, blueGC,
CAL_DAY_WIDTH/2 + day*CAL_DAY_WIDTH + CAL_LEFT_OFFSET -
gdk_string_width(smallFont, scratchString)/2,
--
2.13.2

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

View File

@ -1,61 +0,0 @@
Upstream-Status: Pending
From: Benjamin Deering
Subject: orrery crashing X
Date: Thursday, September 2, 2010 - 5:25 pm
Link: http://kerneltrap.org/mailarchive/openmoko-community/2010/9/3/13218
diff -uNr orrery.orig//orrery.c orrery/orrery.c
--- orrery.orig//orrery.c 2009-11-30 06:59:44.000000000 +0100
+++ orrery/orrery.c 2010-11-15 22:33:17.000000000 +0100
@@ -1238,12 +1238,44 @@
}
currentEntry = currentEntry->forwardPointer;
}
- if (nDarkGreyPoints > 0)
- gdk_draw_points(pixmap, darkGreyGC, darkGreyPoints, nDarkGreyPoints);
- if (nGreyPoints > 0)
- gdk_draw_points(pixmap, greyGC, greyPoints, nGreyPoints);
- if (nWhitePoints > 0)
- gdk_draw_points(pixmap, whiteGC, whitePoints, nWhitePoints);
+ GdkPixbuf* starDrawingBuf = gdk_pixbuf_get_from_drawable( NULL,
+ pixmap,
+ gdk_colormap_get_system()
+ , 0, 0, 0, 0, displayWidth, displayHeight);
+ g_assert (gdk_pixbuf_get_bits_per_sample (starDrawingBuf) == 8);
+ guchar* p;
+ int rowstride = gdk_pixbuf_get_rowstride (starDrawingBuf);
+ guchar* pixels = gdk_pixbuf_get_pixels (starDrawingBuf);
+ int n_channels = gdk_pixbuf_get_n_channels (starDrawingBuf);
+ GdkGCValues starGCval;
+ GdkColor starColor;
+ int pointNum;
+ gdk_gc_get_values(darkGreyGC, &starGCval);
+ gdk_colormap_query_color( gdk_gc_get_colormap(darkGreyGC),starGCval.foreground.pixel, &starColor );
+ for( pointNum = 0; pointNum < nDarkGreyPoints; pointNum++) {
+ p = pixels + darkGreyPoints[pointNum].y * rowstride + darkGreyPoints[pointNum].x * n_channels;
+ p[0] = starColor.red & 0xff;
+ p[1] = starColor.green & 0xff;
+ p[2] = starColor.blue & 0xff;
+ }
+ gdk_gc_get_values(greyGC, &starGCval);
+ gdk_colormap_query_color( gdk_gc_get_colormap(greyGC), starGCval.foreground.pixel, &starColor );
+ for( pointNum = 0; pointNum < nGreyPoints; pointNum++) {
+ p = pixels + greyPoints[pointNum].y * rowstride + greyPoints[pointNum].x * n_channels;
+ p[0] = starColor.red & 0xff;
+ p[1] = starColor.green & 0xff;
+ p[2] = starColor.blue & 0xff;
+ }
+ gdk_gc_get_values(whiteGC, &starGCval);
+ gdk_colormap_query_color( gdk_gc_get_colormap(whiteGC), starGCval.foreground.pixel, &starColor );
+ for( pointNum = 0; pointNum < nWhitePoints; pointNum++) {
+ p = pixels + whitePoints[pointNum].y * rowstride + whitePoints[pointNum].x * n_channels;
+ p[0] = starColor.red & 0xff;
+ p[1] = starColor.green & 0xff;
+ p[2] = starColor.blue & 0xff;
+ }
+ gdk_draw_pixbuf ( pixmap , NULL , starDrawingBuf,
+ 0, 0, 0, 0, displayWidth, displayHeight, GDK_RGB_DITHER_NORMAL, 0, 0 ) ;
}
void makeTimeString(char *string)

View File

@ -1,37 +0,0 @@
SUMMARY = "Astronomical application which displays the night sky"
HOMEPAGE = "http://projects.openmoko.org/projects/orrery/"
SECTION = "x11/scientific"
LICENSE = "GPL-2.0-or-later"
LIC_FILES_CHKSUM = "file://orrery.c;endline=25;md5=d792bdf2b591972da175aecc38d88cfe"
DEPENDS = "gtk+"
inherit features_check autotools-brokensep pkgconfig
REQUIRED_DISTRO_FEATURES = "x11"
SRC_URI = "http://projects.openmoko.org/frs/download.php/923/orrery_2.7_clean.tar.gz \
file://orrery.png \
file://use.GdkPixbuf.patch \
file://0001-orrery-Fix-sprintf-format.patch \
file://0001-Append-cflags-instead-of-overriding-in-Makefile.am.patch \
"
SRC_URI[md5sum] = "bd62a33e7554ee1030313dfcdefcda8b"
SRC_URI[sha256sum] = "645166a5e05b2064ab630534a514697fc47b681951e7fe1d635c259cbdf7a5e6"
S = "${WORKDIR}/${BPN}"
do_configure:prepend() {
# fix DSO issue with binutils-2.22
sed -i 's/ -lrt$/ -lrt -lm/g' ${S}/Makefile.am
}
do_install:append() {
install -d ${D}${datadir}/orrery
cp -R --no-dereference --preserve=mode,links -v ${S}/data/* ${D}${datadir}/orrery
chown -R root:root ${D}${datadir}/orrery
install -d ${D}${datadir}/icons
install -m 0755 ${WORKDIR}/orrery.png ${D}${datadir}/icons
rm -rf ${D}${datadir}/orrery/Makefile*
}
FILES:${PN} += "${datadir}/icons/orrery.png"