Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/b/brother-mfc9140cdn/abi_used_libs32
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
libc.so.6
libm.so.6
52 changes: 52 additions & 0 deletions packages/b/brother-mfc9140cdn/abi_used_symbols32
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
libc.so.6:_IO_putc
libc.so.6:__assert_fail
libc.so.6:__ctype_b_loc
libc.so.6:__errno_location
libc.so.6:__libc_start_main
libc.so.6:__strtol_internal
libc.so.6:calloc
libc.so.6:close
libc.so.6:exit
libc.so.6:fclose
libc.so.6:feof
libc.so.6:fflush
libc.so.6:fgetc
libc.so.6:fgets
libc.so.6:fopen
libc.so.6:fprintf
libc.so.6:fputs
libc.so.6:fread
libc.so.6:free
libc.so.6:fscanf
libc.so.6:fseek
libc.so.6:fwrite
libc.so.6:getenv
libc.so.6:gettimeofday
libc.so.6:localtime
libc.so.6:lseek
libc.so.6:malloc
libc.so.6:memcpy
libc.so.6:memset
libc.so.6:open
libc.so.6:printf
libc.so.6:read
libc.so.6:remove
libc.so.6:setbuf
libc.so.6:signal
libc.so.6:snprintf
libc.so.6:sprintf
libc.so.6:sscanf
libc.so.6:strcat
libc.so.6:strchr
libc.so.6:strcmp
libc.so.6:strcpy
libc.so.6:strncmp
libc.so.6:strncpy
libc.so.6:strrchr
libc.so.6:strstr
libc.so.6:system
libc.so.6:time
libc.so.6:vfprintf
libc.so.6:vsprintf
libc.so.6:write
libm.so.6:pow
6 changes: 6 additions & 0 deletions packages/b/brother-mfc9140cdn/monitoring.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
releases:
id: ~ # Check https://release-monitoring.org/projects/search/

Check warning on line 2 in packages/b/brother-mfc9140cdn/monitoring.yaml

View workflow job for this annotation

GitHub Actions / Checks

releases.id is set to null, it should have a numeric value
rss: ~ # For example https://github.com/PyO3/maturin/releases.atom

Check warning on line 3 in packages/b/brother-mfc9140cdn/monitoring.yaml

View workflow job for this annotation

GitHub Actions / Checks

releases.rss is set to null, it should point to a rss feed
# No known CPE, checked 2026-06-20
security:
cpe: ~
Comment on lines +1 to +6

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The monitoring.yaml file should look like this for packages that won't ever benefit from it.

# This package will never benefit from a monitoring.yaml please do not attempt to edit any of the fields.
# https://github.com/getsolus/packages/issues/4533
releases:
  id: ~
  rss: ~
security:
  cpe: ~

47 changes: 47 additions & 0 deletions packages/b/brother-mfc9140cdn/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# yaml-language-server: $schema=/usr/share/ypkg/schema/schema.json
name : brother-mfc9140cdn
version : 1.1.4
release : 1
source :
- https://download.brother.com/welcome/dlf100406/mfc9140cdncupswrapper-1.1.4-0.i386.rpm : dadbb924f2d8eebe315397dd8b2ed104b36467177f192b11feb9096de3ef5a95
- https://download.brother.com/welcome/dlf100404/mfc9140cdnlpr-1.1.2-1.i386.rpm : c4a9dafe1ba141c801f9ae68e0297cbfed424bfb0dc2232e2515bd33583db2ba
homepage : https://global.brother
license :
- Distributable
- GPL-2.0-or-later
component : drivers.printer
extract : false
strip : false
summary : Printer driver for Brother MFC-9140CDN
description: |
Printer driver for Brother MFC-9140CDN.
Note that some portions are binary and provided for hardware enablement so may not meet typical Solus packaging standards for paths.
builddeps :
- rpm
rundeps :
- a2ps
- ghostscript
- glibc-32bit
- psutils
setup : |
# Extract rpms
for i in $sources/*.rpm; do
rpm2cpio ${i} | cpio -idmv
done
install : |
install -d -m 00755 $installdir
# Install rpm files
mv opt $installdir/

# PPD
install -d -m 00755 $installdir/usr/share/cups/model/Brother
install -m 00644 $installdir/opt/brother/Printers/mfc9140cdn/cupswrapper/brother_mfc9140cdn_printer_en.ppd \
$installdir/usr/share/cups/model/Brother/
Comment on lines +37 to +39

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be combined into a single line:

install -Dm 00644 $installdir/opt/brother/Printers/mfc9140cdn/cupswrapper/brother_mfc9140cdn_printer_en.ppd \
    -t $installdir/usr/share/cups/model/Brother/


# Filtry CUPS
install -d -m 00755 $installdir/usr/lib/cups/filter
ln -s /opt/brother/Printers/mfc9140cdn/lpd/filtermfc9140cdn \
$installdir/usr/lib/cups/filter/filtermfc9140cdn
ln -s /opt/brother/Printers/mfc9140cdn/cupswrapper/cupswrappermfc9140cdn \
$installdir/usr/lib/cups/filter/cupswrappermfc9140cdn
Comment on lines +43 to +46

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A better practice is to use the -srv, or just -sv, if we really want absolute paths in links. The -v options helps in debugging package builds, or just to see what's going on. -r tells it to use relative paths.

ln -srv $installdir/opt/brother/Printers/mfc9140cdn/lpd/filtermfc9140cdn \
    $installdir/usr/lib/cups/filter/filtermfc9140cdn
ln -srv $installdir/opt/brother/Printers/mfc9140cdn/cupswrapper/cupswrappermfc9140cdn \
    $installdir/usr/lib/cups/filter/cupswrappermfc9140cdn

%install_license

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to pass a list of files to this macro for it to do anything. Unfortunately, Brother doesn't include any license files in the RPMs.

From my understanding, a future CUPS on the horizon is going to make all of these drivers obsolete, so I guess this problem will solve itself.

Let's just remove the macro call entirely.

68 changes: 68 additions & 0 deletions packages/b/brother-mfc9140cdn/pspec_x86_64.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<PISI>
<Source>
<Name>brother-mfc9140cdn</Name>
<Homepage>https://global.brother</Homepage>
<Packager>
<Name>aquila.pl</Name>
<Email>aquilapl@int.pl</Email>
</Packager>
<License>Distributable</License>
<License>GPL-2.0-or-later</License>
<PartOf>drivers.printer</PartOf>
<Summary xml:lang="en">Printer driver for Brother MFC-9140CDN</Summary>
<Description xml:lang="en">Printer driver for Brother MFC-9140CDN.
Note that some portions are binary and provided for hardware enablement so may not meet typical Solus packaging standards for paths.
</Description>
<Archive type="binary" sha1sum="79eb0752a961b8e0d15c77d298c97498fbc89c5a">https://sources.getsol.us/README.Solus</Archive>
</Source>
<Package>
<Name>brother-mfc9140cdn</Name>
<Summary xml:lang="en">Printer driver for Brother MFC-9140CDN</Summary>
<Description xml:lang="en">Printer driver for Brother MFC-9140CDN.
Note that some portions are binary and provided for hardware enablement so may not meet typical Solus packaging standards for paths.
</Description>
<PartOf>drivers.printer</PartOf>
<Files>
<Path fileType="data">/opt/brother/Printers/mfc9140cdn/cupswrapper/brcupsconfpt1</Path>
<Path fileType="data">/opt/brother/Printers/mfc9140cdn/cupswrapper/brother_mfc9140cdn_printer_en.ppd</Path>
<Path fileType="data">/opt/brother/Printers/mfc9140cdn/cupswrapper/cupswrappermfc9140cdn</Path>
<Path fileType="data">/opt/brother/Printers/mfc9140cdn/inf/ImagingArea</Path>
<Path fileType="data">/opt/brother/Printers/mfc9140cdn/inf/brmfc9140cdnfunc</Path>
<Path fileType="data">/opt/brother/Printers/mfc9140cdn/inf/brmfc9140cdnrc</Path>
<Path fileType="data">/opt/brother/Printers/mfc9140cdn/inf/lut/0600-c-TS_cache12.bin</Path>
<Path fileType="data">/opt/brother/Printers/mfc9140cdn/inf/lut/0600-c_cache12.bin</Path>
<Path fileType="data">/opt/brother/Printers/mfc9140cdn/inf/lut/0600-k-TS_cache12.bin</Path>
<Path fileType="data">/opt/brother/Printers/mfc9140cdn/inf/lut/0600-k_cache12.bin</Path>
<Path fileType="data">/opt/brother/Printers/mfc9140cdn/inf/lut/0600-m-TS_cache12.bin</Path>
<Path fileType="data">/opt/brother/Printers/mfc9140cdn/inf/lut/0600-m_cache12.bin</Path>
<Path fileType="data">/opt/brother/Printers/mfc9140cdn/inf/lut/0600-y-TS_cache12.bin</Path>
<Path fileType="data">/opt/brother/Printers/mfc9140cdn/inf/lut/0600-y_cache12.bin</Path>
<Path fileType="data">/opt/brother/Printers/mfc9140cdn/inf/lut/capt-c-TS_cache12.bin</Path>
<Path fileType="data">/opt/brother/Printers/mfc9140cdn/inf/lut/capt-c_cache12.bin</Path>
<Path fileType="data">/opt/brother/Printers/mfc9140cdn/inf/lut/capt-k-TS_cache12.bin</Path>
<Path fileType="data">/opt/brother/Printers/mfc9140cdn/inf/lut/capt-k_cache12.bin</Path>
<Path fileType="data">/opt/brother/Printers/mfc9140cdn/inf/lut/capt-m-TS_cache12.bin</Path>
<Path fileType="data">/opt/brother/Printers/mfc9140cdn/inf/lut/capt-m_cache12.bin</Path>
<Path fileType="data">/opt/brother/Printers/mfc9140cdn/inf/lut/capt-y-TS_cache12.bin</Path>
<Path fileType="data">/opt/brother/Printers/mfc9140cdn/inf/lut/capt-y_cache12.bin</Path>
<Path fileType="data">/opt/brother/Printers/mfc9140cdn/inf/paperinfij2</Path>
<Path fileType="data">/opt/brother/Printers/mfc9140cdn/inf/setupPrintcapij</Path>
<Path fileType="data">/opt/brother/Printers/mfc9140cdn/lpd/brmfc9140cdnfilter</Path>
<Path fileType="data">/opt/brother/Printers/mfc9140cdn/lpd/filtermfc9140cdn</Path>
<Path fileType="data">/opt/brother/Printers/mfc9140cdn/lpd/psconvertij2</Path>
<Path fileType="library">/usr/lib/cups/filter/cupswrappermfc9140cdn</Path>
<Path fileType="library">/usr/lib/cups/filter/filtermfc9140cdn</Path>
<Path fileType="data">/usr/share/cups/model/Brother/brother_mfc9140cdn_printer_en.ppd</Path>
<Path fileType="data">/usr/share/licenses/brother-mfc9140cdn</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2026-06-20</Date>
<Version>1.1.4</Version>
<Comment>Packaging update</Comment>
<Name>aquila.pl</Name>
<Email>aquilapl@int.pl</Email>
</Update>
</History>
</PISI>