ISO icon indicating copy to clipboard operation
ISO copied to clipboard

Consider building "proper" packages

Open probonopd opened this issue 5 years ago • 11 comments

At some point, we may want to have proper packages for some of the components that currently get installed as part of https://github.com/helloSystem/ISO/blob/experimental/settings/script.hello

This might also help work around https://github.com/helloSystem/ISO/issues/1

Blocked by https://github.com/freebsd/poudriere/pull/797

Thanks meena on IRC @igalic.

probonopd avatar Dec 27 '20 09:12 probonopd

for building drm-kmod, which would address #1, we shouldn't need https://github.com/freebsd/poudriere/pull/797 because it's a meta-port, so pulling in dependencies would literally make poudriere think it has nothing to do!

https://github.com/freebsd/poudriere/pull/798 however, would be nice to have in either way!

igalic avatar Dec 27 '20 10:12 igalic

Actually I am not sure we should address #1 locally in helloSystem. It should be fixed in FreeBSD proper imho.

probonopd avatar Dec 27 '20 10:12 probonopd

https://github.com/freebsd/poudriere/pull/797 was merged 2021-05-07.

Via https://vermaden.wordpress.com/2021/07/19/valuable-news-2021-07-19/:

helloDesktop - FreeBSD Wiki

… Work has started to port this desktop back to FreeBSD. It would be called helloDesktop. …

grahamperrin avatar Aug 21 '21 18:08 grahamperrin

https://github.com/helloSystem/ISO/issues/267#issuecomment-891311446

… Is this a conceptual problem with how FreeBSD packages work? …

No.

As far as I can tell, installation of helloSystem applications such as those listed at https://github.com/helloSystem/ISO/issues/267#issuecomment-903207299 is not the result of pkg-install(8).

pkg info --list hello | grep -i keyboard

– finds nothing, and so on.

pkg-check(8)

  • does check sanity
  • can not be aware of applications that do not fit with the basic concept of pkg(8).

grahamperrin avatar Aug 22 '21 04:08 grahamperrin

An example of a fairly simple Makefile:

https://cgit.freebsd.org/ports/tree/sysutils/hw-probe/Makefile

Side note: its RUN_DEPENDS is incomplete – https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252282.


Also,

https://github.com/pageflt/freebsd-mkmnfst#readme

… generates the minimal viable MANIFEST …

NB optional expression of dependencies within a manifest,

deps: {
    ⋯: {origin: ⋯/⋯, version: ⋯},
    ⋯: {origin: ⋯/⋯, version: ⋯}
}

grahamperrin avatar Aug 22 '21 05:08 grahamperrin

Downside of "proper" packages: You lose the ability to move stuff around in the filesystem, and to keep multiple versions of apps, etc. - so for application bundles it is not a good idea to package them in traditional packages, otherwise we'd lose their advantages.

probonopd avatar Aug 22 '21 22:08 probonopd

Maybe more interesting, a Makefile for a recently ported Python-based application:

https://cgit.freebsd.org/ports/tree/print/pdfarranger/Makefile

  • no version numbers expressed at or below line 14.

There's a runtime dependency on textproc/py-pikepdf, the Makefile for which does express version numbers, however these are not the conern of the maintainer of PDF Arranger.

grahamperrin avatar Aug 28 '21 22:08 grahamperrin

Cross-reference: https://github.com/helloSystem/hello/discussions/272 and https://github.com/helloSystem/ISO/issues/55

grahamperrin avatar Sep 13 '22 06:09 grahamperrin

@jsm222 has started to work on this. There used to be https://wiki.freebsd.org/helloDesktop but apparently it has been deleted. Why?


This is Google's cache of https://wiki.freebsd.org/helloDesktop. It is a snapshot of the page as it appeared on 7 Sep 2022 03:34:11 GMT.


helloDestktop

helloSystem has a Desktop Environment.

Work has started to port this desktop back to FreeBSD. It would be called helloDesktop.

Work is going on at https://github.com/jsm222/helloDesktop

A diff against head is here hellodesktop.diff

I have prebuilt the packages for 13.0 and 12.2 amd64 as of now (There are still unsolved naming issues and the work is still preliminary , so it is not committed directly to mainline.

/usr/local/etc/pkg/repos/helloDesktop.conf
helloDesktop: {
        url: "pkg+http://build.schmitz.computer/packages/${ABI}",
        mirror_type: "srv",
        enabled: yes,
        signature_type: "pubkey",
        pubkey: "/usr/local/etc/ssl/certs/poudriere.cert",
        priority: 100

}
/usr/local/etc/ssl/certs/poudriere.cert  
-----BEGIN PUBLIC KEY-----
MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA5gEt92AHUkYkZH2Q2nP3
2/Wu7gxbMEno5iqi1ea327lHmhJB18E0mW9dKYgxz74PbbTAmyaMdY4G1vn3cStp
jKVnrOCsNboaZ1L6riYFTjZX0pVAQYdtblCNjTf92X1kk8Yp1jy3baH8s19IKVWD
jX+2j33BOjRH3jbiLxdPu51wPItDUM4UU+mdrMH2+RgHjVX3ZkgRe/bYxMgrYBQg
roEwp0Pv9DbDQ0Vx3qIBJahQ7zfDCWZI1urr85/kM58KXYLt1YHW+vRd3scOm1IE
mRON0zVO2f8+obzy3lLNnZj/XIWxh+LNI4kmmdoHMksysYtrRz1bpcnsY8qOe4g3
X7q+i8k0JaaMwwD9YvKf6HyQ09rFt3WqV2AAOwR0835oHxCENJJFcoUCMCaKjNSF
OZyuYKKPqSm8BKj/QaoXBIF1fQJBJzrINYSUj4/M6TWKVTSO8H4s+eiqfD7FYJ3h
jSZ2ubydtTOef1Tk79OVoo8Ns7FqzCK7ffOvELxuY2OMDIKrw0sCfpkI9uM5Dfrr
rYXn4dwvZLwB+tnBbKBXIfjAvwqjHeWfzqgUHSk/Slqh7UEYL+BnLfHxLMVN0Omk
gFM24eVEKju1PHkBDHVAD+NGfq4g/hcbAbcrtjxDrs1ztdwjtCJmFNcEYFjz0DRc
q9cTv5oaRy9FQy0NdGwGuqUCAwEAAQ==
-----END PUBLIC KEY-----
pkg install -r helloDesktop hellodesktop
~/.xinitrc
#!/bin/sh
export QT_QPA_PLATFORMTHEME=panda
exec /usr/local/bin/openbox &
exec /usr/local/bin/filer-qt --desktop &
exec /usr/local/bin/menubar &
exec /usr/local/bin/cyber-dock

probonopd avatar Sep 17 '22 18:09 probonopd

Hint: use the Search field to seek helloDesktop

There used to be wiki.freebsd.org/helloDesktop but apparently it has been deleted.

No, not deleted.

https://wiki.freebsd.org/action/info/JesperMouridsen/helloDesktop?action=diff&rev2=7&rev1=6

grahamperrin avatar Sep 17 '22 19:09 grahamperrin

...but moved to https://wiki.freebsd.org/action/info/JesperMouridsen/helloDesktop

Would be nice if the Wiki software automatically redirect there. Thanks @grahamperrin, I would never have found this out!

probonopd avatar Sep 17 '22 20:09 probonopd

Closing here in favor of https://github.com/helloSystem/helloDesktop/

probonopd avatar Feb 26 '23 01:02 probonopd