DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 15th July 2011
miggel13 miggel13 is offline
New User
 
Join Date: Jul 2011
Posts: 4
Thanked 0 Times in 0 Posts
Default Thinkpad T61 and middle button of the mousepad

Hello,
I've installed openbsd 4.8 (X Window System + Gnome) on my Thinkpad T61 - everything works fine except the middle button of the integrated mousepad.
I've read the there is a synaptic-package for BSDs to fix that but I don't know how to install this. Can anyone help me please?

miggel13
Reply With Quote
  #2   (View Single Post)  
Old 15th July 2011
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,608
Thanked 214 Times in 189 Posts
Default

xf86-input-synaptics was enabled for i386 and amd64 architectures on 8 May 2011, which is -current, and will be in 5.0-release. You are running 4.8-release, which is one release back from the most recent: 4.9. See FAQ 5.1 regarding the release cycle and flavors of OpenBSD.

You have three choices:
  1. Custom backport this driver and its dependencies into your 4.8-release environment. The source code is available, and you are welcome to do this on your own. FAQ 5.3 will get you started.
  2. Install -current. You would either upgrade to 4.9-release and upgrade to the most recent -current snapshot, or, cleanly reinstall from the most recent snapshot.
  3. Wait for 5.0-release, scheduled to be published on or about 1 November 2011.
Reply With Quote
  #3   (View Single Post)  
Old 15th July 2011
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

Actually, xf86-input-synaptics is in Xenocara but the kernel peices are still missing from the tree.. so it is not yet ready.

Patches are occasionally put on tech@ for testing, hopefully they'll end up in 5.0.. people need to keep testing them or the progress may stall.

As stated though.. 4.8 is kind of old, you'll need to update to a snapshot if you want to attempt to get synaptics working, or wait and "hope" it gets enough testing by others.

Hint: That's not recommended.

http://marc.info/?l=openbsd-tech&m=130993646312118&w=2
Reply With Quote
  #4   (View Single Post)  
Old 15th July 2011
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,608
Thanked 214 Times in 189 Posts
Default

Good catch bsdfan!
Reply With Quote
  #5   (View Single Post)  
Old 16th July 2011
miggel13 miggel13 is offline
New User
 
Join Date: Jul 2011
Posts: 4
Thanked 0 Times in 0 Posts
Default

Hello,
tanks. This is a bit sad and I don't want to wait until November, so I will try to install current (I've already upgraded from 4.8 to 4.9 this morning

But first, I have to read some stuff about building the system source.
Reply With Quote
  #6   (View Single Post)  
Old 16th July 2011
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,873
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by miggel13 View Post
...I have to read some stuff about building the system source.
Relevant information can be found in Section 5.3 of the FAQ. The release(8) manpage is good fodder too.

Note, however, that the table at beginning of Section 5.3 states much of what you need to know. While a few people on this site build -current following updating or installing a snapshot, many simply stop here & just run the snapshot itself.

Snapshots may or may not have uncommited code not found in CVS. There is no way to know unless one continues to build from source & compares kernel + userland afterwards.

Last edited by ocicat; 16th July 2011 at 11:24 PM. Reason: Can't forget release(8)...
Reply With Quote
  #7   (View Single Post)  
Old 17th July 2011
miggel13 miggel13 is offline
New User
 
Join Date: Jul 2011
Posts: 4
Thanked 0 Times in 0 Posts
Default

Thanks for the FAQ. As I said before, I have upgraded with a new installation to 4.9. I followed the steps under FAQ Section 5.3 but when I run

# cd /usr/src/sys/arch/i386/conf
# config GENERIC
# cd ../compile/GENERIC
# make clean && make depend && make

I get an error:

Code:
... a lot more ...
ioconf.c:2060: warning: (near initialization for 'cfdata[493]')
ioconf.c:2062: warning: excess elements in struct initializer
ioconf.c:2062: warning: (near initialization for 'cfdata[494]')
ioconf.c:2064: warning: excess elements in struct initializer
ioconf.c:2064: warning: (near initialization for 'cfdata[495]')
ioconf.c:2066: warning: excess elements in struct initializer
ioconf.c:2066: warning: (near initialization for 'cfdata[496]')
ioconf.c:2068: warning: excess elements in struct initializer
ioconf.c:2068: warning: (near initialization for 'cfdata[497]')
ioconf.c:2070: warning: excess elements in struct initializer
ioconf.c:2070: warning: (near initialization for 'cfdata[498]')
ioconf.c:2072: warning: excess elements in struct initializer
ioconf.c:2072: warning: (near initialization for 'cfdata[499]')
ioconf.c:2074: warning: excess elements in struct initializer
ioconf.c:2074: warning: (near initialization for 'cfdata[500]')


Stop in /usr/src/sys/arch/i386/compile/GENERIC (line 907 of Makefile).
*** Error code 1

I checked out "src ports xenocara" from the CVS server.

Any hints?
Reply With Quote
  #8   (View Single Post)  
Old 17th July 2011
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,608
Thanked 214 Times in 189 Posts
Default

Build img -current from 4.9 is not supported. You must start from the most recent snapshot.

Please read the "Following -current" FAQ. You will see all the architectural changes since 4.9, including the removal of "make depend".
Reply With Quote
  #9   (View Single Post)  
Old 17th July 2011
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,873
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by miggel13 View Post
...I have upgraded with a new installation to 4.9.
Did you upgrade to a snapshot of 4.9-current or upgrade to 4.9-release?
Quote:
I followed the steps under FAQ Section 5.3 but when I run

# cd /usr/src/sys/arch/i386/conf
# config GENERIC
# cd ../compile/GENERIC
# make clean && make depend && make

I get an error:
I suspect you have unknowingly downloaded either different (incompatible) branches or downloaded while the mirror was updating code itself. When downloading source (as root), the following is one correct way to download source to -current:
Code:
# cd /usr
# export CVSROOT=anoncvs@anoncvs.example.org:/cvs
# cvs -d$CVSROOT checkout -P src xenocara
Here, I have specified both src & xenocara branches to be downloaded sequentially. A value of doing it this way is that it ensures branch synchronization. If you inconsistently specified CVS tags by including -rOPENBSD_4_9 or -rOPENBSD_4_9_BASE as additional cvs(1) parameters, this would also account for mismatched code.
  • OPENBSD_4_9_BASE represents the CVS tag used to label the source used for the CD sets. Once this branch is tagged, no changes are ever checked into it again. This branch is also known as OpenBSD-release.
  • OPENBSD_4_9_BASE represents OpenBSD 4.9-stable. If any public patches are made available to OpenBSD -release (mentioned in the errata page...), changes are checked into this branch.
  • No tag is required to get the head of CVS where all current development is taking place. This is also known as the -current branch.
It is very important to understand the table displayed in Section 5.3.2. If you did not follow this precisely, errors & inconsistencies will arise.
Reply With Quote
Old 17th July 2011
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,608
Thanked 214 Times in 189 Posts
Default

I should have stated: "If you want to build -current, you need to start from the lastest snapshot. If you were attempting to build -stable, you had the wrong source code."

The CVS repository has the complete source code history of OpenBSD, from the latest patches to -current all the way back to the first revisions. Be sure you are using the right tags if you are extracting source code from CVS.

As ocicat stated, but I did not, following the proper process with the right source code is critical.
Reply With Quote
Old 18th July 2011
miggel13 miggel13 is offline
New User
 
Join Date: Jul 2011
Posts: 4
Thanked 0 Times in 0 Posts
Default

I installed 4.9 with the .iso Image. This must be the -release version.

And now, I would like to build -curent (5.0).

I downloaded the current CVS directory but it seems not possible to go this way.
Reply With Quote
Old 18th July 2011
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,608
Thanked 214 Times in 189 Posts
Default

I will try again.
  • Upgrade to a snapshot before building -current, or
  • Upgrade to a snapshot, and stop.
Reply With Quote
Old 18th July 2011
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,873
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by miggel13 View Post
I downloaded the current CVS directory but it seems not possible to go this way.
Here are the steps you need to take:
  1. Read Section 5.1 to understand the difference between OpenBSD's favors. Read this section for comprehension.
  2. The table in Section 5.3.2 gives you the roadmap you need to follow. You need to download the ISO image of a -current snapshot. On most mirror sites, this can be found at pub/OpenBSD/snapshots/i386.
It appears you have been starting with an ISO image of OpenBSD 4.9-release which is not the beginning point stated in Section 5.3.2's table. Don't improvise. Follow the information found in the FAQ to the letter.
Reply With Quote
Old 18th July 2011
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

If you want to run -CURRENT, you need to use the install the latest snap. It's that simple.
Reply With Quote
Old 20th July 2011
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,873
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by miggel13 View Post
I've read the there is a synaptic-package for BSDs to fix that...
In case you are still interested, there were some follow-up messages posted on the project's official tech@ mailing list today. Here's the entire thread:

http://marc.info/?t=130481900300002&r=1&w=2

FWIW.

Last edited by ocicat; 20th July 2011 at 02:40 AM.
Reply With Quote
Old 17th August 2011
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,873
Thanked 190 Times in 160 Posts
Default

In case the OP is still interested, it appears that code has now been checked in post 5.0-tagging:

http://marc.info/?l=openbsd-cvs&m=131359791929505&w=2

Thus, any snapshot generated afterward (as of Thursday, 18 Aug 2011...) will have this code already integrated.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
"Man-in-the-Middle" (MitM) DNS Attacks hunteronline Off-Topic 0 26th August 2008 03:15 PM
IBM ThinkPad G40? Sunnz General Hardware 8 28th July 2008 01:41 AM
Power button - nicely switch down the computer? Malinda OpenBSD General 5 14th June 2008 01:57 PM
FreeBSD on IBM ThinkPad 600 steve_s FreeBSD Installation and Upgrading 1 20th May 2008 04:23 PM
Home Button JMJ_coder Feedback and Suggestions 4 5th May 2008 05:13 PM


All times are GMT. The time now is 03:34 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick