File: 08-Other-forges.md

package info (click to toggle)
gcli 2.9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,476 kB
  • sloc: ansic: 25,411; sh: 580; makefile: 509; yacc: 261; lex: 59
file content (161 lines) | stat: -rw-r--r-- 5,379 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
# Other forges and bugtrackers

gcli is capable of not only interacting with Github. It also currently supports:

- GitLab
- Gitea
- Bugzilla

## Bugzilla

### Notes

Bugzilla is commonly used as a bug tracker in various large open-source
projects such as FreeBSD, the Linux Kernel, Mozilla and Gentoo.

### Searching

Suppose you want to search for bug reports containing `sparc` in
the Gentoo Bugzilla.

In this case you need to configure an account that points at the
correct URL in `$HOME/.config/gcli/config` by adding:

	gentoo {
		forge-type=bugzilla
		api-base=https://bugs.gentoo.org/
	}

Now you can search the Gentoo Bugs:

	$ gcli -a gentoo issues sparc
	NUMBER  NOTES  STATE        TITLE
	924443      0  UNCONFIRMED  Add keyword ~sparc for app-misc/fastfetch
	924430      0  RESOLVED     media-libs/assimp-5.3.1 fails tests on sparc
	924215      0  CONFIRMED    dev-libs/libbson dev-libs/mongo-c-driver: alpha arm ia64 mips ppc ppc64 s390 sparc keyword req
	924191      0  CONFIRMED    media-libs/exempi: unaligned access causes dev-python/python-xmp-toolkit-2.0.2 to fails tests on sparc (test_file_to_dict (test.test_core_unit.UtilsTestCase.test_file_to_dict) ... Bus error)
	924180      0  CONFIRMED    dev-python/psycopg-3.1.17[native-extensions] fails tests on sparc: tests/test_copy_async.py::test_read_rows[asyncio-names-1] Fatal Python error: Bus error
	924031      0  IN_PROGRESS  sys-apps/bfs: ~arm ~arm64 ~ppc ~ppc64 ~sparc keywording
	923968      0  CONFIRMED    dev-python/pyarrow-15.0.0 fails to configure on sparc: CMake Error at cmake_modules/SetupCxxFlags.cmake:42 (message): Unknown system processor
	921245      0  CONFIRMED    media-video/rav1e-0.6.6 fails to compile on sparc: Assertion `DT.dominates(RHead, LHead) && "No dominance between recurrences used by one SCEV?"' failed.
	920956      0  CONFIRMED    dev-python/pygame-2.5.2: pygame.tests.font_test SIGBUS on sparc
	920737      0  CONFIRMED    sparc64-solaris Prefix no longer supported

	<snip>

### Issue details

Furthermore we can look at single issues:

	$ gcli -a gentoo issues -i 920737 all comments
	   NUMBER : 920737
	    TITLE : sparc64-solaris Prefix no longer supported
	  CREATED : 2023-12-26T19:20:58Z
	  PRODUCT : Gentoo Linux
	COMPONENT : Profiles
	   AUTHOR : Tom Williams
	    STATE : CONFIRMED
	   LABELS : none
	ASSIGNEES : prefix

	ORIGINAL POST

	    Resurrecting a Prefix install on Solaris 11.4 SPARC. It was working rather well
	    for me; after a hiatus I had hoped to use it again but my first emerge --sync
	    has removed the profile needed to merge any updates or new packages.

	    I note commit 8e006b67e06a19fae10c6059c7fc5ede88834601 in May 2023 removed the
	    profile and keywording for prefixed installs.

	    There is no associated comment. There doesn't seem to be a bug report in regards
	    to the change (I'm quite sure almost nobody uses it, so probably fair enough)

	    Any easy way to restore the profile for now? Eventually Solaris/SPARC and thus
	    Prefix will be gone anyway, but useful for now.

	    Thanks for your continued efforts.
	AUTHOR : sam
	DATE   : 2023-12-26T19:21:33Z
	         I think at the very least, when removing Prefix support in future, a 'deprecated'
	         file should be added to the relevant profiles asking if anyone is using
	         it to step forward.

	AUTHOR : grobian
	DATE   : 2023-12-26T22:58:12Z
	         Solaris 11.4 itself is a problem.  I doubt you ever had it "working".

	AUTHOR : grobian
	DATE   : 2023-12-26T22:59:57Z
	         Linux sparc team is not relevant here

	$

## GitLab

### Configuring an account for use with a token

First you need to generate a token:

1. Click on your avatar in the top left corner
1. Choose Preferences in the popup menu
1. Select `Access tokens` in the preference menu
1. Click the `Add new token` button
1. Choose some reasonable values
  - The token name can be your hostname e.g. `gcli $(hostname)`
  - Clear the expiration date. It will be defaulted to some high value by GitLab.
  - Select the `api` scope

Now click `Create personal access token`. Save this token - **do not share it with anyone else**.

You can now update your gcli config in `$HOME/.config/gcli/config`:

```conf
defaults {
    gitlab-default-account=gitlab-com
    ...
}

gitlab-com {
    account=<your-username-at-gitlab>
    token=<the-token-you-just-created>
    forge-type=gitlab
}
```

After that you should be able to run the following command:

	$ gcli -t gitlab issues -o herrhotzenplotz -r gcli

If this process errors out check the above steps. If you believe
this is a bug, please report it at our issue tracker!

## Gitea

The steps here are roughly the same as with GitLab.

To generate a token:

1. Click your avatar in the top-right corner
1. Choose `Settings` in the popup menu
1. Select `Applications` in the menu on the left
1. Under `Generate new token` enter a reasonable token name
1. Click the `Generate token` button
1. Save the token - **do not share it with anyone else**.

You can now update your gcli config file in `$HOME/.config/gcli/config`:

```conf
defaults {
	gitea-default-account=codeberg-org
	...
}

codeberg-org {
	account=<your-username-at-gitea>
	token=<the-token-you-just-created>
	forge-type=gitea
	api-base=https://codeberg.org/api/v1
}
```

The example here uses Codeberg. Update these fields as needed for your own use case.